The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Script not wanting to save

General help and troubleshooting.
Post Reply
nightstalker117313
Posts: 50
Joined: Sat Nov 30, 2013 11:12 pm

Script not wanting to save

Post by nightstalker117313 » Tue Dec 24, 2013 4:55 am

I can't get the script for my quest to save. It's a simple script that checks if the player has a key in their inventory. If they don't, it sets the quest to the stage to look for the key. If they do, it sets the stage to the stage after they would've picked up the key.


 


here is my script:



scn agcTARDISquest20Script


begin  onTriggerEnter player  


if player.GetItemCount agcTARDISKey == 0


setStage agcTARDISquest to 20


else


setStage agcTARDISquest to 31


endif


end




the key is created, as is the quest.

 



JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

it should just be "SetStage

Post by JaxFirehart » Tue Dec 24, 2013 5:09 am

it should just be "SetStage agcTARDISquest 20"


SetStage is a function, which means it is just looking for the proper arguments, you have "to" in there and it is confusing it


set [var] to [number]            is not the same as             SetStage [quest] [stage]



nightstalker117313
Posts: 50
Joined: Sat Nov 30, 2013 11:12 pm

Awesome! Thank you, worked

Post by nightstalker117313 » Tue Dec 24, 2013 5:16 am

Awesome! Thank you, worked like a charm once I took out the "to" in the setStage lines.



JaxFirehart
Posts: 3003
Joined: Wed Sep 12, 2012 12:33 am

No problem, sorry we kinda

Post by JaxFirehart » Tue Dec 24, 2013 5:18 am

No problem, sorry we kinda ignored you in chat, glad to have helped.



Post Reply