Even though I'm not great at coding, I see the problem here.
You can't just add a command at the end. The part where you added the "plrusingaction=1" command doesn't have a seperator, which you need (In this case it would be a comma, but that still wouldn't work--keep reading).
You also need to think about the ordering. The command "plrusingaction=1" is a condition, meaning that you need to have it at the beginning of the script--sort of saying "If the player presses the action key (Enter by default), then continue with the state (In this case, the whole script". Because of this, the script should look like this:
;Artificial Intelligence Script
;Header
desc = Story In Zone After Action
;Triggers
:state=0,plrwithinzone=1,plrusingaction=1:state=1,sound=$0,video=$1,stopsound=$0,activateifused=1
The comma was used before the new command because you use commas to seperate 2 conditions or 2 actions (the commands that tell the engine to do something), while a colon (":") seperates an action and a condition.
Sorry if that was hard to understand
. I'm fairly new to scripting, so that script might not work, but hopefully it will. Just to clarify, the script essentially says to the engine "If the player is within the zone and presses action, then play the sound and video specified". Hope that makes it easier
. I'll test it myself, but it
should work, as far as I know.
EDIT: The script does work fine, but just so you know, it won't say "Press Enter To Use". I've been working on it, and the script I have at the moment still doesn't appear to show it:
;Artificial Intelligence Script
;Header
desc = Story In Zone After Action With HUD (Not working)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimage=languagebank\english\gamecore\text\pressentertouse.dds,hudname=storyzoneprompt,hudhide=1,hudmake=display,state=10
:state=10:plrwithinzone=1:hudshow=storyzoneprompt,hudfadeout=storyzoneprompt
:state=10,plrwithinzone=1,plrusingaction=1:sound=$0,video=$1,stopsound=$0,activateifused=1,hudhide=1,hudreset,destroy
;End of Script
Not sure what is wrong with it, but oh well. If you don't need the "Press Enter To Use", then the original script should do fine.
Evil has a new name.