• 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 O.o!

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hi! I want to ask why my trigger doesn't work - the first trigg (the 'Instincts' trigg) is just perfect, but the second trigger isn't working... triggs below:
  • Instincts
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Instincts [Bear]
    • Actions
      • Set DaBearInstincts = (Triggering unit)
      • Unit - Create 1 Dm b l1 for (Owner of DaBearInstincts) at (Position of DaBearInstincts) facing Default building facing degrees
      • Set DaDummyInstincts = (Last created unit)
      • Set LevOfInstincts = (Level of Instincts [Bear] for DaBearInstincts)
      • Unit - Add a 1.00 second Generic expiration timer to DaDummyInstincts
      • Unit - Add Inner Fire lvl1 to DaDummyInstincts
      • Unit - Set level of Inner Fire lvl1 for DaDummyInstincts to (Level of Instincts [Bear] for DaBearInstincts)
      • Unit - Order DaDummyInstincts to Human Priest - Inner Fire DaBearInstincts
      • Unit - Set DaBearInstincts movement speed to ((Current movement speed of DaBearInstincts) + (14.58 x (Real(LevOfInstincts))))
      • Trigger - Turn on Instincts loop <gen>
  • Instincts loop
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (DaBearInstincts has buff Instincts ) Equal to True
        • Then - Actions
        • Else - Actions
          • Unit - Set DaBearInstincts movement speed to ((Current movement speed of DaBearInstincts) - (14.58 x (Real(LevOfInstincts))))
          • Trigger - Turn off (This trigger)
the problem is with the movement speed - it lasts only for a second and then it turns to normal... i make sure that my unit haves the Instinct buff... i will post my map below so you can see!
 
Last edited:
Ye 1st trigger is perfect.. And I'm Obama :D
Get rid of the leaks, useless variable:
  • Instincts
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Instincts [Bear]
    • Actions
      • Set tempp = (Position of (Triggering unit))
      • Set DaBearInstincts = (Triggering unit)
      • Unit - Create 1 Dm b l1 for (Owner of DaBearInstincts) at tempp facing Default building facing degrees
      • Custom script: call RemoveLocation (udg_tempp)
      • Set LevOfInstincts = (Level of Instincts [Bear] for DaBearInstincts)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Add Inner Fire lvl1 to (Last created unit)
      • Unit - Set level of Inner Fire lvl1 for (Last created unit) to (Level of Instincts [Bear] for DaBearInstincts)
      • Unit - Order (Last created unit) to Human Priest - Inner Fire DaBearInstincts
      • Unit - Set DaBearInstincts movement speed to ((Current movement speed of DaBearInstincts) + (14.58 x (Real(LevOfInstincts))))
      • Trigger - Turn on Instincts loop <gen>
Your spell isnt MUI. Make sure the correct buff is applied.
I recommend adding just ability that changes ms by %, its easier. Use my system for timing it (see signature).
 
3 seconds? What are you talking about. Buffs are not fully instant, but nearly. Auras are "slow", not normal buffs. These commands just dont work properly. Many people have tried it so many times.

read it carefully dude, I did not say buff is fully instant but the loop, I also said "gives buff is slow" meaning they are not instant, I recommend a 3 second wait before the "on trigger" coz most of non-MUI spells are made with waits...

anyway the triggering is really bad, 14.58 x ??? is too low, try to put something like 50 x ???...

movement speed adjustments using triggers is not so bad when triggered real good, deductions are really bad but using hashtables and structs is poerfect...
 
Status
Not open for further replies.
Top