Reseting Multiple Attributes
osucowboy18
Member Posts: 1,307
Hey guys, in my latest game, I have added a feature that will let the user clear their high scores if they so choose. Now obviously, I could just go in and manually change all values to zero, or whatever the appropriate default value is. However, is it possible to reset the values of multiple attributes within GS to their default values more quickly than using a lot of Change Attribute behaviors? Thanks.
- Alex
- Alex
Comments
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
but if you have saveAttributes... they stay ...
and if you have load attributes on the main screen they load...
I tried 2 triggers on main screen
1. one for loading keys for loading attributes like levels unlocked and added a key for reset boolean
2. and separate trigger for loading high scores...Rule initiate event with a boolean a gameAttribute reset:
...true for loading the high scores...false for not loading
and that is a little crazy
on reset Actor Rule when user selects delete high score:
changeAttribute HighScore1 To: 0 and etc. (as everyone tells you... you gotta do the individual ones)
and SaveAttribute each 0 attribute...in your previous load keys...
and then you have to trigger that reset boolean and save it so next open will load/display current
HighScores.
==
and if all that didn't confuse you... please explain it to me!
MH
- Alex