I was just wondering if it is possible to make multiply functions with Jass triggers? If so what would be the coding text needed to type in? I can post the actually current Jass code i wish to multiply function if needed.
im currently working on a Starcraft Conversion map and im making heaps of progress with adding new models and skins, but i still want to see if i can get more space out of the map through removal of triggers. I got pretty good at reducing the amount of GUI triggers in my maps by putting multiple triggers into one big trigger. But i have 2 sets of 32 Jass Triggers that i hope could be reduced down to 2 big triggers, to gain more space for more models. I have tried to convert the Jass form triggers into GUI but the GUI command functions just couldnt specify a single action it seems. So i just wanted to know if there was a particular Jass code that i could use to make multiple functions with these triggers.
You know memory leaks has nothing to do with how many times you use a function. Just be sure to clear the vaules and destroy unneeded objects.
And all this:
function Trig_Mine1_Built_Func007C takes nothing returns boolean
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'n003' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'n002' ) ) then
return true
endif
if ( ( GetUnitTypeId(GetEnteringUnit()) == 'n004' ) ) then
return true
endif
return false
endfunction
You know that the function will return true if any pf those conditions are true. So you can put them all in one by adding "and" between the unit type comparision.
Combining all your triggers into one WILL NOT reduce your map's size because they are already one BIG script file in the map. Trigger coding take up vitualy NO space. At most you could reduce a few KB here and there by rewriting the triggers to need as few lines of coding as possiable but the space saved is minimal. If you want to reduce space use an opotmization program. I have heard they reduce map size by up to 200 KB!
I read the rules but I read the date of the last post too: Sat Aug 05, 2006 6:17 am And I thought, that the other person would have done the same before... There is nobody one can trust in these days. ^^