- Joined
- Sep 19, 2006
- Messages
- 152
Here's a few questions for all you pros out there:
1) I haven't posted in a very long time, and can't remember what to enclose between the "[ ]" when posting triggers. Is it something like jass and .jass, or .jass and /.jass?
2) In "regular" JASS (not that vJASS stuff), is it necessary to determine if "u" (for example) will return a null unit? For instance, in the following trigger....
set u1 = GetTriggerUnit ()
set u2
if u2 != null then
call IssueTargetOrder (u2, "smart", u1)
endif
is the "if/then" line in the above trigger really necessary, or can it (and the endif) be omitted?
3) Somewhere along the line, my project map went from 3500 kbs in size to about 3700, but the loading time went from 3 minutes to about 6. Are there any tricks to reduce this horrific loading time?
4) Lastly, when used in a loop, is call PolledWait better or worse than TriggerSleepAction? And for these functions, what is the shortest duration recommended?
loop
call PolledWait (2.00) / TriggerSleepAction (2.00)
exitwhen GetUnitAbilityLevel (trig_unit, 'BOhx') == 0
endloop
I certainly appreciate the help; this site has proven an invaluable resource!
1) I haven't posted in a very long time, and can't remember what to enclose between the "[ ]" when posting triggers. Is it something like jass and .jass, or .jass and /.jass?
2) In "regular" JASS (not that vJASS stuff), is it necessary to determine if "u" (for example) will return a null unit? For instance, in the following trigger....
set u1 = GetTriggerUnit ()
set u2
if u2 != null then
call IssueTargetOrder (u2, "smart", u1)
endif
is the "if/then" line in the above trigger really necessary, or can it (and the endif) be omitted?
3) Somewhere along the line, my project map went from 3500 kbs in size to about 3700, but the loading time went from 3 minutes to about 6. Are there any tricks to reduce this horrific loading time?
4) Lastly, when used in a loop, is call PolledWait better or worse than TriggerSleepAction? And for these functions, what is the shortest duration recommended?
loop
call PolledWait (2.00) / TriggerSleepAction (2.00)
exitwhen GetUnitAbilityLevel (trig_unit, 'BOhx') == 0
endloop
I certainly appreciate the help; this site has proven an invaluable resource!