Jump to content

Home

Trouble running script in SP Game


Obsidian-Jovani

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...