• 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.

[JASS] nvm

Status
Not open for further replies.
Level 5
Joined
May 22, 2006
Messages
150
There are some things you are doing wrong. ^^

1st - You do not use the "jass"-bracers to make your code easily readable for others.
<jass></jass>

2nd - Your code uses functions, which are not defined in "common.j" or "blizzard.j".
(GetHandleUnit(), GetHandleLocation(), etc.)
And that is the point, why your code does not work.

JASS:
local unit u = GetHandleUnit(t,"u")
The VM thinks, "GetHandleUnit(t,"u")" is the name of a variable but as there is no variable with this name...
You have to write these handle-functions into the head of your script.
They can be found somewhere in this forum but I am too busy (== lazy ^^) to seek them.

Seek them by yourself or ask UnMi.

3rd - You use a trigger condition. Replace it by writing your "Actions"-code into an additional if-structure with the return value of the "Conditions"-function.
 
Level 2
Joined
Jan 24, 2006
Messages
14
Dota's spell...

Your post have no info about map header or oher code.
 
Status
Not open for further replies.
Top