scripts...!

Discussion in 'Modding and Scripting Support' started by eLzambo, Feb 23, 2004.

Remove all ads!
Support Terra-Arcanum:

GOG.com

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

    eLzambo New Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Feb 23, 2004
    hey....

    I made a simple trap script for a chest.........but how do you add that to the chest?? you have to give a number.....but how do i know what number my script is?? when I save my script with a number as it's name and i use that number...it gives an error: can't get default variables for script. using zeroo's......

    so...what do should I do
     
  2. tree1180

    tree1180 New Member

    Messages:
    207
    Likes Received:
    0
    Joined:
    Feb 4, 2004
    RE

    I'm not 100% sure. that this will work, but maybe if on the chest, you the "use" button under scripts on it. and then put the number of your script in the "script" box. then it should work out.
     
  3. Sinbad

    Sinbad New Member

    Messages:
    418
    Likes Received:
    0
    Joined:
    Sep 27, 2003
    Hopefully, you are using DJ_Unique's script editor because it makes all this a LOT easier to deal with. That said, proceed as follows:

    First of all, you assign the script ID number in the script editor. That gives you the number you need to refer to when assigning the script to the chest. When you save the script, the number will automatically be prefixed to whatever you name it.

    Second, you edit the chest with World Editor and go to the the Scripts button. In there are a lot of radio buttons. Find the one that most accurately describes the action associated with the trap involved in your script - i.e., is it a trap for a thief or for anyone who opens the chest or for anyone who examines the chest - and select that radio button and put the script number in the box below, then click the okay button to finish. Close the chest editing window.

    Finally, save the mod map and your changes should be saved.

    I hope this has been helpful.
     
  4. eLzambo

    eLzambo New Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Feb 23, 2004
    could you tell me where to get that script editor because if I try to download it on dark underlords site I get a 404..

    thx
     
  5. mathboy

    mathboy New Member

    Messages:
    2,185
    Likes Received:
    0
    Joined:
    Sep 3, 2003
  6. darkllama

    darkllama New Member

    Messages:
    177
    Likes Received:
    0
    Joined:
    Jan 23, 2004
    yeah, he changed his links, so you have to type in the new ones, until he fixes them on his site.
     
Our Host!