- Joined
- Jan 22, 2010
- Messages
- 2,583
Alright, for some reason this trigger is making the game crash.
Its effect is supposed to make the unit deal 35% more damage to structures. I'm not too sure what's making it crash, though.
Its effect is supposed to make the unit deal 35% more damage to structures. I'm not too sure what's making it crash, though.
-
Goliath Demolish
- Events
-
Conditions
- ((Triggering unit) is A structure) Equal to True
- (Unit-type of (Damage source)) Equal to Goliath
-
Actions
- Set DemolishDamageTaken = (Damage taken)
- Set DemolishDamageSource = (Damage source)
- Set DemolishTarget = (Triggering unit)
- Set DemolishBonusDamage = (DemolishDamageTaken x 0.35)
- Unit - Cause DemolishDamageSource to damage DemolishTarget, dealing DemolishBonusDamage damage of attack type Siege and damage type Normal
- Floating Text - Create floating text that reads ((String((Integer((DemolishDamageTaken + DemolishBonusDamage))))) + !) above DemolishTarget with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Set DemolishText = (Last created floating text)
- Floating Text - Set the velocity of DemolishText to 64.00 towards 90.00 degrees
- Floating Text - Change DemolishText: Disable permanence
- Floating Text - Change the lifespan of DemolishText to 1.50 seconds
- Floating Text - Change the fading age of DemolishText to 0.75 seconds