• 🏆 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!

Why Won't This Trigger Work?

Status
Not open for further replies.
Level 5
Joined
May 20, 2013
Messages
162
If i remove the conditions, & make the event elapsed time, it works! What on earth is wrong with my event/condition setup? I swear it is the same setup i have used for many other upgrade triggers in the past. Why doesn't it work on this one? ;(

And, TY in advance for taking the time to look at this... wherever you are! ;)


  • Creep Upgrades GUI 1
    • Events
      • Unit - A unit Finishes construction
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Constructed structure)) Equal to Keep
          • (Unit-type of (Constructed structure)) Equal to Stronghold
          • (Unit-type of (Constructed structure)) Equal to Halls of the Dead
          • (Unit-type of (Constructed structure)) Equal to Tree of Ages
    • Actions
      • Player - Set the current research level of Creep Armor Armor to 1 for Neutral Hostile
      • Player - Set the current research level of Creep Weapons to 1 for Neutral Hostile
      • Player - Set the current research level of Creep Casters to 1 for Neutral Hostile
      • Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Actions)
        • Loop - Actions
          • Unit - Set level of Abolish Magic (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Abolish Magic (Neutral Hostile, second position) for (Picked unit) to 2
          • Unit - Set level of Animate Dead (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Anti-magic Shell (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Bash (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Bash (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Black Arrow (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Blizzard (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Bloodlust (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Bloodlust (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Breath of Fire (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Breath of Frost for (Picked unit) to 2
          • Unit - Set level of Brilliance Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Building Damage Aura (Tornado) for (Picked unit) to 2
          • Unit - Set level of Burrow (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Cannibalize (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Carrion Swarm (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Chain Lightning (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Chain Lightning (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Charge Gold and Lumber for (Picked unit) to 2
          • Unit - Set level of Charm (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Cleaving Attack (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Cold Arrows (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Command Aura for (Picked unit) to 2
          • Unit - Set level of Cripple (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Critical Strike (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Cripple (Warlock) for (Picked unit) to 2
          • Unit - Set level of Crushing Wave for (Picked unit) to 2
          • Unit - Set level of Crushing Wave (Lesser) for (Picked unit) to 2
          • Unit - Set level of Crushing Wave (Lesser) for (Picked unit) to 2
          • Unit - Set level of Crow Form for (Picked unit) to 2
          • Unit - Set level of Curse (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Cyclone (Cenarius) for (Picked unit) to 2
          • Unit - Set level of Cyclone (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Detector (Sentry Ward) for (Picked unit) to 2
          • Unit - Set level of Devotion Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Devour (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Devour Cargo for (Picked unit) to 2
          • Unit - Set level of Devour Magic (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Disease Cloud (Neutral Hostile no damage) for (Picked unit) to 2
          • Unit - Set level of Disease Cloud (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Disease Cloud (Plague Ward) for (Picked unit) to 2
          • Unit - Set level of Dispel Magic (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Divine Shield (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Endurance Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Ensnare (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Entangling Roots (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Entangling Roots (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Envenomed Weapons (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Evasion (Neutral Hostile 100%) for (Picked unit) to 2
          • Unit - Set level of Evasion (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Factory for (Picked unit) to 2
          • Unit - Set level of Faerie Fire (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Feral Spirit (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Feral Spirit (Neutral Hostile, Pig) for (Picked unit) to 2
          • Unit - Set level of Finger of Death (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Finger of Pain (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Finger of Pain (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Firebolt (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Firebolt (Warlock) for (Picked unit) to 2
          • Unit - Set level of Flame Strike (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Flame Strike (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Force of Nature (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Forked Lightning (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Frenzy for (Picked unit) to 2
          • Unit - Set level of Frost Armor (Autocast) (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Frost Armor (Naga, Autocast)) for (Picked unit) to 2
          • Unit - Set level of Frost Armor (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Frost Bolt for (Picked unit) to 2
          • Unit - Set level of Frost Nova (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Gather (Wisp Gold and Lumber - Ancient Spirits) for (Picked unit) to 2
          • Unit - Set level of Harvest (Archimonde's Ghouls lumber) for (Picked unit) to 2
          • Unit - Set level of Harvest (Goblin Shredders lumber) for (Picked unit) to 2
          • Unit - Set level of Heal (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Heal (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Heal (Neutral Hostile 3) for (Picked unit) to 2
          • Unit - Set level of Healing Ward (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Healing Ward Aura (Healing Ward) for (Picked unit) to 2
          • Unit - Set level of Healing Wave (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Howl of Terror (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Hurl Boulder for (Picked unit) to 2
          • Unit - Set level of Immolation (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Impale (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Inner Fire (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Inventory (Hero) for (Picked unit) to 2
          • Unit - Set level of Kaboom! (Clockwerk Goblin-Level 1) for (Picked unit) to 2
          • Unit - Set level of Kaboom! (Clockwerk Goblin-Level 2) for (Picked unit) to 2
          • Unit - Set level of Kaboom! (Clockwerk Goblin-Level 3) for (Picked unit) to 2
          • Unit - Set level of Kaboom! (Goblin Sapper) for (Picked unit) to 2
          • Unit - Set level of Life Drain (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Life Regeneration Aura (Neutral) for (Picked unit) to 2
          • Unit - Set level of Life Steal (Frostmourne) for (Picked unit) to 2
          • Unit - Set level of Lightning Shield (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Mana Burn (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Mana Burn (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Mana Burn (Neutral Hostile 3) for (Picked unit) to 2
          • Unit - Set level of Mana Regeneration (Neutral) for (Picked unit) to 2
          • Unit - Set level of Mana Shield (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Maul (Neutral Hostile 3/Maul) for (Picked unit) to 2
          • Unit - Set level of Mind Rot for (Picked unit) to 2
          • Unit - Set level of Monsoon for (Picked unit) to 2
          • Unit - Set level of Parasite for (Picked unit) to 2
          • Unit - Set level of Permanent Immolation (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Permanent Immolation (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Permanent Invisibility for (Picked unit) to 2
          • Unit - Set level of Phoenix Fire (flyer) for (Picked unit) to 2
          • Unit - Set level of Poison Sting for (Picked unit) to 2
          • Unit - Set level of Polymorph (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Possession (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Pulverize (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Purge (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Quill Spray for (Picked unit) to 2
          • Unit - Set level of Rain of Fire (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Rain of Fire (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of Raise Dead (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Ray of Disruption for (Picked unit) to 2
          • Unit - Set level of Reincarnation (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Rejuvenation (Furbolg) for (Picked unit) to 2
          • Unit - Set level of Rejuvenation (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Resistant Skin (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of Reveal for (Picked unit) to 2
          • Unit - Set level of Revenge for (Picked unit) to 2
          • Unit - Set level of Roar (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Roar (Skeletal Orc Champion) for (Picked unit) to 2
          • Unit - Set level of Searing Arrows (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Shadow Meld (Akama) for (Picked unit) to 2
          • Unit - Set level of Shadow Meld (Instant) for (Picked unit) to 2
          • Unit - Set level of Shadow Strike (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Shockwave (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Shockwave (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Shockwave (Trap) for (Picked unit) to 2
          • Unit - Set level of Silence (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Siphon Mana (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Slam (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Slam (Thunder Lizard) for (Picked unit) to 2
          • Unit - Set level of Sleep (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Sleep Always for (Picked unit) to 2
          • Unit - Set level of Slow (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Slow Aura (Tornado) for (Picked unit) to 2
          • Unit - Set level of Slow Aura (Tornado) for (Picked unit) to 2
          • Unit - Set level of Spawn Hydra for (Picked unit) to 2
          • Unit - Set level of Spawn Hydra Hatchling for (Picked unit) to 2
          • Unit - Set level of Spawn Skeleton (Probably Black Arrow) for (Picked unit) to 2
          • Unit - Set level of Spawn Spiderlings (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Spawn Spiders (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Spawn Tentacle for (Picked unit) to 2
          • Unit - Set level of Spell Immunity (Archimonde) for (Picked unit) to 2
          • Unit - Set level of Spell Immunity (Dragon) for (Picked unit) to 2
          • Unit - Set level of Spell Immunity (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Spiked Shell for (Picked unit) to 2
          • Unit - Set level of Spiked Shell (2,2 Button Pos) for (Picked unit) to 2
          • Unit - Set level of Spy for (Picked unit) to 2
          • Unit - Set level of Submerge (Myrmidon) for (Picked unit) to 2
          • Unit - Set level of Submerge (Royal Guard) for (Picked unit) to 2
          • Unit - Set level of Submerge (Snap Dragon) for (Picked unit) to 2
          • Unit - Set level of Summon Prawns for (Picked unit) to 2
          • Unit - Set level of Summon Sea Elemental for (Picked unit) to 2
          • Unit - Set level of Summoning Ritual for (Picked unit) to 2
          • Unit - Set level of Taunt (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Thorns Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of True Sight (Neutral 1) for (Picked unit) to 2
          • Unit - Set level of True Sight (Neutral 2) for (Picked unit) to 2
          • Unit - Set level of Trueshot Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Unholy Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Unholy Frenzy (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Unholy Frenzy (Warlock) for (Picked unit) to 2
          • Unit - Set level of Vampiric Aura (Neutral Hostile) for (Picked unit) to 2
          • Unit - Set level of Wander (Neutral) for (Picked unit) to 2
          • Unit - Set level of War Stomp (Neutral Hostile 1) for (Picked unit) to 2
          • Unit - Set level of War Stomp (Neutral Hostile 2) for (Picked unit) to 2
          • Unit - Set level of War Stomp (Neutral Hostile 3) for (Picked unit) to 2
          • Unit - Set level of Web (Neutral Hostile) for (Picked unit) to 2
 
Last edited:

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
use trigger tags instead of code tags.

Also, I am not so sure if your event is correct.
Are you sure that event triggers when a unit is upgraded?
I would try to use "finishes research" event instead.

I could also speculate that there could be a glitch with that many abilities being added to a single unit, but I am not sure. It is hard to say without knowing what you mean by "not working", does it run at all?
 
Level 5
Joined
May 20, 2013
Messages
162
Chaosy, TY for your time. Yes, surprisingly enough, it does run, provided i change the event/condition arrangement. As far as i know it completes the trigger.

As for the trigger/text tags... i can't seem to keep that straight. I have RL memory issues... which, i suppose has a lot to do with why this stuff is so difficult for me! ;)

Have we had this same conversation before? It seems like this is a repeat?

Ok... i went and reviewed some previous posts, Y see again how do trigger tags.

Anyway, you gave me the clue that seemed to fix it. Using "Finishes Upgrade" & "Triggering Unit" instead of construction/constructed makes it work. Here is a test without the body of upgrades, but i tried it with the full body of upgrades as well and it still worked.

  • Test
    • Events
      • Unit - A unit Finishes an upgrade
    • Conditions
      • ((Triggering unit) is A town-hall-type unit) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Equal to Keep
              • (Unit-type of (Triggering unit)) Equal to Stronghold
              • (Unit-type of (Triggering unit)) Equal to Halls of the Dead
              • (Unit-type of (Triggering unit)) Equal to Tree of Ages
        • Then - Actions
          • Game - Display to (All players) the text: By Jove! It's WORK...
        • Else - Actions
          • Do nothing
sooo... wow! And to think... i have been working on THIS one problem for the last 15 hours! :0

TY for your help again Chaosy! ;)

In fact... i bet i could remove the whole "is a town hall type unit" qualification now, because that is already being addressed in the If/Then/Else action.

BTW... that abilities list is the entire Neutral Hostile list, with a good part of the Neutral Passive thrown in as well. It took quite a few hours to compile. For the sake of GUI users who might want to upgrade creep ability levels in the future, do you think it might be useful to share as a resource? It may not be clever, but it might be a lot of tedium some one else could be spared! ;)
 
Status
Not open for further replies.
Top