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

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.
 
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.
Back
Top