• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Missing variable

Status
Not open for further replies.

scythex7

S

scythex7

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 by a moderator:
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?
 
If it's in jass, I'm screwing something up. I just copy/pasted the error.
 
Last edited by a moderator:
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

Dang, how did I miss that? Thanks! I knew it was something that would make me feel stupid. :cconf:
 
Status
Not open for further replies.
Back
Top