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

Buff problem

Status
Not open for further replies.
Level 5
Joined
Jan 13, 2008
Messages
96
i have this:

  • Unit - A unit starts an effect of an ability
  • Conditions - Ability being cast equal to Inner fire
  • Actions - hero - modify strength of (target unit being ability being cast: add 10
  • if - triggering unit has buff inner fire equal to true
  • Then - Hero modify strength of (taget unit of ability being cast):substract 10
I dont know how to do it when it finish to give back original strength. Like my hero get 10 strength, i add that buf which means my hero will have 20, and when inner fire is done that 10 strength to dissapear. Help please!
 

Rheiko

Spell Reviewer
Level 25
Joined
Aug 27, 2013
Messages
4,121
this is what does maker mean
  • Inner Fire Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Inner Fire
    • Actions
      • Set TempUnit = (Target unit of ability being cast)
      • Hero - Modify Strength of TempUnit: Add 10
      • Unit Group - Add TempUnit to TempGroup
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempGroup is empty) Equal to False
        • Then - Actions
          • Trigger - Turn on Inner Fire Check <gen>
        • Else - Actions
  • Inner Fire Check
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Set TempUnit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (TempUnit has buff Inner Fire) Equal to False
            • Then - Actions
              • Unit Group - Remove TempUnit from TempGroup
              • Hero - Modify Strength of TempUnit: Subtract 10
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TempGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • Set TempUnit = No Unit
 
Last edited:
Level 13
Joined
Mar 24, 2013
Messages
1,105
I think Wrathion is not refering to waits but to an indexed counter as a pseudo wait. I'm not sure if it's much better, it just avoids the use of a unit group which some might view as beneficial, and a better practice.

As to nulling globals I have heard mixed responses, I doubt it would hurt but seems unlikely to add or subtract much.
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
I think Wrathion is not refering to waits but to an indexed counter as a pseudo wait. I'm not sure if it's much better, it just avoids the use of a unit group which some might view as beneficial, and a better practice.

As to nulling globals I have heard mixed responses, I doubt it would hurt but seems unlikely to add or subtract much.

It is like Reading Index and Listener Index with wait Right??? It is from the tutorial of Mag.
 
Status
Not open for further replies.
Top