ugsquish Posted March 6, 2012 Share Posted March 6, 2012 I am attempting to make a trigger script that will stop the player and start a quest on entrance of an area. But the script will not save which I come to find out that means there is an error in it. can anyone help me to identify the error so I can finish my mod please? scriptname <scriptname> short StartUp short EndStartUp float TimerA float TimerZ short bTimerZDone BEGIN OnTrigger player if (StartUp==0) SetStage <quest> 0 DisablePlayer Controls 1 1 1 1 1 1 1 Set TimerA to1 Set TimerA to .2 Set Startup to1 endif END BEGIN GameMode if (StartUP==1) if (TimerZ>0) && (WbTimerDone==0) Set TimerZ to (TimerZ - GetSecondsPassed) else set bTimerDone to 1 endif if (TimerA>0) Set TimerA to (TimerA - GetSecondsPassed) else PipboyRadioOff StartQuest <questname> Set RFCWTimerB to 2 Set RFCWStartUp to 2 endif endif END Link to comment Share on other sites More sharing options...
ugsquish Posted March 6, 2012 Author Share Posted March 6, 2012 (edited) oh and I used this script first: ScriptName <name> begin onTriggerEnter player if getStageDone <quest> 10 == 0 if IsActionRef player == 1 StartQuest <quest> endif endif End But the player could enter the area and just keep moving till they activated something. eg talk to npc, open inventory (which crashes the game), open pause menu...I just want it to trigger the moment they enter. for now.I do actually want to do a "knock the player out" thing. I do not have any dlc's so i can't just snag dead moneys script. any suggestions there ether? Edited March 6, 2012 by ugsquish Link to comment Share on other sites More sharing options...
Greslin Posted March 6, 2012 Share Posted March 6, 2012 Set TimerA to1 Syntax error. You need a space between "to" and "1". Link to comment Share on other sites More sharing options...
ugsquish Posted March 6, 2012 Author Share Posted March 6, 2012 Syntax error. You need a space between "to" and "1". Ah, that got it. thanks. so easy to look over lol Link to comment Share on other sites More sharing options...
Greslin Posted March 6, 2012 Share Posted March 6, 2012 Syntax error. You need a space between "to" and "1". Ah, that got it. thanks. so easy to look over lolI've found usually that when GECK refuses to save a script, it's either a syntax error or a typo in a variable. Install GECK PowerUp: http://newvegas.nexusmods.com/downloads/file.php?id=41642 It'll make GECK actually give you useful error messages rather than simply refusing to save for an unspecified reason. It's a lifesaver. Link to comment Share on other sites More sharing options...
Recommended Posts