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. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    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.

Creating some basic abilities

Discussion in 'Trigger (GUI) Editor Tutorials' started by paskovich, Apr 22, 2007.

  1. penguindemon

    penguindemon

    Joined:
    Aug 17, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    dummy skill based on thunder bolt

    • Blink Strike
      • Events
        • Unit - A unit Starts the effect of an ability
      • Conditions
        • (Ability being cast) Equal to Blink Strike
      • Actions
        • Set TargetP = (Position of (Target unit of ability being cast))
        • Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (30.00 x (Real((Level of Blink Strike for (Triggering unit))))) damage of attack type Spells and damage type Normal
        • Unit - Move (Triggering unit) instantly to TargetP
        • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
        • Unit - Order (Triggering unit) to Attack (Target unit of ability being cast
        • Special Effect - Destroy (Last created special effect)
        • Custom script: call RemoveLocation(udg_TargetP))
     
  2. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    and it doesnt give you a cooldown?

    oh, and you are only destroying 1 of those effects, i suggest you destroy the other one aswell
     
  3. penguindemon

    penguindemon

    Joined:
    Aug 17, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    no it doesnt give me a cool down i tryed a unit finishes casting an ability it gives the cd but then it doesnt do the actions and it uses the stun symbol on the unit.......and for the destroy effects thing.... i seen on someone elses map for trying to learn this that he had like 4 special effects and 1 destroy and it worked fine??
     
  4. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    well, its not that it isnt working, its that its leaking :p

    anyhow, i dont see how this cant give a cooldown

    try using another ability, like Channel
     
  5. Voltrillian

    Voltrillian

    Joined:
    Jan 25, 2009
    Messages:
    14
    Resources:
    0
    Resources:
    0
    on the custom aura couldnt u just make an else if and say if level of ability for unit. the other way seems a lot more confusing
     
  6. Voltrillian

    Voltrillian

    Joined:
    Jan 25, 2009
    Messages:
    14
    Resources:
    0
    Resources:
    0
    does anyone know how to make a spell where at night the hero gets increased AS and damage and movement speed and it also changes his model?
     
  7. jadegolem

    jadegolem

    Joined:
    Feb 1, 2008
    Messages:
    293
    Resources:
    0
    Resources:
    0
    Use an ability based on Slow Poison. For damage, that different
     
  8. ClaptonBlues

    ClaptonBlues

    Joined:
    Feb 23, 2009
    Messages:
    67
    Resources:
    0
    Resources:
    0
    Here's a trick I found without the usage of the complicated trigger. You just make a puppet unit at an undisclosed location where you give the unit control for 1 second when the hero casts the spell and have that unit perform item illusion on the hero.
     
  9. kelek2

    kelek2

    Joined:
    Mar 1, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    uhm theres a specific trick...
    use triggers :D i say you how

    • Unit - Move (Triggering unit) instantly to ((Position of (Target unit of ability being cast)) offset by ((Facing of (Target unit of ability being cast)) + 180.00) towards 0.00 degrees), facing (Position of (Triggering unit))

    but then you should use
    • Unit - Make (Triggering unit) face (Target unit of ability being cast) over 0.01 seconds

    that the unit faces the Targeted Unit


    You just teleport behind your targeted unit
    then just use the things that paskovich uses
     
  10. OnkelManfred

    OnkelManfred

    Joined:
    Mar 27, 2009
    Messages:
    187
    Resources:
    0
    Resources:
    0
    awesome tutorial dude. especially the aura. i was looking for something.
     
  11. kelek2

    kelek2

    Joined:
    Mar 1, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    lol?

    do you want to hide the dummy unit or to unhide it or what?
     
  12. beadhanger

    beadhanger

    Joined:
    Jun 6, 2009
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Great tutorial, though the knockback makes the target change direction when the caster moves. You could fix that by making some small changes though :thumbs_up:
     
    Last edited: Jul 13, 2009
  13. -Sh0ck3r-

    -Sh0ck3r-

    Joined:
    Jun 29, 2008
    Messages:
    134
    Resources:
    0
    Resources:
    0
    I think this is exelent tutorial :)
     
  14. Taryen

    Taryen

    Joined:
    Sep 28, 2008
    Messages:
    39
    Resources:
    0
    Resources:
    0
    This is a brilliant tutorial, i learnt heaps about spell triggering from this (I knew barely anything before hand.) and i even learnt from fiddling with the variables in it, like what happens if a swap X and Y? ect. ended up with making a charge ability with the knockback, and a combination of the attribute damage and blink-strike.

    Again, this tutorial was a great help!
     
  15. kelek2

    kelek2

    Joined:
    Mar 1, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    you dont need an unit at a undisclosed location...
    you can spawn them ... without models
    change the model path to .mdl
    and delete the shadow and give him locust abilitiy and the illusion spell..
    then make a trigger that it spawns the unit and cast ability on the triggering unit.
    (sry for my english:wink:)
     
  16. Rorscharc

    Rorscharc

    Joined:
    Jul 28, 2009
    Messages:
    2
    Resources:
    0
    Resources:
    0
    Someone can help me?

    if - "A unit Starts the effect of an Ability", the cooldown of that ability wont move...
    and if - "A unit finishes casting an Ability" - sometime the effect wont happen....

    please help me!
     
  17. kelek2

    kelek2

    Joined:
    Mar 1, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    on which spell`?
     
  18. kelek2

    kelek2

    Joined:
    Mar 1, 2009
    Messages:
    16
    Resources:
    0
    Resources:
    0
    you cant change the model of the unit, mhh you can but only with a spell "metaporph or tinker ultimate" for the AS and MS you usw Stamina Aura and DMG you put an aura in that gives dmg or something
     
  19. own inc.

    own inc.

    Joined:
    Jun 30, 2007
    Messages:
    1
    Resources:
    0
    Resources:
    0
    Ok, so i've tried forever and i simply cant get past this part. I get everything else but im still screwing up somewhere in the process and make the second part of set variable start as real->to integer, i cant seem to figure out what everyone else does to get it working right -.- plz help i know it needs to go integer to real but i just cant find how to do that.


    Set TempReal = (Integer((Real((Strength of (Triggering unit) (Include bonuses))))))
     
  20. Razorbrain

    Razorbrain

    Joined:
    Aug 18, 2006
    Messages:
    1,165
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Set Variable -> select TempReal

    (Convert Integer to Real(Convert Real to Integer(Hero - Hero Attribute)))