Trigger bug?

war444

New Member
Reaction score
2
Hey i was making this map and i tested this trigger And for some reason it didnt work. I changed some things and when i was certain it was suppose to work it didnt. Is somthing wrong?
Here are the triggers
Trigger:
  • Lol
    • Events
      • Player - Player 1 (Red) types a chat message containing -Gandalf as An exact match
    • Conditions
    • Actions
      • Game - Set the time of day to 24.00
      • Game - Turn the day/night cycle Off
      • Cinematic - Fade out over 0.50 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Wait 1.00 seconds
      • Cinematic - Fade in over 0.40 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
      • Unit - Create 1 Soldier for Player 1 (Red) at (Center of Region 012 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 2 (Blue) at (Center of Region 013 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 3 (Teal) at (Center of Region 014 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 4 (Purple) at (Center of Region 015 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 5 (Yellow) at (Center of Region 016 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 6 (Orange) at (Center of Region 017 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 7 (Green) at (Center of Region 018 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 8 (Pink) at (Center of Region 019 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 9 (Gray) at (Center of Region 020 <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 10 (Light Blue) at (Center of Region 021 <gen>) facing Default building facing degrees
      • Special Effect - Create a special effect at (Center of Region 012 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 015 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 013 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 014 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 016 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 017 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 018 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 019 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 020 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Special Effect - Create a special effect at (Center of Region 021 <gen>) using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
      • Camera - Set the camera bounds for Player 1 (Red) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 2 (Blue) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 3 (Teal) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 4 (Purple) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 5 (Yellow) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 6 (Orange) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 7 (Green) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 8 (Pink) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 9 (Gray) to Region 045 <gen>
      • Camera - Set the camera bounds for Player 10 (Light Blue) to Region 045 <gen>
      • Set Gandalf[1] = Gandalf the Grey 0053 <gen>
      • Game - Display to (All players) the text: |cff8B1414WarMaker|...

Trigger:
  • Lolx2
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
    • Actions
      • Set Visibilitymuch[1] = (Last created visibility modifier)
      • Set Visibilitymuch[2] = (Last created visibility modifier)
      • Set Visibilitymuch[3] = (Last created visibility modifier)
      • Set Visibilitymuch[4] = (Last created visibility modifier)
      • Set Visibilitymuch[5] = (Last created visibility modifier)
      • Set Visibilitymuch[6] = (Last created visibility modifier)
      • Set Visibilitymuch[7] = (Last created visibility modifier)
      • Set Visibilitymuch[8] = (Last created visibility modifier)
      • Set Visibilitymuch[9] = (Last created visibility modifier)
      • Set Visibilitymuch[10] = (Last created visibility modifier)
      • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 3 (Teal) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 4 (Purple) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 5 (Yellow) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 6 (Orange) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 7 (Green) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 8 (Pink) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 9 (Gray) emitting Visibility across Region 045 <gen>
      • Visibility - Create an initially Enabled visibility modifier for Player 10 (Light Blue) emitting Visibility across Region 045 <gen>

Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region 022 <gen>
    • Conditions
      • Gandalf the Grey 0053 <gen> Equal to Gandalf[1]
    • Actions
      • Trigger - Turn on Lolx3 <gen>
      • Trigger - Turn on Lolx4 <gen>

Trigger:
  • Lolx3
    • Events
      • Unit - A unit enters Region 022 <gen>
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads You shall not pass! at (Center of Region 050 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Wait 3.00 seconds
      • Floating Text - Destroy (Last created floating text)
      • Trigger - Turn off (This trigger)

Trigger:
  • Lolx4
    • Events
      • Unit - A unit enters Region 022 <gen>
    • Conditions
      • Gandalf the Grey 0053 <gen> Equal to Gandalf[1]
    • Actions
      • Animation - Play Gandalf the Grey 0053 <gen>'s Spell slam animation
      • Unit - Kill (Entering unit)
      • Trigger - Turn off (This trigger)

Trigger:
  • Lolx5
    • Events
      • Unit - Gandalf the Grey 0053 <gen> Dies
    • Conditions
    • Actions
      • Trigger - Turn on Lolx8 <gen>
      • Trigger - Turn on Lolx6 <gen>

Trigger:
  • Lolx6
    • Events
      • Unit - A unit enters Region 047 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Soldier
    • Actions
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[1] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[2] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[3] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[4] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[5] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[6] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[7] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[8] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[9] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Special Effect - Create a special effect attached to the overhead of UnitsGalore[10] using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
      • Wait 0.50 seconds
      • Unit - Remove UnitsGalore[1] from the game
      • Unit - Remove UnitsGalore[2] from the game
      • Unit - Remove UnitsGalore[3] from the game
      • Unit - Remove UnitsGalore[4] from the game
      • Unit - Remove UnitsGalore[5] from the game
      • Unit - Remove UnitsGalore[6] from the game
      • Unit - Remove UnitsGalore[7] from the game
      • Unit - Remove UnitsGalore[8] from the game
      • Unit - Remove UnitsGalore[9] from the game
      • Unit - Remove UnitsGalore[10] from the game

Trigger:
  • Lolx7
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
    • Actions
      • Set TriggeringUnit[1] = (Entering unit)

Trigger:
  • Lolx8
    • Events
      • Unit - A unit enters Region 047 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Soldier
    • Actions
      • Unit - Create 1 Soldier for Player 1 (Red) at (Center of Red <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 2 (Blue) at (Center of Blue <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 3 (Teal) at (Center of Teal <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 4 (Purple) at (Center of Purple <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 5 (Yellow) at (Center of Yellow <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 6 (Orange) at (Center of Orange <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 7 (Green) at (Center of Green <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 8 (Pink) at (Center of Pink <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 9 (Gray) at (Center of Gray <gen>) facing Default building facing degrees
      • Unit - Create 1 Soldier for Player 10 (Light Blue) at (Center of Lightblue <gen>) facing Default building facing degrees
      • Game - Display to (All players) the text: |cff8B1414Warmaker|...
      • Trigger - Turn off (This trigger)

Trigger:
  • Lolx9
    • Events
      • Unit - A unit enters Region 045 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Red Dragon
    • Actions
      • Unit - Change ownership of (Entering unit) to Neutral Passive and Change color
      • Unit - Order (Entering unit) to Attack Gandalf the Grey 0053 <gen>

Trigger:
  • Lolx10
    • Events
      • Unit - Gandalf the Grey 0053 <gen> Is attacked
    • Conditions
    • Actions
      • Wait 1.50 seconds
      • Unit - Kill (Attacking unit)
      • Unit - Kill Gandalf the Grey 0053 <gen>

Trigger:
  • Lolx11
    • Events
      • Unit - Gandalf the Grey 0053 <gen> Dies
    • Conditions
    • Actions
      • Set Gandalf[1] = (Last created unit)
 

war444

New Member
Reaction score
2
Well the Set Gandalf[1] Is to get Gandalf[1] Off of gandalf. If you look at Lolx4, it says gandalf has to be Gandalf[1] for that part of the trigger to work.

P.S. My problem is gandalf not doing animation, region isnt killing, the text isnt showing up
 

LordXavier

TH.net Regular
Reaction score
16
about you P.S. there, try removing that condition, it could possibly be screwing your trigger up
 

LordXavier

TH.net Regular
Reaction score
16
why not give him a custom War Stomp (all values removed) make him cast it, then remove it.
EDIT: what unit model is gandalf?
 

war444

New Member
Reaction score
2
His unit model is Blood mage
What would casting the spell war stomp help anything?
 

LordXavier

TH.net Regular
Reaction score
16
nvm on the War Stomp. As you should notice, the Blood Mage model doesn't have a Spell Slam animation. You need to change the trigger to either Spell or Spell Channel animation (Spell Channel looks cooler in my opinion)
 

war444

New Member
Reaction score
2
I changed it to spell channel and still nothing, did i mention that region 22 is on a bridge?
 

LordXavier

TH.net Regular
Reaction score
16
Rather than turning on Lolx3 and Lolx4 in Untitled Trigger 001, run them and remove the events in them, if you turn them on then the unit would have to walk out of them, then go back into them. OR just make them all into Untitled Trigger 001
 

war444

New Member
Reaction score
2
Turns out it was that. But how do i make it so when he dies, those triggers are cancled?
 

LordXavier

TH.net Regular
Reaction score
16
add this condition
Trigger:
  • (Gandalf the Grey 0053 is dead) Equal to False

or
Trigger:
  • (Gandalf the Grey 0053 is alive) Equal to True

also,
Trigger:
  • Events
    • Gandalf the Grey 0053 <gen> dies
    • Conditions
      • Gandalf[1] equal to Gandalf the Grey 0053 <gen>
    • Actions
      • Trigger - Turn off All Gandalf Triggers
 
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