Spells - Making a DotA like Omnislash

Discussion in 'Tutorial Repository' started by Tinki3, Aug 20, 2006.

  1. Zekareisouji

    Zekareisouji Guest

    Ratings:
    +0 / 0 / -0
    Oh i c, the script actually allow the caster to attack normally (I dun c any PauseUnit in the script), that's how he manage to get a real attack while slashing?
    What about the attack type and damage type?
     
  2. Tinki3

    Tinki3 Special Member

    Ratings:
    +418 / 0 / -0
    > that's how he manage to get a real attack while slashing?

    Yes.

    > What about the attack type and damage type?

    Attack types determine more or less how much of the damage's damage
    will be dealt to the target, to be vague.

    Remember that fortified armour takes extra damage from "Siege" type attacks,
    Hero armour reduces damage from most attack types, large armour takes extra
    damage from "Magic" types, etc, etc ...

    I actually don't know too much about Damage Types, so I'm not going to explain anything there.
     
  3. Zekareisouji

    Zekareisouji Guest

    Ratings:
    +0 / 0 / -0
    Er... Actually im not asking about that basic stuff, but nvm since you dunno... Cos once I use ATTACK_TYPE_HERO and DAMAGE_TYPE_MELEE, I get a physical normal attack, but another time I use ATTACK_TYPE_CHAOS and DAMAGE_TYPE_UNIVERSAL I get an exact damage.
     
  4. Tinki3

    Tinki3 Special Member

    Ratings:
    +418 / 0 / -0
    > another time I use ATTACK_TYPE_CHAOS and DAMAGE_TYPE_UNIVERSAL I get an exact damage

    That sounds about right.
    "Chaos" does full damage to all armor types.
    "Universal" I think is used for ultimates, so it can damage some types of "immune" units.
     
  5. Sooda

    Sooda Diversity enchants

    Ratings:
    +318 / 0 / -0
    It bothers me a bit that thread name is "DotA like Omnislash". The ability itself comes from Final Fantasy VII PlayStation One game. Basically please mention original idea is taken from Final Fantasy VII. I would be really thankful for that.
     
  6. NetherHawk

    NetherHawk New Member

    Ratings:
    +26 / 0 / -0
    @tinki3, i would like to ask something, would it be possible to create an illusion of the juggernaut with 100% damage and ask it to attack den remove it instead? i think jugg can score critcals while carrying out omnislash. or can u boost jugg's AS by 400% and realli ask him to attack those targets.
     
  7. Kazuga

    Kazuga Let the game begin...

    Ratings:
    +110 / 0 / -0
    Nice tutorial, but it has one sort of bugg. If the unit dies while your doing omnislash and there is no new unit nearby, he will stop the omnislash (ofcourse) but then as soon as you get within range of a unit again (could be 5 seconds later...) he continiues where he left out... How do you prevent this?
     
  8. Tinki3

    Tinki3 Special Member

    Ratings:
    +418 / 0 / -0
    > How do you prevent this?

    Add in a custom script line exactly like the one in red, below.
    Note that it must be in the same place as shown in this trigger in order to work.
    That is, in the "Else" part of the "If-then-Else" statement located inside the loop.

    Code:
    Omnislash
        Events
            Unit - A unit Starts the effect of an ability
        Conditions
            (Ability being cast) Equal to Omnislash 
        Actions
            Set o = (Triggering unit)
            Set t = (Target unit of ability being cast)
            Set tl = (Position of t)
            If ((Level of Omnislash  for o) Equal to 1) then do (Set loops = 2) else do (Do nothing)
            If ((Level of Omnislash  for o) Equal to 2) then do (Set loops = 4) else do (Do nothing)
            If ((Level of Omnislash  for o) Equal to 3) then do (Set loops = 7) else do (Do nothing)
            Unit - Make o Invulnerable
            Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
            Selection - Remove o from selection
            Unit - Move o instantly to tl
            Custom script:   call RemoveLocation(udg_tl)
            Animation - Play o's attack animation
            Unit - Cause o to damage t, dealing (Random real number between 150.00 and 250.00) damage of attack type Hero and damage type Normal
            Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
            Special Effect - Destroy (Last created special effect)
            For each (Integer A) from 1 to loops, do (Actions)
                Loop - Actions
                    Wait 0.30 game-time seconds
                    Set o_current_loc = (Position of o)
                    Set EG[1] = (Units within 600.00 of o_current_loc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of o)) Equal to True) and ((((Matching unit) is A flying 
                    Set EG[2] = (Random 1 units from EG[1])
                    Custom script:   call RemoveLocation(udg_o_current_loc)
                    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            (Number of units in EG[1]) Greater than 0
                        Then - Actions
                            Unit Group - Pick every unit in EG[2] and do (Actions)
                                Loop - Actions
                                    Set p = (Picked unit)
                                    Set pl = (Position of p)
                                    Selection - Remove o from selection
                                    Unit - Move o instantly to pl
                                    Custom script:   call RemoveLocation(udg_pl)
                                    Animation - Play o's attack animation
                                    Unit - Cause o to damage p, dealing (Random real number between 150.00 and 250.00) damage of attack type Hero and damage type Normal
                                    Special Effect - Create a special effect attached to the chest of o using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                                    Special Effect - Destroy (Last created special effect)
                            Custom script:   call DestroyGroup(udg_EG[1])
                            Custom script:   call DestroyGroup(udg_EG[2])
                        Else - Actions
                            [COLOR="Red"]Custom script:   set bj_forLoopAIndex = bj_forLoopAIndexEnd + 1[/COLOR]
                            Custom script:   call DestroyGroup(udg_EG[1])
                            Custom script:   call DestroyGroup(udg_EG[2])
                            Selection - Add o to selection for (Owner of o)
                            Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
                            Unit - Make o Vulnerable
            Selection - Add o to selection for (Owner of o)
            Animation - Change o's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
            Unit - Make o Vulnerable
    
     
  9. GameOver[GR]

    GameOver[GR] New Member

    Ratings:
    +11 / 0 / -0
    I have a problem

    what variable type should be (P) and (PL) (variables)
     
  10. Flare

    Flare Stops copies me! Staff Member

    Ratings:
    +662 / 0 / -0
    Both are point variables
     
  11. trb92

    trb92 Throwing science at the wall to see what sticks

    Ratings:
    +142 / 0 / -0
    Code:
    Set p = (Picked [B]unit[/B])
    Set pl = ([B]Position[/B] of p)
    Simply judged by what they are set to, p is a unit and pl is a point.
     
  12. Draphoelix

    Draphoelix It's not the wintercold that's killing me

    Ratings:
    +133 / 0 / -0
    Whoa quite an old thread.. But doesn't dota's Omnislash works with splash and critical strike?
     
  13. GameOver[GR]

    GameOver[GR] New Member

    Ratings:
    +11 / 0 / -0
    Stun Problem

    What to edit from object editor (for omnislash) to make stun 0.01 secs ?:(

    Hey my omnislash is not working !! i press my omnislash on an enemy creep and then it stuns (lower than 1 second)
    without damage or something special !!
     
  14. denmax

    denmax You can change this now in User CP.

    Ratings:
    +155 / 0 / -0
    Actually, the new omnislash is creating the same dummy Hero (with locust and invun), set its level to the same as the caster and create items to the same as the caster and the skills and skill levels..

    Simple really ^_^..

    About double slash (if it still does exist), it is also VERY possible..
     
  15. Prometheus

    Prometheus Everything is mutable; nothing is sacred Staff Member

    Ratings:
    +592 / 0 / -0
    Thats kind of stupid, recreating the hero. What you do is move them to the enemy, have them attack and repeat. That way it includes crit and stuff.
     
  16. cr4xzZz

    cr4xzZz Also known as azwraith_ftL.

    Ratings:
    +51 / 0 / -0
    There's no such thing as creating a new unit in Omnislash...
    Just teleportation + Triggered damage + Order for attack + Hope for getting a second hit.
     
  17. Anti-krazy

    Anti-krazy New Member

    Ratings:
    +5 / 0 / -0
    Hi guys im a brand new member here and i have a question with the omnislash

    when i activate it and use it. Its very different.

    like if i kill 1 unit it teleports to another (duh) then it hits the other person but when it teleports to another unit it doesnt hit him and teleports again to another unit but the slashes i requested were 3
     
  18. Lanan

    Lanan Guest

    Ratings:
    +0 / 0 / -0
    +rep!
    A nice spell and the tutorial explained things properly.
    +I managed to make it work.
    Cheers!
     
  19. Fluffball

    Fluffball Well-Known Member

    Ratings:
    +35 / 0 / -0
    Wow, thanks Tinki3, great spell, got me onto kindof advanced triggers.

    Would you mind me making the one with the items and splash and all that, then posting it? Will give you main credits though.
     
  20. vypur85

    vypur85 Hibernate

    Ratings:
    +797 / 0 / -0
    > the items and splash and all that

    You mean if you have Battle Fury then you will splash or if you have Buriza then you will have Critical Strike? It's not possible. Not even in DotA. Sometimes you may see Critical Strike during Omnislash but those only occur based off luck and speed.
     

Share This Page