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

Expected a variable name problem

Status
Not open for further replies.
Level 2
Joined
Jul 30, 2015
Messages
9
Hello guys, I have a problem with triggers when I use some spells downloaded from here. For example I tried with Chaos Singularity trigger and I can't enable the trigger, this is the message error:

error.png


The spell works fine in the spell original map, but this happens when I copy the trigger and paste it in my own map.
 
Level 2
Joined
Jul 30, 2015
Messages
9
Are you sure that you copied the global variables?

I don't think so, I tried to understand how to copy a downloaded spell but it seems I'm doing it all wrong. I just copy the triggers and the custom units/abilities and correct the trigger so it uses the correct custom unit/ability as in the original downloaded map. But I don't do anything else, in some spells it works and in some others don't :/
 
Level 2
Joined
Jul 30, 2015
Messages
9
You need to endure "automatically generate unknown variables" is checked in the world editor preferences. Right now, it is not checked, hence a world of syntax errors when you copy in new triggers.

It's checked and I checked it before. Almost every spell uploaded in this page says in description that you have to check it before copying the triggers, so I did it :p
 
Level 2
Joined
Jul 30, 2015
Messages
9
It now works!! You are a genius :p thank you very much!
Is there an easy way for me to learn how to solve this kind of problems with every spell I download?
 
Status
Not open for further replies.
Top