basic script help lol :)

Discussion in 'Modding and Scripting Support' started by zynklu, Nov 24, 2007.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. zynklu

    zynklu New Member

    Messages:
    8
    Likes Received:
    0
    Joined:
    Nov 16, 2007
    Hello !
    I've started to play with WorldED about 1,5 year ago but stop'ed in case of no time :( but now i decided to make something, and find myself that im not able to make even a simple script with some criters in it ! so here's my question:
    1. what exactly are this things (all in SockMonkey and (obj) window):
    trigerer
    extra object
    local object
    attachee
    which one is that about ex. NPC who player is talking with
    2. can You help me with makeing a harming arrows?
    i thought about something like this:
    in WorldED RMB on arrows and at scrpit window in case of death - scrpit which casts spell n 56 (is this harm ?:)) onto .....

    hope that You will understand my poor ENG :D
     
  2. jfkoski

    jfkoski New Member

    Messages:
    242
    Likes Received:
    0
    Joined:
    Aug 28, 2007
    attachee is who or what the script is attached to. Could be NPC or book or street sign.
    triggerer is who activated the script, usually the PC, but sometimes something else.

    I don't know the objects.
     
  3. zynklu

    zynklu New Member

    Messages:
    8
    Likes Received:
    0
    Joined:
    Nov 16, 2007
    thanks, what about other problems?
     
  4. rroyo

    rroyo Active Member

    Messages:
    3,319
    Likes Received:
    0
    Joined:
    Oct 13, 2006
    To the best of my knowledge, the harming arrows can only be created by editing the protoype.
    However, it is easy enough to attach a script to a bow that will give the desired effect when arrows strike.
    ChrisBeddoes did this with his Divine weapons in Car-Arcanum.
     
  5. zynklu

    zynklu New Member

    Messages:
    8
    Likes Received:
    0
    Joined:
    Nov 16, 2007
    so the script should look like:
    0. spells: cast spell 56 on Attache
    1.return and RUN

    and should be run at bows script window in case of hit ?
     
  6. rroyo

    rroyo Active Member

    Messages:
    3,319
    Likes Received:
    0
    Joined:
    Oct 13, 2006
    Here's the one that Chris did for his Divine Fire Pistol (works good on swords too) that has a fireball engulf your target on a semi-random basis.

    It attaches to Hit on the script attachment page.

    00179weaponfire.scr

    0. stat 3 of Triggerer: store in Local0

    1. stat 4 of Triggerer: store in Local1

    2. IF Local0<=11
    THEN return and RUN default

    3. IF Local 1<=11
    THEN return and RUN default

    4. random number 1 to 20: store in Local0

    5. IF Local0<=9
    THEN goto line 6
    ELSE goto line 10

    6. do nothing

    7. return and RUN default

    8. do nothing

    9. do nothing

    10. do nothing

    11. random number 9 to 12: store in Local5

    12. spell eye candy:play 232 on Extra Object

    13. damage Extra Object for Local5 points type 3 damage

    14. Local1=Global Variable 1158

    15. damage Extra Object for Local1 points of type 3 damage

    16. spell eye candy: play 1582 on Triggerer

    17. return and RUN default
     
Our Host!