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. 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
  4. Choose your ride to damnation in the 5th Special Effect Contest Poll.
    Dismiss Notice
  5. The winners of the 13th Techtree Contest have been announced!
    Dismiss Notice
  6. The 13th Music Contest Poll is up! Vote for the best tracks in this symphony of frost and flame.
    Dismiss Notice
  7. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  8. 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.

Dummy Units Tutorial

Discussion in '"Graveyard"' started by orcfan32, Jun 3, 2005.

  1. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    THE USES OF DUMMY UNITS


    Requirements:
    World Editor
    Knowledge of Triggers
    Knowledge of the Object Editor


    A Quick Overview:
    Dummy units. You hear about them at almost every Warcraft III site. What are they? A dummy unit is a unit with one or more purposes and is not used for fighting\building\other work. A dummy unit is basically a unit that is invulnerable, non-selectable, scaled to the lowest size possible(usually), and hidden. These small helpers serve as the building blocks for most great spells. They can be used for many purposes including: lightning from one point to a dummy unit, moving units from one place to a dummy unit, special effects at a dummy unit, and much, much more. What do all of these have in common? There is no region used for the target point. This can cut down on region variables and regions themselves. In the next section, you will learn how to use dummy units.


    Their Uses:
    Here is what we will do:

    Step #1: Go to the object editor and to the units tab. Create a new unit based of of the Headhunter and name it "Dummy".

    Step #2: Set attacks enabled: Attack 1 only (unless already set to that), delete all abilities, set food used 0, upgrades used: none, and cooldown to 5.00 seconds.

    Step #3: Change its damage to 29, Damage - Number of Dice: 1, Damage - Sides per Dice: 1. Give him the abilities "Invulnerable (Neutral)" and "Locust".

    SIDENOTE: Locust makes a unit unselectable in-game.

    Step #4: Create a unit based off of Siege Engine and name it "Spear Launcher". Change ONLY the attacks enabled to NONE.

    Step #5: Place a Spear Launcher and some test enemies on the map. Don't forget the Start Location.

    Step #6: Go to the triggers and delete the Map Initialization trigger and make one called "Launch Spears". Use this trigger syntax:

    Code (Text):
    Launch Spears
        Events
            Time - Every 1.50 seconds of game time
        Conditions
        Actions
            Unit - Create 1 Dummy for (Owner of Spear Launcher 0000 <gen>) at (Position of Spear Launcher 0000 <gen>) facing Default building facing degrees
            Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
            Wait 1.50 seconds
            Unit - Remove (Last created unit) from the game
     
    Now, test the map. Take the Spear Launcher over to your enemies on the map and watch as your Spear Launcher produces dummies to attack your enemies. The targeted amount of time between each spear launched was 3.00 seconds. Have fun, and don't be afraid to experiment!
     
  2. Vexorian

    Vexorian

    Joined:
    Mar 11, 2004
    Messages:
    649
    Resources:
    1
    Maps:
    1
    Resources:
    1
    That trigger leaks
     
  3. Leopard

    Leopard

    Joined:
    Dec 29, 2004
    Messages:
    651
    Resources:
    22
    Icons:
    8
    Skins:
    12
    Maps:
    1
    Tutorials:
    1
    Resources:
    22
    Yeah.. here's the leak.

    Unit - Create 1 Dummy for (Owner of Spear Launcher 0000 <gen>) at (Position of Spear Launcher 0000 <gen>) facing Default building facing degrees

    You should store the position on variable and remove the location in the end of uses.

    call RemoveLocation(A)


    @Vex: I like your style man, real fresh! :wink:
     
  4. Warcraft_mapmaker_Beginne

    Warcraft_mapmaker_Beginne

    Joined:
    Jul 29, 2005
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Hero help

    Im nopt sure how to get the hero above level 10 I am new to maiing maps so if anyone can help me please reply
    :wink:
     
  5. Kimbo

    Kimbo

    Joined:
    Jun 3, 2005
    Messages:
    7,651
    Resources:
    144
    Models:
    18
    Icons:
    110
    Packs:
    3
    Skins:
    9
    Tutorials:
    4
    Resources:
    144
    Well go to advacned at top menu then go custom gameplay contestants, then tick a button so u can cutomize the stats. Scroll dwon in Hero area and you'll find it. If not clear go to requests, someone with something had there answered correctly.
     
  6. Dota-Demon[aS]

    Dota-Demon[aS]

    Joined:
    Aug 20, 2006
    Messages:
    3
    Resources:
    0
    Resources:
    0
    plz help me

    i got a language problem if anyone could help me i will be very happy lol. my problem is that i got spanish version and i dont know wich hability is locust if u could tell me in spanish or tell me one unit allreay has it to me to look for it it will be cool, ty m8s
     
  7. Thunder_eye

    Thunder_eye

    Joined:
    May 19, 2004
    Messages:
    265
    Resources:
    0
    Resources:
    0
    cryptlords locusts
     
  8. Wolverabid

    Wolverabid

    Joined:
    Oct 23, 2006
    Messages:
    8,302
    Resources:
    5
    Tutorials:
    5
    Resources:
    5
    This tutorial is far too brief and is not multiinstanceable; also, the included trigger leaks.

    ~ Thread moved to graveyard.