Spells - Making a DotA like Omnislash

Z

Zekareisouji

Guest
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?
 

Tinki3

Special Member
Reaction score
418
> 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.
 
Z

Zekareisouji

Guest
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.
 

Tinki3

Special Member
Reaction score
418
> 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.
 

Sooda

Diversity enchants
Reaction score
318
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.
 

NetherHawk

New Member
Reaction score
26
@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.
 

Kazuga

Let the game begin...
Reaction score
110
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?
 

Tinki3

Special Member
Reaction score
418
> 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
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
what variable type should be (P) and (PL) (variables)

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.
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Whoa quite an old thread.. But doesn't dota's Omnislash works with splash and critical strike?
 

GameOver[GR]

New Member
Reaction score
11
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 !!
 

denmax

You can change this now in User CP.
Reaction score
155
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..
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
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.
 

cr4xzZz

Also known as azwraith_ftL.
Reaction score
51
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.
 

Anti-krazy

New Member
Reaction score
5
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
 
L

Lanan

Guest
+rep!
A nice spell and the tutorial explained things properly.
+I managed to make it work.
Cheers!
 

Fluffball

Well-Known Member
Reaction score
35
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.
 

vypur85

Hibernate
Reaction score
803
> 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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top