• 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.

how to separate init trigger?

Status
Not open for further replies.
Level 14
Joined
Mar 4, 2009
Messages
1,156
Yeah you can do that. You can use "trigger - run <some trigger>" in the initialization to run the others.
no....

i have init trigger and in that trigger are 150 triggers
(all triggers in map are in init trigger)

i was wondering if it is possible to put them in normal (separated from each other)

you know that for gui you would have 150 icons of triggers
but in init trigger all that triggers would be in init trigger....

(btw i am not try to put it back in gui coz its impossible i just need to separate it)
 
Are you using Jass, if so it would have helped to state that.
I also have the feeling you are using an unprotected map because the triggers are compiled into a single trigger called "init" which is extremely long.

Anyways, if you don't know jass it's going to be difficult but basically look for something like this;

JASS:
function Sometrigger_func0293402 takes nothing returns nothing

endfunction

function Sometrigger_Actions takes nothing returns nothing

endfunction

function InitTrig_Sometrigg takes nothing returns nothing
    set gg_trg_Sometrigg = CreateTrigger()
    //blah
endfunction

That would all be a trigger called Sometrigg, so look for things like that.
So you would copy it, create a new trigger called Sometrigg and paste it in there (while removing it from init).
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
Are you using Jass, if so it would have helped to state that.
I also have the feeling you are using an unprotected map because the triggers are compiled into a single trigger called "init" which is extremely long.

Anyways, if you don't know jass it's going to be difficult but basically look for something like this;

JASS:
function Sometrigger_func0293402 takes nothing returns nothing

endfunction

function Sometrigger_Actions takes nothing returns nothing

endfunction

function InitTrig_Sometrigg takes nothing returns nothing
    set gg_trg_Sometrigg = CreateTrigger()
    //blah
endfunction

That would all be a trigger called Sometrigg, so look for things like that.
So you would copy it, create a new trigger called Sometrigg and paste it in there (while removing it from init).
that is what i´m talking about but ...
is there anything that could do it automaticly ? like some program ...

btw if i do anything wrong in that trigger it does now warn me when i disable,enable trigger
any idea why?
 
Status
Not open for further replies.
Top