hello Hive.
I've got an issue with a trigger for a spell...
The spell is like water shield from World of Warcraft, if you know about it;
It gives mana regen per 5 seconds (mp5) for aslong as the shield lasts.
Now this wouldn't be an issue for me if it was permanent, but i'm not the best when it comes to triggers so i need help with it.
so while the buff of the water shield is on the target (it can only target self) it should increase the value of the int variable "Mana_Per_5" by 12 which is easy but when the buff runs out those 12 mp5 needs to disappear.
in short: while water shield buff is up increase "mana_per_5" by 12. when the buff fades decrease "mana_per_5" by 12.
could also use some help with the actual mana give trigger which currently looks like:
It could use some optimization
and the mana_per_5 variable is changed with either:
or:
Depending on if it's when you get an item with mp5 or when you learn a skill that gives mp5
I've got an issue with a trigger for a spell...
The spell is like water shield from World of Warcraft, if you know about it;
It gives mana regen per 5 seconds (mp5) for aslong as the shield lasts.
Now this wouldn't be an issue for me if it was permanent, but i'm not the best when it comes to triggers so i need help with it.
so while the buff of the water shield is on the target (it can only target self) it should increase the value of the int variable "Mana_Per_5" by 12 which is easy but when the buff runs out those 12 mp5 needs to disappear.
in short: while water shield buff is up increase "mana_per_5" by 12. when the buff fades decrease "mana_per_5" by 12.
could also use some help with the actual mana give trigger which currently looks like:
-
give mp5
-
Events
- Time - Every 5.00 seconds of game time
- Conditions
-
Actions
- Unit - Set mana of Player_Character[1] to ((Mana of Player_Character[1]) + (Real(mana_Per_5[1])))
- Unit - Set mana of Player_Character[2] to ((Mana of Player_Character[2]) + (Real(mana_Per_5[2])))
- Unit - Set mana of Player_Character[3] to ((Mana of Player_Character[3]) + (Real(mana_Per_5[3])))
- Unit - Set mana of Player_Character[4] to ((Mana of Player_Character[4]) + (Real(mana_Per_5[4])))
- Unit - Set mana of Player_Character[5] to ((Mana of Player_Character[5]) + (Real(mana_Per_5[5])))
- Unit - Set mana of Player_Character[6] to ((Mana of Player_Character[6]) + (Real(mana_Per_5[6])))
- Unit - Set mana of Player_Character[7] to ((Mana of Player_Character[7]) + (Real(mana_Per_5[7])))
- Unit - Set mana of Player_Character[8] to ((Mana of Player_Character[8]) + (Real(mana_Per_5[8])))
-
Events
and the mana_per_5 variable is changed with either:
- Set mana_Per_5[(Player number of (Owner of (Hero manipulating item)))] = (mana_Per_5[(Player number of (Owner of (Hero manipulating item)))] + X)
- Set mana_Per_5[(Player number of (Owner of (Learning Hero)))] = (mana_Per_5[(Player number of (Owner of (Learning Hero)))] + X)
Last edited by a moderator: