How do you reset a row?
Franto
Member Posts: 779
Is there a behavior/command that resets a row back to 1? Like if I have a table of 20 rows, I run a rule, and it resets the table back to 1.
After that hurdle I was talking about was solved, this should be fairly simple. What initially comes to mind is to run a loop condition that repeats "remove row" at the end, until the condition reached is 1 row.
Just want to make sure there isn't something better like "reset table" that is just hidden there the way text strings where for me.
Comments
There's the copy table behavior. It copies an entire table to the table you select. So, in your instance, you'd create a duplicate table with the initial values and then copy that table to the table you select. Make sense?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Braydon_SFX Thank you! So at the start of a game, just make a copy table of the active table in it's original, 1 row state, and then when the game restarts, the original state of the table is copied over the active table.
And that completes the "universal damage" system. Now I can delete 300+ redundant rules spread over dozens of actors. Now the entire damage system can be contained in a single actor that has 20+ rules and 3 tables controlling the way damage is dealt! With stacking! All previous actors just need 1 or 2 rules to refer to this actor.
And if I need to edit anything, I just gotta go to the technique itself, which sends it's information to a table that keeps track of all technique stats. No more having to edit every instance of the technique in every target in the game! I truly am grateful.