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

Add to mana trigger

Status
Not open for further replies.
Level 8
Joined
Jun 13, 2007
Messages
313
I am trying to do a very specific thing. I want to set up a trigger that, every 30 seconds, adds a certain amount of mana to to a building, and I want that ceratin amount to be determined by an integer variable. So, this would be a rough outline of what I want to avhieve:

EVENTS - Periodic event - Every 30 seconds

CONDITIONS - None

ACTIONS - Unit - Set mana of Research Center 0000 <gen> to ((Mana of Research Center 0000 <gen>) + Variable ManaPoints)

Ok, see that part that's bold? That's the part it won't let me do. The variable option is greyed out, and it says "no variables of this type available." Please help me, this is a very important bit for my map.
 
Level 3
Joined
Feb 7, 2007
Messages
30
If your useing a interger variable, For the bold, find Conversion- Convert Interger to Real in the fucntions drop down, ill come up REAL((value of footman)), clock the value of footman and set it to your interger variable
 
Level 4
Joined
Jun 1, 2007
Messages
92
Your variable would have to be a real, not an integer, which I assume you used. Reals are like numbers with decimal and that describes things like life, mana, and time. While integers are whole number which are used in hero level, stat attribute, ect.
 
Status
Not open for further replies.
Top