Trigger Problem

Spray-

Member
Reaction score
1
Hiya! I've made a Hero that uses Combo Points to boost his spells (basically like a Rogue from WoW), everything works fine except when he uses the Ability that "releases" the Combo Points (Eviscerate in this case), the Combo Points arent reset' and stays at the "max". Trigger:

Trigger:
  • Eviscerate
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eviscerate (Rogue)
    • Actions
      • Unit - Order (Casting unit) to Attack-Move To (Position of (Casting unit))
      • Unit Group - Pick every unit in (Units within 200.00 of (Position of (Casting unit)) matching ((Owner of (Matching unit)) Equal to Player 12 (Brown))) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is alive) Equal to True
            • Then - Actions
              • Special Effect - Create a special effect attached to the origin of (Picked unit) using Objects\Spawnmodels\Orc\OrcLargeDeathExplode\OrcLargeDeathExplode.mdl
              • Unit - Cause (Casting unit) to damage (Picked unit), dealing (25.00 x ((Real((Level of Eviscerate (Rogue) for (Casting unit)))) x (Real(Combo)))) damage of attack type Normal and damage type Normal
              • Wait 0.50 seconds
              • Set Combo = 0
            • Else - Actions
              • Do nothing


Why does this happen? :p
 

SwedishChef

New Member
Reaction score
32
do you have many casting at the same time?? because then you need arrays, one for each player on the variable. Else they overwrite eachother
 

Spray-

Member
Reaction score
1
Only one Hero is able to use this spell. I'll try removing the wait and come back with what happend, thanks.
 

Spray-

Member
Reaction score
1
Added an extra trigger and it works fine now :)

Trigger:
  • Eviscerate 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Eviscerate (Rogue)
    • Actions
      • Wait 0.50 seconds
      • Set Combo = 0
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top