What i mean is, you level up, you have a percentage of hp. You bring the unit with that percentage of hp , and it only gives you that percentage. Everytime you Level, it changes, so how do i do this? Its in plenty of dbz maps.
Oh well you would need a trigger for detecting each level the player is at, and you need a trigger for each lvl up.
Here are the triggers you would need for healing at a certain lvl:
-Condition:
-Switch 'p1 lvl 1' is set
-Bring 'Unit' to 'Healloc'
-Actions:
-Modify unit health at 'healloc' to 10%
-preserve trigger
And for lvl 2 you would need:
-Condition:
-Switch 'p1 lvl 2' is set
-Bring 'Unit' to 'Healloc'
-Actions:
-Modify unit health at 'healloc' to 20%
-preserve trigger
And so on for each lvl. For a trigger to lvl up you just need to decide
how you want your player to lvl up. And once your player reaches that
how then you set the switch for that lvl, and clear the previous switch for the previous lvl.
Here is an example:
-Condition:
-Current player score kills/razings is at least 5000
-Action:
-Set switch 'p1 lvl 1'
Then for lvl 2 you would have:
-Condition:
-Current player score kills/razings is at least 10000
-Action:
-Set switch 'p1 lvl 2'
-Clear switch 'p1 lvl 1'
And there you have it! Hope that helps
None.