Hey guys
I have a problem with a custom ability. I made a costum ability with a damage counter for one unit type with the system GDD(http://www.hiveworkshop.com/forums/spells-569/gui-friendly-damage-detection-v1-2-1-a-149098/)
If this unit did 300 damage he will use the ability avatar. I want to change the size a bit more so I add "change size" to the trigger. But I want that he will become small agian after that transformation. I used "wait game-time" but it doesn't work.
Here is the trigger:
Another problem is that during the "Avatar" form I can not change the order if he started to attack an enemy.
I also put an example map with that trigger for trying out
I have a problem with a custom ability. I made a costum ability with a damage counter for one unit type with the system GDD(http://www.hiveworkshop.com/forums/spells-569/gui-friendly-damage-detection-v1-2-1-a-149098/)
If this unit did 300 damage he will use the ability avatar. I want to change the size a bit more so I add "change size" to the trigger. But I want that he will become small agian after that transformation. I used "wait game-time" but it doesn't work.
Here is the trigger:
-
Transformation
-
Events
- Game - GDD_Event becomes Equal to 0.00
-
Conditions
- (GDD_DamageSource is alive) Not equal to (GDD_DamageSource has buff Avatar)
- (Unit-type of GDD_DamageSource) Equal to Exmaple Unit
-
Actions
- Custom script: set udg_damage1 = udg_damage1 + udg_GDD_Damage
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- damage1 Greater than or equal to (Real(damage2))
-
Then - Actions
- Set loc = (Position of GDD_DamageSource)
- Custom script: call CreateTextTagLocBJ( "|c00000064"+ I2S(udg_damage2) +"now!|r" , udg_loc, 0, 10, 100, 100, 100, 0 )
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 15.00 towards 90.00 degrees
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
- Custom script: set udg_damage2 = udg_damage2+100
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- damage1 Greater than or equal to 300.00
-
Then - Actions
- Unit - Add Avatar Unit to GDD_DamageSource
- Unit - Order GDD_DamageSource to Human Mountain King - Activate Avatar
- Animation - Change GDD_DamageSource's size to (500.00%, 100.00%, 100.00%) of its original size
- Unit - Remove Avatar Unit from GDD_DamageSource
- Unit - Reset ability cooldowns for GDD_DamageSource
- Custom script: set udg_damage1 = 0
- Custom script: set udg_damage2 = 0
- Wait 20.00 game-time seconds
- Animation - Change GDD_DamageSource's size to (100.00%, 100.00%, 100.00%) of its original size
- Else - Actions
-
If - Conditions
-
Events
Another problem is that during the "Avatar" form I can not change the order if he started to attack an enemy.
I also put an example map with that trigger for trying out