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

Mana Ability Triggering

Status
Not open for further replies.
Level 10
Joined
Jun 13, 2010
Messages
398
Hey! I wanna make casting hero gain 100 mana each second after casting this ability on an enemy unit.

  • Arcane Feast P1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Arcane Feast (Wrath of Destruction)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Casting unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set ArcaneFeast_1 = (Casting unit)
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Wait 1.00 seconds
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Wait 1.00 seconds
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Wait 1.00 seconds
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Wait 1.00 seconds
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Wait 1.00 seconds
          • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
          • Set ArcaneFeast_1 = No unit
        • Else - Actions
But it doesn't work for some reason. It gives like mana, but the other mana triggers won't follow. And if I choose to repeat casting, nothing happens at all. So it actually only works ones.
But, the mana the first cast gathers, is strange.
If I have got 80 mana, I suddenly gain 40 mana.
If I have got 10 mana, I suddenly gain 90 mana.

Also, I just found out that it actually repeats the trigger of Percentage of mana of ArcaneFeast_1. So it keeps repeating the percentage, but does not add the 100 mana.
I have a total of 500 mana. But whatever I set the triggers to, I keep ending at 135 mana. If I regenerate over 135, it will degenerate to 135 and keep it up until the trigger ends.

What should I do?

-Alex
 
Something like this, sorry if I get it wrong somehow 'cuz I am not really proficient with GUI :P

  • Untitled Trigger 002
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • Duration Less than or equal to 5.00
    • Actions
      • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
      • Set Duration = Duration + 1.00
 
Re

Something like this, sorry if I get it wrong somehow 'cuz I am not really proficient with GUI :P

  • Untitled Trigger 002
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • Duration Less than or equal to 5.00
    • Actions
      • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
      • Set Duration = Duration + 1.00

Well looks quite nice. But I would need a casting unit trigger to activate this then. It was ment to activate on cast.
 
Re

Something like this, sorry if I get it wrong somehow 'cuz I am not really proficient with GUI :P

  • Untitled Trigger 002
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • Duration Less than or equal to 5.00
    • Actions
      • Unit - Set mana of ArcaneFeast_1 to ((Percentage mana of ArcaneFeast_1) + 100.00)
      • Set Duration = Duration + 1.00

Cant get this to work at any point sorry.
 
Could you give me an example in trigger mode?
Cuz I have tried 100 of things... And it just keeps bugging up..
I even tried, doing this:
  • Unit - Set mana of Hero1 to ((Percentage life of (Casting unit)) + 0.00)
 
Status
Not open for further replies.
Back
Top