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

[Solved] Missing variable

Status
Not open for further replies.
Level 1
Joined
Jul 30, 2011
Messages
5
I feel like an idiot having to ask this, but I'm new to WEing and I can't figure out why I can't properly import spells.

Whenever I try to import any spells, I get a "Expected a name/variable name" error, specifically about this:

  • set udg_x = GetUnitX(udg_u)
  • set udg_y = GetUnitY(udg_u)
  • call MoveLocation(udg_zLoc, udg_x, udg_y)
  • // Check if the unit is alive, not on ground or removed
  • if ( Trig_LightningLevitationLoop_Copy_2_Func004Func008C() ) then
    • // Save radius in a non-array variable
    • set udg_r = udg_LL_Target_Data[( ( udg_i * 10 ) + 9 )]
    • // Get terrain height at the position of the unit
    • set udg_r2 = GetLocationZ(udg_zLoc)
    • // Check if unit has to fly up or fall down
Now, I know that this trigger works, because it works in the original map, and I read somewhere that I should use JassNewGen, but I can't get that to work.

How do I get the trigger to work? I copied everything down to the individual variables.
 
Last edited:
Level 1
Joined
Jul 30, 2011
Messages
5
Sorry.

I already had that checked when I pasted, and I repasted it again just to make sure, and it still doesn't work.

Do you have any other ideas as to what might be preventing it from working?
 
Level 1
Joined
Jul 30, 2011
Messages
5
Sorry! New to this. :(

I attached a map with the error in it, and this is a link to the source of the spell. I followed the instructions to the letter. After the error popped up, I went back and copy/pasted the custom text into my map, and I also created the variables individually. The error hasn't gone away. I feel like I'm doing something wrong, but I'm not sure what.
 

Attachments

  • test.w3x
    25.9 KB · Views: 27
Status
Not open for further replies.
Top