AndrewBlane Posted January 30, 2015 Posted January 30, 2015 (edited) My script won't save so there's probably a syntax error somewhere but I'm not very good at this so I don't know what it is.The script is: SCN 00AJBPinkMambaFoundCampTrig begin onTriggerEnter player if getQuestRuning 00AJBPinkMambaQuest == 1 if getStage 00AJBPinkMambaQuest == 10 setStage 00AJBPinkMambaQuest 20 endif endif end You may be calling me some form of stupid or blind person but I can't see anything wrong with this. Please help -Andrew Edited January 30, 2015 by AndrewBlane
claustromaniac Posted January 30, 2015 Posted January 30, 2015 Just to add to what Belthan said, I recommend you this script validator to help detect typos and errors. Alternatively you could try Notepad++ with a syntax highlighter such as this one. Personally, I use both.
AndrewBlane Posted January 30, 2015 Author Posted January 30, 2015 Typo - need another n in getquestrunning THANK YOU!
AndrewBlane Posted January 31, 2015 Author Posted January 31, 2015 Just to add to what Belthan said, I recommend you this script validator to help detect typos and errors. Alternatively you could try Notepad++ with a syntax highlighter such as this one. Personally, I use both.Sweet, thanks!
luthienanarion Posted February 12, 2015 Posted February 12, 2015 Also note that prefixing form names with numerals is an extremely bad practice because of how the script compiler parses function arguments, and it can prevent scripts that reference those forms from compiling.
Recommended Posts