Detect Toggle on/off

Raizn

New Member
Reaction score
2
Hi Helpers.

i got an issue with a spell im creating based on the immolation spell. i tried to give the hero xyz stats when activating immo based spell and removes it when toggle it off. but for some reason it cannot detect if immo is on or off. I even tried to set integer vars and set some conditions to check them. it failed.

my trigger:

Trigger:
  • Battle Form ON
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Battle Form
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Battle Form for (Triggering unit)) Equal to 1
        • Then - Actions
          • Animation - Change (Triggering unit)'s vertex coloring to (32.00%, 25.00%, 95.00%) with 50.00% transparency
          • Unit - Add Item Damage Bonus (+5) to (Triggering unit)
          • Unit - Add Item Armor Bonus (+5) to (Triggering unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Battle Form for (Triggering unit)) Equal to 2
            • Then - Actions
              • Animation - Change (Triggering unit)'s vertex coloring to (32.00%, 25.00%, 95.00%) with 50.00% transparency
              • Unit - Add Item Damage Bonus (+10) to (Triggering unit)
              • Unit - Add Item Armor Bonus (+10) to (Triggering unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Battle Form for (Triggering unit)) Equal to 3
                • Then - Actions
                  • Animation - Change (Triggering unit)'s vertex coloring to (32.00%, 25.00%, 95.00%) with 50.00% transparency
                  • Unit - Add Item Damage Bonus (+15) to (Triggering unit)
                  • Unit - Add Item Armor Bonus (+15) to (Triggering unit)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Battle Form for (Triggering unit)) Equal to 4
                    • Then - Actions
                      • Animation - Change (Triggering unit)'s vertex coloring to (32.00%, 25.00%, 95.00%) with 50.00% transparency
                      • Unit - Add Item Damage Bonus (+20) to (Triggering unit)
                      • Unit - Add Item Armor Bonus (+20) to (Triggering unit)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Battle Form for (Triggering unit)) Equal to 5
                        • Then - Actions
                          • Animation - Change (Triggering unit)'s vertex coloring to (32.00%, 25.00%, 95.00%) with 50.00% transparency
                          • Unit - Add Item Damage Bonus (+25) to (Triggering unit)
                          • Unit - Add Item Armor Bonus (+25) to (Triggering unit)
                        • Else - Actions


the toggle off trigger is nearly the same but with stop casting/channeling ability and so on. does someone know how to fix this ?

bye raizn
 

BlueMirage

Trust, but doubt.
Reaction score
39
Check for order strings instead of what ability is being cast.

For example, let's use immolation.
The order string to activate immolation is (I think) ''immolation''.
The order string to deactivate immolation is ''unimmolation''.

Create one trigger which checks if the order is immolation. This is your activation trigger.
Create one trigger which checks if the order is unimmolation. This is your deactivation trigger.
 
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