jaybles169
New Member
- Reaction score
- 2
Ran into an issue with this trigger and a couple other triggers that utilize a similar idea.
This is intended to be a heal over time potion, healing x amount each second for 5 seconds, but sometimes they bug out and don't stop after 5 seconds, thus repeatedly healing a character for an extended time but eventually stopping. I'm not sure if using Wait (Game-Time) would make a difference or not. Am I going about this the right way? If not, does anyone have suggestions for a different way to do it?
This is intended to be a heal over time potion, healing x amount each second for 5 seconds, but sometimes they bug out and don't stop after 5 seconds, thus repeatedly healing a character for an extended time but eventually stopping. I'm not sure if using Wait (Game-Time) would make a difference or not. Am I going about this the right way? If not, does anyone have suggestions for a different way to do it?
Trigger:
- Rejuvenation Potions
- Events
- Unit - A unit Uses an item
- Conditions
- Actions
- -------- Lesser Rejuv --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item being manipulated) Equal to (Item carried by (Triggering unit) of type Potion of Lesser Rejuvenation)
- Then - Actions
- For each (Integer A) from 1 to 5, do (Actions)
- Loop - Actions
- Wait 1.00 seconds
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 180.00)
- Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 150.00)
- Loop - Actions
- For each (Integer A) from 1 to 5, do (Actions)
- Else - Actions
- If - Conditions
- -------- Greater Rejuv --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Item being manipulated) Equal to (Item carried by (Triggering unit) of type Potion of Greater Rejuvenation)
- Then - Actions
- For each (Integer A) from 1 to 5, do (Actions)
- Loop - Actions
- Wait 1.00 seconds
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + 500.00)
- Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 400.00)
- Loop - Actions
- For each (Integer A) from 1 to 5, do (Actions)
- Else - Actions
- If - Conditions
- Events