1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Dismiss Notice
  4. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  5. Dismiss Notice
  6. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Automatically Leveling Unit Abilities on Massive Scale.

Discussion in 'World Editor Help Zone' started by Goblintrain, Jun 22, 2018.

  1. Goblintrain

    Goblintrain

    Joined:
    May 20, 2013
    Messages:
    159
    Resources:
    0
    Resources:
    0
    First, let me state that yes, i know how to trigger enough to set tech level, upgrade an ability etc etc.

    What i don't know is how to do it on the scale i am wanting to do it.

    You see, i want to upgrade all the abilities on all creeps in a blanket fashion. For example: the first players to upgrade to tier 2 & tier 3 Town Halls, trigger all the creeps to also upgrade. Doing basic upgrades to health, mana, weapons, armor etc was easy enough. But upgrading their individual abilities appears to be a massive undertaking. I literally have gone through all the Neutral Hostile ability list & given them all three levels, that increase each field favorably by increments of 10%. That alone was an all day job! But i have it set up from that end. Neurotic obsessive compulsive behaviors indulged! ;)

    What i need now is a trigger to make all the abilities upgrade simultaneously when particular events happen (players building tier 2 & tier 3 town halls).

    Trying to do this myself, here are the problems i am encountering. The GUI seems to always want to know exactly what ability it is upgrading. Second, while the upgrade "tiers" of town halls are a central mechanic for upgrading, i do not actually see any GUI trigger terminology that relates actions to the tiers specifically. I imagine it is there, but i do not see the path to it.

    I know one way i could do it is just to set up a trigger with an exhaustive spell list that upgrades all those spells for all creeps when the "event" happens. I am just hoping there is an easier way.

    Is there an easier way? :)
     
  2. Kaijyuu

    Kaijyuu

    Joined:
    Jun 2, 2004
    Messages:
    848
    Resources:
    0
    Resources:
    0
    Honestly that's what I'd do. Remember you don't have to care whether the unit actually has the ability or not; just set EVERY creep ability to level 2/3 for EVERY creep. If they happen to not have the ability in question, nothing will happen.

    If you get sick of the dialog boxes in GUI, it's not hard to edit the generated JASS (Trigger editor -> Edit -> Convert to custom text). Copy/pasting lines and editing the ability ID is faster than selecting abilities from the very slow to load GUI list. You can see the ability IDs by going to the object editor -> View -> Display values as raw data.
     
  3. Goblintrain

    Goblintrain

    Joined:
    May 20, 2013
    Messages:
    159
    Resources:
    0
    Resources:
    0
    Creep Upgrades
    Events
    Conditions
    Actions
    Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Actions)
    Loop - Actions
    Unit - Set level of Abolish Magic for (Picked unit) to 2



    In custon text...



    function Trig_Creep_Upgrades_Func001A takes nothing returns nothing
    call SetUnitAbilityLevelSwapped( 'Andm', GetEnumUnit(), 2 )
    endfunction

    function Trig_Creep_Upgrades_Actions takes nothing returns nothing
    call ForGroupBJ( GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_AGGRESSIVE)), function Trig_Creep_Upgrades_Func001A )
    endfunction

    //===========================================================================
    function InitTrig_Creep_Upgrades takes nothing returns nothing
    set gg_trg_Creep_Upgrades = CreateTrigger( )
    call TriggerAddAction( gg_trg_Creep_Upgrades, function Trig_Creep_Upgrades_Actions )
    endfunction



    Ok, so which part of the text will i be substituting for each ability? I can't identify the "insert ability" line of the text.
     
  4. Kaijyuu

    Kaijyuu

    Joined:
    Jun 2, 2004
    Messages:
    848
    Resources:
    0
    Resources:
    0
    That one

    The 'Andm' is the ability ID. You'll find the rest looking in the object editor, as I mentioned in my previous post.
     
  5. Goblintrain

    Goblintrain

    Joined:
    May 20, 2013
    Messages:
    159
    Resources:
    0
    Resources:
    0
    Ok... well thank you for the idea, i am still going to try it, but i ended up just doing it the hard way... as usual! :)


    • 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
        • ((Constructed structure) is A town-hall-type unit) Equal to True
      • 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
        • Trigger - Turn on Creep Upgrades GUI 2 <gen>
        • Wait 2.00 game-time seconds
        • Trigger - Turn off (This trigger)



    Before this trigger turns off, it turns on its sister trigger that is active until some one builds a tier 3 town hall and activates the second set of upgrades for level 3 abilities and then turns off.

    EDIT: granted this trigger is stupid simple. But i wonder if the abilities upgrade list is something i might be able to submit as a resource here. Perhaps it could save some one else a few hours of time.
     
    Last edited: Jun 26, 2018