I have a 'coins' system in my game. And at some point the character is robbed and lose all her money.
How do I reset the value 'coins' back to zero/to the initial value (0)?
thanks!
How do I reset a value? (example: coins) (SOLVED)
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- MichiPantera
- Newbie
- Posts: 8
- Joined: Thu Mar 23, 2017 12:04 pm
- Contact:
How do I reset a value? (example: coins) (SOLVED)
Last edited by MichiPantera on Tue Nov 07, 2017 7:56 am, edited 1 time in total.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: How do I reset a value? (example: coins)
Depending on the system, but you could just set the variable to zero.
Code: Select all
$ coins = 0
- MichiPantera
- Newbie
- Posts: 8
- Joined: Thu Mar 23, 2017 12:04 pm
- Contact:
Re: How do I reset a value? (example: coins)
It works!
Thank you so much Divona!!
Thank you so much Divona!!
Who is online
Users browsing this forum: Google [Bot]