- Joined
- Feb 24, 2013
- Messages
- 1,003
- Reaction score
- 96
- First Language
- English
- Primarily Uses
Hi, I've got an idea for a skill, but I'm not entirely sure how I would do this. I think it'll need to use variables, but I'm not so clued up on them, so that's why I need help.
Basically, what I want to do is this:
When the skill is used, the character can't be controlled for X number of turns. Any damage he takes during that time is stored and then, when he can move again, it's sent back to a random enemy.
So, for example. Let's say while he's uncontrollable, he gets hit for 300 damage in total. Then, at the end he deals back 300 to a random enemy.
How do I make the game record the damage he's taken?
Basically, what I want to do is this:
When the skill is used, the character can't be controlled for X number of turns. Any damage he takes during that time is stored and then, when he can move again, it's sent back to a random enemy.
So, for example. Let's say while he's uncontrollable, he gets hit for 300 damage in total. Then, at the end he deals back 300 to a random enemy.
How do I make the game record the damage he's taken?

