Custom Ability (Fortitude Aura)

Phantompoo

New Member
Reaction score
0
I've created an aura that provides a health buff to units similar to fortitude in WoW. Rank 1 works perfectly, but rank 2 and 3 are broken. I'm sure it's something in my trigger. Basically, the issue is that when a unit is in range, it receive the rank 1 health buff (100 hp) but when they leave range, they lose rank 2 or 3 health buff (200 and 300 hp respectively). It basically kills my team if they get the aura more than once.

Trigger:
  • Learn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Fortitude Aura
    • Actions
      • Set TriggerUnit = (Triggering unit)
      • Set TriggerUnitLoc = (Position of (Triggering unit))
      • Trigger - Turn off (This trigger)


Trigger:
  • Action
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of TriggerUnit)) and do (Actions)
        • Loop - Actions
          • Set PickedUnit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PickedUnit has buff Fortitude Aura ) Equal to True
            • Then - Actions
              • Unit - Add Fortitude to PickedUnit
              • Unit - Set level of Fortitude for PickedUnit to (Level of Fortitude Aura for TriggerUnit)
            • Else - Actions
          • Wait until ((PickedUnit has buff Fortitude Aura ) Equal to False), checking every 0.10 seconds
          • Unit - Remove Fortitude from PickedUnit


If anyone spots an issue that could be causing my problem, please let me know. Thanks.
 

Shura

New Member
Reaction score
45
Instead of using a wait, put the remove Fortitude action in the else actions of your If/Then/Else.
 

Phantompoo

New Member
Reaction score
0
That doesn't change the effect of the spell, but it reduced the length of the trigger. I still have the problem though.
 

Ayanami

칼리
Reaction score
288
The "Item - Life Bonus" itself is bugged. It will only ever add the level 1 value. However, when you set it to a different level and remove the skill, it will remove life equal to that level's value.
 

jig7c

Stop reading me...-statement
Reaction score
123
but there is a work around that... i read it somewhere.. i think actually glenphir has this work method..

where you set the HP - Bonus to a negative value (-100, -200, -300)
and then give it to the unit, and remove it, so then the unit have the correct hp...
i think.. not sure
 

Phantompoo

New Member
Reaction score
0
Fixed the problem. 3 seperate If/then/else actions, had to recreate each buff per rank.

Trigger:
  • Action
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of TriggerUnit)) and do (Actions)
        • Loop - Actions
          • Set PickedUnit = (Picked unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PickedUnit has buff Fortitude Aura ) Equal to True
            • Then - Actions
              • Unit - Add Fortitude to PickedUnit
            • Else - Actions
              • Unit - Remove Fortitude from PickedUnit
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PickedUnit has buff Fortitude Aura 2 ) Equal to True
            • Then - Actions
              • Unit - Add Fortitude 2 to PickedUnit
            • Else - Actions
              • Unit - Remove Fortitude 2 from PickedUnit
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (PickedUnit has buff Fortitude Aura 3 ) Equal to True
            • Then - Actions
              • Unit - Add Fortitude 3 to PickedUnit
            • Else - Actions
              • Unit - Remove Fortitude 3 from PickedUnit
 
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