Jass spell - Blizzard

Status
Not open for further replies.
Level 3
Joined
Oct 21, 2008
Messages
18
Hi

I am beginner in Jass. Local variables are something new for me and i would like to know how to used them in proper way.

My question is how does the order "wait" (time space) works with locals. May i run actions with locals and with order "wait" 2-times at the same time for different units?
In another words, is action with locals and order "wait" MUI?
 
UAU...ok, thats great, but then it is impossible to refer to local, am i right?

and just a little question at the end, how to make auras by Jass, like picking all units around unit with aura and just does the effect(heal or whatever the aura does)?

or is there any other trick how to do it more "easier" for PC

In case i would have 10 units and each one has 5 auras, it is 50 actions * number of units influenced by aura per second (isnt it tooooo much?)
I want to be sure making such spells like aura isnt suicide for PC.
 
If you need to refer to a local you have two possibilitys:
a) Parameter like
JASS:
function KillUnitWrapper takes unit u returns nothing
    call KillUnit(u)
endfunction

function MyFunction takes nothing returns nothing
    local unit myunit = GetTriggerUnit()
    call KillUnitWrapper(myunit)
    set myunit = null
endfunction

b) Setting a global to the value of the local

Then, try to make all auras without using triggers. There are maaaany possibilitys, since you can negate all values. If you make it with triggers, there is no other possibility then many pickloops :/

PS: is many or much countable? xD I always forget it^^
 
thanks very much for help

- PS
1) i want to create spells depending on the hero lvls, attributes,... and i would like to remake the most common, like auras and few well known hero skills

2) much = uncountable
many = countable

... ;D
 
Status
Not open for further replies.
Back
Top