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
590
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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top