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. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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 make Multi-User Slide Ability

Discussion in 'World Editor Help Zone' started by ShadowBladeX, Mar 2, 2018.

  1. ShadowBladeX

    ShadowBladeX

    Joined:
    Apr 20, 2016
    Messages:
    206
    Resources:
    0
    Resources:
    0
    Is there an easy way to make a multiplayer Slide ability which can be used the same time
     
  2. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    738
    Resources:
    2
    Maps:
    2
    Resources:
    2
    What do you mean by "slide?" Like, sliding on ice? A dash-type ability? Going down a playground slide?

    Point target? Unit target? No target?
     
  3. PrinceYaser

    PrinceYaser

    Joined:
    May 7, 2016
    Messages:
    2,270
    Resources:
    183
    Models:
    2
    Icons:
    161
    Skins:
    10
    Maps:
    3
    Template:
    7
    Resources:
    183
    Maybe he meant MUI?
     
  4. ShadowBladeX

    ShadowBladeX

    Joined:
    Apr 20, 2016
    Messages:
    206
    Resources:
    0
    Resources:
    0
    Like Spiritbreaker's Charge on DoTA

    Yup. I don't know how to jass
     
  5. Chaosy

    Chaosy

    Joined:
    Jun 9, 2011
    Messages:
    10,625
    Resources:
    18
    Maps:
    1
    Spells:
    11
    Tutorials:
    6
    Resources:
    18
    So just a normal charge ability then.

    There are probably a dozen systems to help you do that in the spell section.
     
  6. millzy

    millzy

    Joined:
    Jul 9, 2008
    Messages:
    1,540
    Resources:
    6
    Maps:
    5
    Spells:
    1
    Resources:
    6
  7. ShadowBladeX

    ShadowBladeX

    Joined:
    Apr 20, 2016
    Messages:
    206
    Resources:
    0
    Resources:
    0
    ok my next problem is how to add ability to a unit when he is using metamorphosis (e.g. Troll warlord's berserker form in DoTA)
     
  8. millzy

    millzy

    Joined:
    Jul 9, 2008
    Messages:
    1,540
    Resources:
    6
    Maps:
    5
    Spells:
    1
    Resources:
    6
    give the unit he morphs into the abilitys u want?
     
  9. Wark

    Wark

    Joined:
    Oct 12, 2016
    Messages:
    738
    Resources:
    2
    Maps:
    2
    Resources:
    2
    Metamorphosis has a few peculiarities. Make sure one of the heroes is listed as a "dependency" to the other, and that they both have the same stats/resource costs (food, gold, lumber).
    Other things like attack range, attack speed, movement speed, base health, base mana, base damage, damage dice, health regen, mana regen, and normal abilities (non-hero) can be different without problems on either form.
    If you want specific abilities to appear on different forms, I recommend adding it but disabling it on map initialization for that player. Enable it when you need it. Though, this depends on what you mean by adding the ability too...

    Also, god help you if you use a spellbook ability with Metamorphosis.
    It can work, but it's a real pain to figure out.
     
  10. ShadowBladeX

    ShadowBladeX

    Joined:
    Apr 20, 2016
    Messages:
    206
    Resources:
    0
    Resources:
    0
    Well I want to make a aghanims scepter ability but only when a unit is in its metamorphosis mode. Its kinda hard to make a system that adds or remove ability, picture this, if you used a metamorphosis ability with 0 cooldown and 0 time limit and when you are morphed you will gain ability and when you revert it will be removed, but what if that hero died in morphed mode, the added ability is still there

    EDIT: How to make a unit play animation using triggers
    • Wing Attack loop
      • Events
        • Time - Every 0.03 seconds of game time
      • Conditions
      • Actions
        • For each (Integer WA_Loop) from 1 to WA_MUI, do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • WA_TurnOn[WA_Loop] Equal to True
              • Then - Actions
                • Set WA_Slide1 = (Position of WA_Caster[WA_Loop])
                • Set WA_Slide2 = (WA_Slide1 offset by 30.00 towards WA_Angle[WA_Loop] degrees)
                • Set WA_Moved[WA_Loop] = (WA_Moved[WA_Loop] + 30.00)
                • Animation - Queue WA_Caster[WA_Loop]'s walk animation
                • Special Effect - Create a special effect at WA_Slide2 using Abilities\Weapons\SteamTank\SteamTankImpact.mdl
                • Special Effect - Destroy (Last created special effect)
                • Unit - Move WA_Caster[WA_Loop] instantly to WA_Slide2
                • Custom script: call RemoveLocation(udg_WA_Slide1)
                • Custom script: call RemoveLocation(udg_WA_Slide2)
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • ((WA_Caster[WA_Loop] is dead) Equal to True) or (WA_Moved[WA_Loop] Greater than or equal to WA_Distance[WA_Loop])
                  • Then - Actions
                    • -------- Spell Finished --------
                    • Set WA_Index = (WA_Index - 1)
                    • Unit - Unpause WA_Caster[WA_Loop]
                    • Unit - Turn collision for WA_Caster[WA_Loop] On
                    • -------- Nulling the Variables --------
                    • Set WA_Angle[WA_Loop] = 0.00
                    • Set WA_Caster[WA_Loop] = No unit
                    • Set WA_Distance[WA_Loop] = 0.00
                    • Set WA_Moved[WA_Loop] = 0.00
                    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                      • If - Conditions
                        • WA_Index Equal to 0
                      • Then - Actions
                        • Animation - Play WA_Caster[WA_Loop]'s stand animation
                        • Trigger - Turn off (This trigger)
                        • Set WA_MUI = 0
                      • Else - Actions
                  • Else - Actions
              • Else - Actions
     
    Last edited: Mar 4, 2018