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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. From the gates of hell, the 5th Special Effect Contest Results have emerged.
    Dismiss Notice
  4. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  5. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  6. 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.

how to add invulnerable via aura

Discussion in 'World Editor Help Zone' started by Paillan, Feb 21, 2014.

  1. Paillan

    Paillan

    Map Reviewer

    Joined:
    Jan 22, 2011
    Messages:
    3,035
    Resources:
    2
    Models:
    2
    Resources:
    2
    I tried using the aura's buff, but nothing happens... Ideas?
     
  2. Solu9

    Solu9

    Joined:
    Jan 25, 2011
    Messages:
    2,165
    Resources:
    47
    Models:
    26
    Icons:
    16
    Skins:
    1
    Tools:
    1
    Maps:
    3
    Resources:
    47
    You have to trigger that effect.

    Perhaps with a periodic trigger.

    Have a unit group where you throw in all units with the invulnerability aura.

    Create a trigger which checks every X seconds units within Y of those aura wielding units.

    Add/remove a invulnerability ability to those units.

    Edit:

    Something like:

    • Invulnerability Aura
      • Events
        • Time - Every 0.10 seconds of game time
      • Conditions
      • Actions
        • Unit Group - Pick every unit in ugAura_Units and do (Actions)
          • Loop - Actions
            • Set uTemp_Unit = (Picked unit)
            • Set pTemp_Point_1 = (Position of uTemp_Unit)
            • Set ugTemp_Group = (Units within 500.00 of pTemp_Point_1 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of (Owner of (uTemp_Unit))) Equal to True)))
            • Unit Group - Pick every unit in ugTemp_Group and do (Actions)
              • Loop - Actions
                • Unit Group - Add (Picked unit) to ugAura_Group
            • Unit Group - Pick every unit in ugAura_Group and do (Actions)
              • Loop - Actions
                • Set pTemp_Point_2 = (Position of (Picked unit))
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Distance between pTemp_Point_1 and pTemp_Point_2) Greater than 500.00
                  • Then - Actions
                    • Unit Group - Remove (Picked unit) from ugAura_Group
                    • Unit - Remove Invulnerable (Neutral) from (Picked unit)
                  • Else - Actions
                    • Unit - Add Invulnerable (Neutral) to (Picked unit)
                • Custom script: call RemoveLocation (udg_pTemp_Point_2)
            • Custom script: call DestroyGroup (udg_ugTemp_Group)
            • Custom script: call RemoveLocation (udg_pTemp_Point_1)


    A problem that might occur. If a unit already has the Invulnerability ability and still is within range the Invulnerability ability will be added again. I'm not sure if the unit then will have 2 of those abilities or if it will simply ignore that unit when adding.
     
    Last edited: Feb 21, 2014
  3. Quilnez

    Quilnez

    Joined:
    Oct 12, 2011
    Messages:
    3,294
    Resources:
    37
    Icons:
    2
    Tools:
    1
    Maps:
    7
    Spells:
    21
    Tutorials:
    2
    JASS:
    4
    Resources:
    37
    post #2 is the solution

    or you can just request it at kawaii spellworkshop in request section if you want.. if the spell is simple like this, I asure that the request will be taken immedietly ;)
     
  4. Paillan

    Paillan

    Map Reviewer

    Joined:
    Jan 22, 2011
    Messages:
    3,035
    Resources:
    2
    Models:
    2
    Resources:
    2
    EDIT: not what I did, or what you told me to do worked... guess 'ill have to ask at kawai spell workshop
     
    Last edited: Feb 21, 2014
  5. DysfunctionaI

    DysfunctionaI

    Joined:
    Mar 6, 2006
    Messages:
    281
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    You could also have a dummy unit casting Big Bad Voodoo, and move it periodically on top of the caster.

    And for this:

    Instead of adding the "Invulnerability" ability, you could just:

    • Unit - Make (Triggering unit) Invulnerable
     
  6. Paillan

    Paillan

    Map Reviewer

    Joined:
    Jan 22, 2011
    Messages:
    3,035
    Resources:
    2
    Models:
    2
    Resources:
    2
    I need tried that. The idea is an ability like warcraft fountains, so a neutral stuff that protects everyone, avoiding damage there but this stuff doesn't starts in the map, so I can't use regions.
     
  7. Hell_Master

    Hell_Master

    Joined:
    Nov 29, 2012
    Messages:
    5,506
    Resources:
    4
    Maps:
    3
    Template:
    1
    Resources:
    4
    • Event -A unit goes within 256.0 range of >your fountain<


    not sure if this is the exact format but the trigger looks like this. Then make those units invulnerable through,

    • Unit -Make (Triggering unit) Invulnerable
     
  8. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Abilities will not be added twice.

    One could use an aura that only gives a buff. Pick units in range that have the buff. All other filtering is done in object editor in Targets allowed. This way you don't have to use a long matching this and matching that and mathching whatever line.

    Use a custom invulnerability ability so the aura does not clash with other possible invulnerability abilities.
     
  9. Solu9

    Solu9

    Joined:
    Jan 25, 2011
    Messages:
    2,165
    Resources:
    47
    Models:
    26
    Icons:
    16
    Skins:
    1
    Tools:
    1
    Maps:
    3
    Resources:
    47
    Yeah of course. That's a better idea.
     
  10. Paillan

    Paillan

    Map Reviewer

    Joined:
    Jan 22, 2011
    Messages:
    3,035
    Resources:
    2
    Models:
    2
    Resources:
    2
    I decided to just put that unit inside map already and make my life easier xd
     
  11. Adiktuz

    Adiktuz

    Joined:
    Oct 16, 2008
    Messages:
    9,674
    Resources:
    23
    Models:
    2
    Packs:
    1
    Maps:
    1
    Spells:
    16
    Tutorials:
    1
    JASS:
    2
    Resources:
    23
    if it doesn't move, just make an ability based on Big Bad Voodoo and make it cast the ability
     
  12. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,979
    Resources:
    17
    Spells:
    17
    Resources:
    17
    You can use my Temporary Ability System which adds ability to unit for a certain amount of time and be removed automatically.

    The idea is, to periodically pick unit group around the unit that has this ability, and add the ability (using my system) to the picked unit.
    Of course to do this, you must add the learning hero/unit to a Unit Group for periodic enumeration over the time.

    The duration of the added ability (my system) and the periodic timer determines the aura delay (getting/losing the aura).

    I have created a test map, if you can take a look at it, you'll understand.
     

    Attached Files:

  13. Noobsmoke

    Noobsmoke

    Joined:
    Nov 20, 2007
    Messages:
    631
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I would go for Big Bad Vodoo