Obsidian-Jovani Posted April 29, 2003 Share Posted April 29, 2003 What i am trying to do is run a script when the player enters a trigger and presses the "USE" button. First off I made my script and compiled it in BehavEd. In Radiant I created a trigger_multiple and a target_scriptrunner. Then I connected the two by first selecting the trigger then the target and CTRL+K. Here are the properties involved: trigger_multiple -->key:target -->value:t2 -->USE_BUTTON is checked target_scriptrunner -->key: targetname -->value: t2 -->key: Usescript -->value: resurgence/sithtext Then I saved the map and compiled it. When I get into the game and use the "USE" button I get the following error: "could not open file 'scripts/resurgence/sithtext.ibi'" Am I doing something wrong here or what? Link to comment Share on other sites More sharing options...
Obsidian-Jovani Posted April 30, 2003 Author Share Posted April 30, 2003 Well I figured this one out on my own. The only thing wrong was the way BehavEd saved the script. After the compile the script was saved as .ibi.IBI instead of .IBI Why this happens in BehavEd I have no idea. Does anyone no how I can fix this? Link to comment Share on other sites More sharing options...
boinga1 Posted April 30, 2003 Share Posted April 30, 2003 you should try the mapping forum...but this seems to mean that your script does not exist or is in the wrong directory. edit: nevermind, you posted a minute before i responded... uh, i dunno. Link to comment Share on other sites More sharing options...
Emon Posted April 30, 2003 Share Posted April 30, 2003 You have an ibi.IBI because you tried to save the working document as an IBI and not a TXT. Your working script should be in plain ASCII text, such as myscript.txt. Compile converts it to IBI. If that doesn't fix it, rename the file. Link to comment Share on other sites More sharing options...
Obsidian-Jovani Posted April 30, 2003 Author Share Posted April 30, 2003 Ah ha. Thank you. I realize my error. The first time I used BehavEd and saved the script I tried saving it as a .ibi But it saved it as an .ibi.txt file. I have now remedied the situation. Thanks for the help. Link to comment Share on other sites More sharing options...
War Master Posted May 1, 2003 Share Posted May 1, 2003 Don't forget, if you're going to run the script multiple times give the target_scriptrunner key:count value:-1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.