• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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
 
Change the "For each (Integer A)" to For each (Integer B) in one of them... Try, see if it helps
 
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.
 
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.
Back
Top