• 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] one big trigger or many small ones?

Status
Not open for further replies.
Level 2
Joined
Jul 30, 2006
Messages
9
i have a trigger which growed quite big.

if i copy as text and paste it in ms word using default font, it fills 37 pages.
it takes around 3-4 seconds to show the trigger once i click on it in the WE (got 2gHz and 1gb ram).

so my questions:
if it takes that long to activate it in WE, does it influence the performance or map load time in WC3?
if yes, would it help to split it into many small triggers?

thx in advance
bsycho
 
Level 3
Joined
Nov 4, 2006
Messages
32
WE load any trigger in GUI too slow because it need coloring and sending to special GUI memo box. When you save this map, it compiles to text and will not laggy in the game (if you trigger do not have many memory leaks, or loops by 1 to 100000).

Note: dont use this trigger for event same as "time - every 0.10 seconds". Use once one time in 5-10 seconds or more.

I answer for your question?

So. if you want to cut this trigger to many little triggers, use triggers without events and "run trigger ignoring conditions" command.

Before:
Trigger:
command block 1
command block 2
command block 3

After:
Trigger1:
command block 1
run trigger2 ignoring conditions
Trigger2:
command block 2
run trigger3 ignoring conditions
Trigger3:
command block 3
 
Level 2
Joined
Jul 30, 2006
Messages
9
thanks, that was all i wanted to know =)

but imo u never should run trigger ignoring conditions, just dont add any. so if u want to do this later (add a cond.) u may get confused why it doesnt work properly.
 
Status
Not open for further replies.
Top