• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[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 25
Joined
Sep 26, 2009
Messages
2,385
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