- Joined
- Dec 23, 2005
- Messages
- 29
Hello all, i've hit a problem with a trigger i'm trying to make in my RPG map and can't seem to figure it out on my own.
The triggers intention is so when HEROP1's health gets to a certain health percentage, an icon appears above his head.
This works to a varying degree, it seems as though the trigger is malfunctioning, sometimes showing the Gold icon when its supposed to be the Red or Green. It also rapidly switches between the icons randomly when it approaches the percentages in the trigger. When the unit reaches 100% health, the icon does not disappear.
Things to note:
-the variable HEROP1 is assigned to the 'Cleric 0018' Unit in another trigger.
-The event timer is a looping timer set up in another trigger which plays every 0.03s. I was playing around with periodic timer and this timer to see if there was an issue there.
- I've tried placing the 'If/Then/Else' triggers into one large trigger, with each 'If/Then/Else' being placed into the 'Else' fields.
Any help would be greatly appreciated!
The triggers intention is so when HEROP1's health gets to a certain health percentage, an icon appears above his head.
This works to a varying degree, it seems as though the trigger is malfunctioning, sometimes showing the Gold icon when its supposed to be the Red or Green. It also rapidly switches between the icons randomly when it approaches the percentages in the trigger. When the unit reaches 100% health, the icon does not disappear.
Things to note:
-the variable HEROP1 is assigned to the 'Cleric 0018' Unit in another trigger.
-The event timer is a looping timer set up in another trigger which plays every 0.03s. I was playing around with periodic timer and this timer to see if there was an issue there.
- I've tried placing the 'If/Then/Else' triggers into one large trigger, with each 'If/Then/Else' being placed into the 'Else' fields.
-
Untitled Trigger 013 Copy Copy Copy
-
Events
-
Time - IconHealthTimer expires
-
-
Conditions
-
Actions
-
Special Effect - Destroy PlayerIconOverhead[1]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of HEROP1) Equal to 100.00
-
-
Then - Actions
-
Special Effect - Destroy PlayerIconOverhead[1]
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of HEROP1) Less than or equal to 30.00
-
-
Then - Actions
-
Special Effect - Destroy PlayerIconOverhead[1]
-
Special Effect - Create a special effect attached to the overhead of Cleric 0118 <gen> using war3mapImported\ICONminimap-red-haunted.mdx
-
Set PlayerIconOverhead[1] = (Last created special effect)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of HEROP1) Less than or equal to 75.00
-
And - All (Conditions) are true
-
Conditions
-
(Percentage life of HEROP1) Greater than 30.00
-
-
-
-
Then - Actions
-
Special Effect - Destroy PlayerIconOverhead[1]
-
Special Effect - Create a special effect attached to the overhead of Cleric 0118 <gen> using war3mapImported\ICONminimap-gold-haunted.mdx
-
Set PlayerIconOverhead[1] = (Last created special effect)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Percentage life of HEROP1) Greater than 75.00
-
And - All (Conditions) are true
-
Conditions
-
(Percentage life of HEROP1) Not equal to 100.00
-
-
-
-
Then - Actions
-
Special Effect - Destroy PlayerIconOverhead[1]
-
Special Effect - Create a special effect attached to the overhead of Cleric 0118 <gen> using war3mapImported\ICONminimap-green-haunted.mdx
-
Set PlayerIconOverhead[1] = (Last created special effect)
-
-
Else - Actions
-
-
-
Any help would be greatly appreciated!