Trigger Help Please!!

MicroSheep

New Member
Reaction score
3
Okay so basically, im making a pokemon map and its going swell.

I thought i had everything down, then i remember releasing pokemon. Im currently doing the trigger now, but i have literally no idea how to. This is my catching pokemon trigger:

Trigger:
  • CATCHING
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Catch
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) belongs to an ally of Player 11 (Dark Green)) Equal to True
          • (Life of (Target unit of ability being cast)) Less than or equal to 100.00
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 0
              • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
            • Then - Actions
              • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
              • Set Pokemon1Point = (Center of Pokemon 1 <gen>)
              • Set Pokemon1[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
              • Special Effect - Destroy (Last created special effect)
              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
              • Special Effect - Destroy (Last created special effect)
              • Unit - Add 1 Pokemon to Trainers[(Player number of (Owner of (Triggering unit)))]
              • Unit - Move (Target unit of ability being cast) instantly to Pokemon1Point
              • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
              • Hero - Create Summon Pokemon and give it to (Triggering unit)
              • Unit - Set life of (Target unit of ability being cast) to 100.00%
              • Set Pokemon1Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
              • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 1
              • Custom script: call RemoveLocation (udg_Pokemon1Point)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 1
                  • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
                • Then - Actions
                  • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
                  • Set Pokemon2Point = (Center of Pokemon 2 <gen>)
                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Unit - Move (Target unit of ability being cast) instantly to Pokemon2Point
                  • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
                  • Unit - Remove 1 Pokemon from (Triggering unit)
                  • Unit - Add 2 Pokemon to (Triggering unit)
                  • Unit - Set life of (Target unit of ability being cast) to 100.00%
                  • Set Pokemon2[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
                  • Hero - Create Summon Pokemon and give it to (Triggering unit)
                  • Set Pokemon2Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
                  • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 2
                  • Custom script: call RemoveLocation (udg_Pokemon2Point)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 2
                      • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
                    • Then - Actions
                      • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
                      • Set Pokemon3Point = (Center of Pokemon 3 <gen>)
                      • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                      • Special Effect - Destroy (Last created special effect)
                      • Unit - Move (Target unit of ability being cast) instantly to Pokemon3Point
                      • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
                      • Unit - Remove 2 Pokemon from (Triggering unit)
                      • Unit - Add 3 Pokemon to (Triggering unit)
                      • Unit - Set life of (Target unit of ability being cast) to 100.00%
                      • Set Pokemon3[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
                      • Hero - Create Summon Pokemon and give it to (Triggering unit)
                      • Set Pokemon3Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
                      • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 3
                      • Custom script: call RemoveLocation (udg_Pokemon3Point)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 3
                          • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
                        • Then - Actions
                          • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
                          • Set Pokemon4Point = (Center of Pokemon 4 <gen>)
                          • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
                          • Special Effect - Destroy (Last created special effect)
                          • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
                          • Special Effect - Destroy (Last created special effect)
                          • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                          • Special Effect - Destroy (Last created special effect)
                          • Unit - Move (Target unit of ability being cast) instantly to Pokemon4Point
                          • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
                          • Unit - Remove 3 Pokemon from (Triggering unit)
                          • Unit - Add 4 Pokemon to (Triggering unit)
                          • Unit - Set life of (Target unit of ability being cast) to 100.00%
                          • Set Pokemon4[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
                          • Hero - Create Summon Pokemon and give it to (Triggering unit)
                          • Set Pokemon4Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
                          • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 4
                          • Custom script: call RemoveLocation (udg_Pokemon4Point)
                        • Else - Actions
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 4
                              • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
                            • Then - Actions
                              • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
                              • Set Pokemon5Point = (Center of Pokemon 5 <gen>)
                              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
                              • Special Effect - Destroy (Last created special effect)
                              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
                              • Special Effect - Destroy (Last created special effect)
                              • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                              • Special Effect - Destroy (Last created special effect)
                              • Unit - Move (Target unit of ability being cast) instantly to Pokemon5Point
                              • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
                              • Unit - Remove 4 Pokemon from (Triggering unit)
                              • Unit - Add 5 Pokemon to (Triggering unit)
                              • Unit - Set life of (Target unit of ability being cast) to 100.00%
                              • Set Pokemon5[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
                              • Hero - Create Summon Pokemon and give it to (Triggering unit)
                              • Set Pokemon5Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
                              • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 5
                              • Custom script: call RemoveLocation (udg_Pokemon5Point)
                            • Else - Actions
                              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                • If - Conditions
                                  • PokemonCount[(Player number of (Owner of (Triggering unit)))] Equal to 5
                                  • PokemonCount[(Player number of (Owner of (Triggering unit)))] Less than PokemonLimit
                                • Then - Actions
                                  • Set TargetUnitPoint = (Position of (Target unit of ability being cast))
                                  • Set Pokemon6Point = (Center of Pokemon 6 <gen>)
                                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
                                  • Special Effect - Destroy (Last created special effect)
                                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
                                  • Special Effect - Destroy (Last created special effect)
                                  • Special Effect - Create a special effect at TargetUnitPoint using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                                  • Special Effect - Destroy (Last created special effect)
                                  • Unit - Move (Target unit of ability being cast) instantly to Pokemon6Point
                                  • Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
                                  • Unit - Remove 5 Pokemon from (Triggering unit)
                                  • Unit - Add 6 Pokemon to (Triggering unit)
                                  • Unit - Set life of (Target unit of ability being cast) to 100.00%
                                  • Set Pokemon6[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
                                  • Hero - Create Summon Pokemon and give it to (Triggering unit)
                                  • Set Pokemon6Item[(Player number of (Owner of (Triggering unit)))] = (Last created item)
                                  • Set PokemonCount[(Player number of (Owner of (Triggering unit)))] = 6
                                  • Custom script: call RemoveLocation (udg_Pokemon6Point)
                                • Else - Actions
        • Else - Actions


if the person was to release pokemon 2, then it would have to set Pokemon Count to 1, but then somehow put it back to its original number, and im confused on how to do that.

Help?
 

canons200

New Member
Reaction score
50
well suggestion, just use an ability catch and an ability release?
so when you use release, use boolean, if player1PokemonOnField = false, then set player1PokemonOnField = true. then create a catched pokemon.

you can use unit variable to store the catched pokemon
 
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