- Joined
- Apr 23, 2010
- Messages
- 312
I don't understand why this won't work, I am trying to use a max hp increase ability that I saw Maker show someone but I can't get it to work for regular unit's. I haven't tried it on heroes other than in a demo map Maker made.
Below is the ability of which I am only showing the modified areas changed by Maker (I changed nothing)
Here is the trigger in which I use this ability.
The initial add ability works, the unit I add it to only has 50 health and after the ability is added is jumps up to 75 like it should, though it stays at 75 every spawn afterwards.
Also if anyone can enlighten me as how to change the "-25" to "-50" that would be great! You can't add the hash mark in the regular way but I know there is another way, just can't remember how.
Below is the ability of which I am only showing the modified areas changed by Maker (I changed nothing)
UnitMaxState - Life (+25)
Stats - Item Ability = False
Stats - Levels = 2
Text - Editor Suffix = (+25)
Text - Name = UnitMaxState - Life
Level 1 - Data - Max Life Gained = 0
Level 2 - Data - Max Life Gained = -25
Stats - Item Ability = False
Stats - Levels = 2
Text - Editor Suffix = (+25)
Text - Name = UnitMaxState - Life
Level 1 - Data - Max Life Gained = 0
Level 2 - Data - Max Life Gained = -25
Here is the trigger in which I use this ability.
-
Next Wave
-
Events
- Time - t_NextWave expires
- Conditions
-
Actions
- Set pg_PlayingPlayers = (All enemies of Player 12 (Brown))
-
Player Group - Pick every player in pg_PlayingPlayers and do (Actions)
-
Loop - Actions
- Countdown Timer - Hide tw_TimerWindow for (Picked player)
- Countdown Timer - Destroy tw_TimerWindow
-
Loop - Actions
- Custom script: call DestroyForce(udg_pg_PlayingPlayers)
-
For each (Integer i_Loop) from 1 to i_Difficulty, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- i_MaxWaveUnits Less than i_Difficulty
-
Then - Actions
- Set i_MaxWaveUnits = (i_MaxWaveUnits + 1)
- Set p_TempPoint = (Center of Start <gen>)
- Unit - Create 1 Footman for Player 12 (Brown) at p_TempPoint facing Default building facing degrees
- Custom script: call RemoveLocation(udg_p_TempPoint)
- Set u_TempUnit = (Last created unit)
- Unit - Set u_TempUnit movement speed to (600.00 + ((Real(i_Wave)) x 10.00))
- Unit - Add UnitMaxState - Life (+25) to u_TempUnit
- Unit - Increase level of UnitMaxState - Life (+25) for u_TempUnit
- Unit - Remove UnitMaxState - Life (+25) from u_TempUnit
- Set p_TempPoint = (Center of End <gen>)
- Unit - Order u_TempUnit to Move To p_TempPoint
- Custom script: call RemoveLocation(udg_p_TempPoint)
- Wait 0.50 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
Also if anyone can enlighten me as how to change the "-25" to "-50" that would be great! You can't add the hash mark in the regular way but I know there is another way, just can't remember how.