- Joined
- May 15, 2008
- Messages
- 147
OK, I'm doing some systems for wave-like spells and I need these things cleared up.
Q1 - After trying various ways to save a unit group to a hashtable I found out eventualy that
does not work under any circumstances. Or maybe the LoadGroupHashtable doesn't work but I cannot really know which one is if I cannot load the saved content. Problem is that it's (I guess) inefficient to make a timer for each unit affected by spell and then run it than to cycle through one group using one timer. I thought of a way to work around this but it's somewhat complex than just saving so I would like to know if this functions can be get to work??
Q2 - I need the filtering thingie cleared up, and I cannot seem to find a proper tutorial/thread about that case, under the filtering I mean a functions that filters if a unit is enemy, if it's alive and organic.
The main problem I have here is the thing with Condition1 And Condition2 thing, can I make something with more than 2 "and"s in the same line but with using parenthesis to make it in for of Cond1 and Cond2 (Cond1 and (Cond2 and Cond3)) instead of Cond1 and Cond2 and Cond3?? Also do I write and with small or capital "A"?
Thanks in advance
Q1 - After trying various ways to save a unit group to a hashtable I found out eventualy that
JASS:
call SaveGroupHandle(Hashtable, Pkey, Ckey, ExampleGroup)
does not work under any circumstances. Or maybe the LoadGroupHashtable doesn't work but I cannot really know which one is if I cannot load the saved content. Problem is that it's (I guess) inefficient to make a timer for each unit affected by spell and then run it than to cycle through one group using one timer. I thought of a way to work around this but it's somewhat complex than just saving so I would like to know if this functions can be get to work??
Q2 - I need the filtering thingie cleared up, and I cannot seem to find a proper tutorial/thread about that case, under the filtering I mean a functions that filters if a unit is enemy, if it's alive and organic.
The main problem I have here is the thing with Condition1 And Condition2 thing, can I make something with more than 2 "and"s in the same line but with using parenthesis to make it in for of Cond1 and Cond2 (Cond1 and (Cond2 and Cond3)) instead of Cond1 and Cond2 and Cond3?? Also do I write and with small or capital "A"?
Thanks in advance