• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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?
 
Level 3
Joined
Oct 21, 2008
Messages
18
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^^
 
Level 3
Joined
Oct 21, 2008
Messages
18
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.
Top