I'm making a resource management type system and I want it so that if one of the variables gets to 0 it forces you to go to say a game over screen. Is that possible? If not is there anyway I could make it remove all the text on screen to show the game over bit so they can't continue?
Thanks
Comments
But that only displays the passage, the rest of the passage is still visible, I have the <<else>> bit before the bit I want removed and <<endif>> at the end of it all but it is still visible.
If you are using Sugarcube, then you'll have to get a different version of the code here if you want to try that method.
I don't know when you put your check for the player having no resources, but you could also do something like this. That method doesn't require any other scripts and is simpler. The first one came into my head because I use the Timed Goto macro all the time.
I hope this helps.
If you are using Sugarcube, then you'll have to get a different version of the code here if you want to try that method.
I don't know when you put your check for the player having no resources, but you could also do something like this. That method doesn't require any other scripts and is simpler. The first one came into my head because I use the Timed Goto macro all the time.
I hope this helps.
I tried the top and bottom one but I always get this error <<timedgoto "Game Over" 1s>> bad argument: 1s,(I did also try as 2s but I got the same error just with 2s) I did paste both bits of code exactly like they were in the .tws file but I still get the error, I even changed the tag to script but it still says the same thing? Also I need this for multiple resources and such so I need to basically read the first bit and if nothing is wrong with $food it checks $medicine and so on and if nothing is 0 then it continues the story. I did actually need something for timed choices aswell so thankyou for that awesome script