- Joined
- Jun 1, 2009
- Messages
- 104
Hi! From what I've read about "Unit takes damage" event - that it's extremely buggy and you will even need to destroy trigger (sic!) with this event added, cause events will stack up to infinite values.
But how about adding a variable array TempUnit[n]?
Will it fix the problem?
And what another bugs\glitches with this event I should know?
My little test trigger worked ofc. but I wonder, will it lag, leak or glitch in real situations:
But how about adding a variable array TempUnit[n]?
Will it fix the problem?
And what another bugs\glitches with this event I should know?
My little test trigger worked ofc. but I wonder, will it lag, leak or glitch in real situations:
-
TEST Damage
-
Events
- Player - Player 1 (Red) types a chat message containing -td as A substring
- Conditions
-
Actions
- Set VariableSet TempUnit[0] = Dummy 0018 <gen>
- Trigger - Add to TEST Damage Copy <gen> the event (Unit - TempUnit[0] Takes damage)
- Trigger - Turn off (This trigger)
- Game - Display to (All players) the text: DONE
-
Events
-
TEST Damage Copy
- Events
- Conditions
-
Actions
- Game - Display to (All players) the text: HEY! THAT'S HURTS!