Triggering help ( guess i have alot of leaks hehe )

shady

Member
Reaction score
7
I tryed to make a spell wich can steal souls from the other heroes ( adding Strength dealing damage and killing ) , but let the triggers speak for me.

In this trigger i have alot of mistakes i guess, i can't make when i attack the trigger to run, tryed some ways like: learns a skill / attacked ( wich bugs and when they attack me i die or creeps around me ) / starts effect of an ability - ABILITY IS BASED ON FEEDBACK ( spirit breaker ) SPELL IS USED TO BE PASSIVE, is that problem or no?
Trigger:
  • Soul Reaper L1
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Soul Reaper (Arthas)
      • (Level of Soul Reaper (Arthas) for (Triggering unit)) Equal to 1
    • Actions
      • Set RW_Target = (Attacked unit)
      • Set RW_caster = (Triggering unit)
      • Set ArthasChance1 = 15
      • Set ArthasChance2 = 2
      • Set ArthasChance3 = 1
      • Set STRBonus = 2.00
      • Animation - Play (Triggering unit)'s attack-1 animation
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to ArthasChance1
        • Then - Actions
          • Set Integer = (Strength of (Triggering unit) (Include bonuses))
          • Unit - Cause (Triggering unit) to damage RW_Target, dealing ((Real(Integer)) x STRBonus) damage of attack type Chaos and damage type Divine
          • Floating Text - Create floating text that reads ((String(((Real(Integer)) x STRBonus))) + !) above RW_Target with Z offset 0.00, using font size 14.50, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
        • Else - Actions
      • -------- HERO & CREEPS --------
      • -------- creep --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (RW_Target is A Hero) Equal to False
          • (RW_Target is A structure) Equal to False
          • (Random integer number between 1 and 100) Less than or equal to ArthasChance2
        • Then - Actions
          • Unit - Cause RW_caster to damage RW_Target, dealing 99999.00 damage of attack type Spells and damage type Normal
        • Else - Actions
          • -------- hero --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (RW_Target is A Hero) Equal to True
              • (Random integer number between 1 and 100) Less than or equal to ArthasChance2
            • Then - Actions
              • Unit - Cause RW_caster to damage RW_Target, dealing 400.00 damage of attack type Chaos and damage type Divine
              • Trigger - Add to Soul Reaper P2 <gen> the event (Unit - RW_Target Takes damage)
              • Trigger - Turn on Soul Reaper P2 <gen>
            • Else - Actions
      • -------- HERO & BUILDINGS --------
      • -------- buildings --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to ArthasChance3
          • (RW_Target is A Hero) Equal to False
          • (RW_Target is A structure) Equal to True
        • Then - Actions
          • Unit - Cause RW_caster to damage RW_Target, dealing 500.00 damage of attack type Hero and damage type Normal
          • Trigger - Add to Soul Reaper Buildings <gen> the event (Unit - RW_Target Takes damage)
          • Trigger - Turn on Soul Reaper Buildings <gen>
        • Else - Actions
          • -------- hero --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (RW_Target is A Hero) Equal to True
            • Then - Actions
              • Trigger - Add to Soul Reaper P3 <gen> the event (Unit - RW_Target Takes damage)
              • Trigger - Turn on Soul Reaper P3 <gen>
              • Hero - Modify Strength of RW_caster: Add 1
              • Floating Text - Create floating text that reads Soul is stored! +1 ... above RW_caster with Z offset 0.00, using font size 14.50, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
              • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
              • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
            • Else - Actions

This trigger is needed when hero attacks buildings
Trigger:
  • Soul Reaper Buildings
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 1
          • (RW_Target is A structure) Equal to True
        • Then - Actions
          • Floating Text - Create floating text that reads 500!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 2
              • (RW_Target is A structure) Equal to True
            • Then - Actions
              • Floating Text - Create floating text that reads 750!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
              • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
              • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 3
                  • (RW_Target is A structure) Equal to True
                • Then - Actions
                  • Floating Text - Create floating text that reads 1000!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
                  • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
                  • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions

This trigger is used when hero is attacked:
Trigger:
  • Soul Reaper Buildings
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 1
          • (RW_Target is A structure) Equal to True
        • Then - Actions
          • Floating Text - Create floating text that reads 500!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 2
              • (RW_Target is A structure) Equal to True
            • Then - Actions
              • Floating Text - Create floating text that reads 750!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
              • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
              • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 3
                  • (RW_Target is A structure) Equal to True
                • Then - Actions
                  • Floating Text - Create floating text that reads 1000!! above RW_caster with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
                  • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
                  • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
                  • Trigger - Turn off (This trigger)
                • Else - Actions

This trigger is used when hero is attacked ( again ), but this time a chance to kill the hero:
Trigger:
  • Soul Reaper P3
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 1
        • Then - Actions
          • Unit - Kill RW_Target
          • Floating Text - Create floating text that reads Your soul is mine!!... above RW_Target with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
          • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_caster
          • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_Target
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 2
            • Then - Actions
              • Unit - Kill RW_Target
              • Floating Text - Create floating text that reads Your soul is mine!!... above RW_Target with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
              • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
              • Floating Text - Change (Last created floating text): Disable permanence
              • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
              • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
              • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_caster
              • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_Target
              • Trigger - Turn off (This trigger)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Soul Reaper (Arthas) for RW_caster) Equal to 3
                • Then - Actions
                  • Unit - Kill RW_Target
                  • Floating Text - Create floating text that reads Your soul is mine!!... above RW_Target with Z offset 0.00, using font size 14.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
                  • Floating Text - Set the velocity of (Last created floating text) to 18.00 towards 90.00 degrees
                  • Floating Text - Change (Last created floating text): Disable permanence
                  • Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
                  • Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
                  • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_caster
                  • Sound - Play HeroDreadlordWarcry1 <gen> at 100.00% volume, attached to RW_Target
                  • Trigger - Turn off (This trigger)
                • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top