How do you do the hp% trigger? I really need to know for a new rpg that im making.
u put
-----------------------------------
Conditions
-----------------------------------
player brings unit to (healing location)
-----------------------------------
Action
-----------------------------------
Modify unit hitpoint to 100%
Wait 15000 milliseconds(to make sure he aint camping on heal)
Preserve trigger
Thats only for healing, im talking about Hp% increasing per lvl u get, like in some rpgs.
Conditions
- Current player has at least X Exp.
Actions
- Set Switch X
- Set HP% to X
Conditions
- Current player has at least X Exp.
- Current Player did something for heal
Actions
- Set Hp% to X
- Preserve Trigger
You should do one of these for every level up. Switch X is the level he is in.
IE: Switch 1 = Level 1
is the 2nd trig for healing depending on what lvl ur on?
Yes.
You can also make a trigger very much like the ones above for upgrades. On the first trigger you can add minerals and gas for upgrades if you want.
I never liked that. (it always bugs me when i start the map and my unit is always in the red)
But thats just my personal preferance.
I never used a switch on hp % i just used custom exp atleast X Atmost X pretty much it. So like this
Conditions:
- Current player brings at least X units to location X
- Current player has at least X Exp
- Current player has at most X Exp
Actions:
- Modify HP for unit at location X
- Preserve Trigger
Change atleast & Atmost at lvl ups =/
Never use switches for something like this. Switches are global and affect all players. Unless you plan on using seperate switches for each player. :/