• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger Canceling

Status
Not open for further replies.
Level 4
Joined
Jun 12, 2009
Messages
57
I have a problem with these two triggers when they are applied together, but alone they do what they are supposed to do. Whenever they both are applied for some reason at the very end where I want the multiboard to display the values of the ribosome integer, it won't change in game, but if i disable the other trigger then it will work. What is wrong here?



  • Cell Survival Level Two Vacoules
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to |c0001FF26Cell Survival|r
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of |c0001FF26Cell Survival|r for (Casting unit)) Equal to 2
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Vacuoleinterger[(Player number of (Owner of (Casting unit)))] Less than or equal to 5
            • Then - Actions
              • Set CancelSpellinterger = (Player number of (Owner of (Casting unit)))
              • Unit - Change ownership of (Casting unit) to Neutral Passive and Retain color
              • Unit - Change ownership of (Casting unit) to (Player(CancelSpellinterger)) and Retain color
              • Selection - Add (Triggering unit) to selection for (Player(CancelSpellinterger))
              • Game - Display to (Player group((Owner of (Casting unit)))) the text: You do not have eno...
            • Else - Actions
              • Unit - Set level of |c0001FF26Cell Survival|r for (Casting unit) to 3
              • Set Vacuoleinterger[(Player number of (Owner of (Casting unit)))] = (Vacuoleinterger[(Player number of (Owner of (Casting unit)))] - 6)
              • Player - Set the current research level of |c0001FF26Cell Survival|r to ((Current research level of |c0001FF26Cell Survival|r for (Owner of (Casting unit))) + 1) for (Owner of (Casting unit))
              • For each (Integer A) from 0 to Vacuoleinterger[(Player number of (Owner of (Casting unit)))], do (Actions)
                • Loop - Actions
                  • Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Casting unit))) + 1) to (String((Integer A)))
        • Else - Actions
          • Game - Force (Owner of (Casting unit)) to press Escape/Cancel



  • Cell Survival Level Two Ribosomes
    • Events
      • Unit - A unit Finishes casting an ability
    • Conditions
      • (Ability being cast) Equal to |c0001FF26Cell Survival|r
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of |c0001FF26Cell Survival|r for (Casting unit)) Equal to 2
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Ribosomeinterger[(Player number of (Owner of (Casting unit)))] Less than or equal to 1
            • Then - Actions
              • Set CancelSpellinterger = (Player number of (Owner of (Casting unit)))
              • Unit - Change ownership of (Casting unit) to Neutral Passive and Retain color
              • Unit - Change ownership of (Casting unit) to (Player(CancelSpellinterger)) and Retain color
              • Selection - Add (Triggering unit) to selection for (Player(CancelSpellinterger))
              • Game - Display to (Player group((Owner of (Casting unit)))) the text: You do not have eno...
            • Else - Actions
              • Set Ribosomeinterger[(Player number of (Owner of (Casting unit)))] = (Ribosomeinterger[(Player number of (Owner of (Casting unit)))] - 2)
              • For each (Integer A) from 0 to Ribosomeinterger[(Player number of (Owner of (Casting unit)))], do (Actions)
                • Loop - Actions
                  • Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Player number of (Owner of (Casting unit))) + 1) to (String((Integer A)))
        • Else - Actions
          • Game - Force (Owner of (Casting unit)) to press Escape/Cancel
 
Level 6
Joined
Jul 22, 2008
Messages
243
Change the "For each (Integer A)" to For each (Integer B) in one of them... Try, see if it helps
 
Level 4
Joined
Jun 12, 2009
Messages
57
nope that doesn't work it just lowers the vacuole integer and not the ribosome, or at least it won't show on the multiboard.
 
Level 4
Joined
Jun 12, 2009
Messages
57
I fixed this it just made it so that the second trigger isn't initially on and when the first one finishes it fires off the second one. If anyone wants to see the final fixed trigger I can post it.
 
Status
Not open for further replies.
Top