- Joined
- Jul 31, 2023
- Messages
- 2
Hello. I was making a skill that passively adds random damage, but I ran into the problem. When a hero with this skill dealing damage, the game crashes without any message. I also tested this trigger on a empty map without other lines and preset 100.00 damage value. Definition of "Damage source" and "Triggered unit" works fine (tested with a text).
-
RandomDamage
-
Events
-
Unit - A unit Получает урон
-
-
Conditions
-
(Level of Random damage for (Damage source)) Greater than 0
-
-
Actions
-
Set VariableSet RandomDamageValue = (Random integer number between 1 and (50 x (Level of Random damage for (Damage source))))
-
Unit - Cause (Damage source) to damage (Triggering unit), dealing (Real(RandomDamageValue)) damage of attack type Chaos and damage type Normal
-
Floating Text - Create floating text that reads (String(RandomDamageValue)) at (Position of (Triggering unit)) with Z offset 10.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
-
-
Last edited: