game resets.
From what I can tell, here is what I need to do:
1) Reduce each heroes current HP by 10.
2) Check to see if any heroes have less than 10 HP. If so, make them dead.
3) If all heroes have less than 10 HP, display text box and reset the game.
I've figured out this much already:
Code:
oldstat := get hero stat(0, stat:Hull, current stat)
set hero stat(0, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(1, stat:Hull, current stat)
set hero stat(1, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(2, stat:Hull, current stat)
set hero stat(2, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(3, stat:Hull, current stat)
set hero stat(3, stat:Hull, oldstat--10, current stat)
set hero stat(0, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(1, stat:Hull, current stat)
set hero stat(1, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(2, stat:Hull, current stat)
set hero stat(2, stat:Hull, oldstat--10, current stat)
oldstat := get hero stat(3, stat:Hull, current stat)
set hero stat(3, stat:Hull, oldstat--10, current stat)
How do I proceed from here?



