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

[Trigger] Spellbook Integers

Status
Not open for further replies.
Level 9
Joined
Jun 7, 2008
Messages
440
I got a unit that has 4 spellbooks. Each spellbook has upgradeable spells. I have created an integer variable for each spell to check. The problem is, i dont know how to increase the integer based on the number of times that particular spell is cast. I tried with starts the effect of an ability, as well as starts casting an ability. They both did not work. Help me please. :sad:
 
Ya it works. I had my integer messed up is all. :P
Ive run into another problem though:
  • Events
    • Unit - a unit begins the effect of an ability
  • Conditions
    • ((Ability being cast) Equal to Warstomp)
  • Actions
    • Set Spellbook_WarStomp = (Spellbook_WarStomp + 1)
    • Game - Display to (Player group((Triggering player))) the message: (String(Spellbook_WarStomp))
This all works fine and dandy. I run into a problem when i cast the ability. It gives a "+3" to the integer, instead of "+1". Any suggestions?
 
Status
Not open for further replies.
Back
Top