• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] How come this doesn't crash?

Status
Not open for further replies.
Following http://www.hiveworkshop.com/forums/triggers-scripts-269/there-way-remove-event-256539/index2.html

From past experiences on what people have said about doing it this way as well.

Test the demomap as well if the triggers don't say anything.


[trigger=]
Untitled Trigger 001
Events
Unit - A unit enters (Entire map)
Conditions
Actions
Trigger - Add to Display Damage <gen> the event (Unit - (Triggering unit) Takes damage)
Unit - Set the custom value of (Triggering unit) to lol
Set lol = (lol + 1)
Game - Display to (All players) the text: (String(lol))
Hashtable - Save 0.00 as 1 of (Key (Triggering unit)) in table
[/trigger]
[trigger=]
Spawn Copy
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit - Create 1 Rifleman for Player 1 (Red) at DemoMapPoint facing (Random angle) degrees
Trigger - Add to Display Damage <gen> the event (Unit - (Last created unit) Takes damage)
Unit - Add a 0.10 second Generic expiration timer to (Last created unit)
[/trigger]


Use flame strike to test it when values are past 8200, it still doesn't crash.
 

Attachments

  • Assist System.w3x
    23.3 KB · Views: 37
Last edited:
Level 28
Joined
Sep 26, 2009
Messages
2,520
I'm not sure about the OP limit. I think it also affects how much stuff is actually put into the block.
For example if you have 6 actions in the loop block, then OP limit may be 4200 times, but if you have 30 actions in the loop block, OP limit may be 1200 times, etc.
 
Status
Not open for further replies.
Top