Spell Omnislash

T

tansari03

Guest
I copied the omnislash onto another map of mine, and there are errors with the triggers. THe ones that include variable "o" are gray in lettering. Help?

EDIT:
Scratch that, it's not things with "o", it's just a lot of random things that are in gray lettering.
 
S

saberxpert

Guest
Great Spell, I've been looking for a GUI Omnislash spell and this one is perfect!
Just noticed that when you cast it and you dont do all your hits and stop "omnislashing" and a unit comes in range, the hero will still omnislash it. Guess it's a bugg but I think it works out to make the spell funner. Anyways...
Gratz! Keep it up! Awesome spells man you rock!:D

*Edit* Wanted to know if it was possible to make it work against only 1 unit too. I tried the non-JASS one and when its against only 1 unit it attacks once and then just stops, is it possible to make it continue attacking?
 

Tinki3

Special Member
Reaction score
418
> possible to make it work against only 1 unit

So you'd like the spell to just Omnislash a single target regardless if there are any other enemy units in range?
Can do.

Upload your map to a file-hosting site such as http://filefront.com, and give me a DL link.
I'll give your map back when I'm done.
 
S

saberxpert

Guest
So you'd like the spell to just Omnislash a single target regardless if there are any other enemy units in range?
Can do.

What I mean is that I'd like it to target multiple targets but also work when theres only 1 target. Like for example if there's like 10 peons around the caster and he attacks them it would work and if theres only one lvl 10 hero he can omnislash all around the hero with the same spell. Hope you understand...
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
I think he wants the number of hits, level based.
 
S

saberxpert

Guest
What I meant was that the spell be able to hit multiple targets AND a single target.
So like you can omnislash a bunch of units and then turn around and omnislash one unit and if theres nothing else around that the spell will continue working and not just slash once. As of the current spell, when I cast it on one unit and there is nothing else in range around it, it will slash once and then it stops.
I want it to continue slashing the one target but also work against multiple targets like the spell currently does.
Hope this is clearer...

*EDIT*Oh and I was wondering if there is a way to make it so that the cooldown and mana cost of the spell work because as of right now, when you cast the spell it doesnt reduce your mana (mana cost) nor sets off the spell's cooldown.
 

Omnizohar

New Member
Reaction score
0
Sorry for bumping or what you guys call Necro posting but I had trouble with your JASS version of the Omnislash spell. I have followed all the instructions carefully and still no luck I get error when I save my map.

First Error.


Second Error.


So any help appreciated, thanks.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
Omnislash will get any units in range, and if there is only one unit... well, then he's dead.
 

Mealstorm

Member
Reaction score
2
I copied gui version, everything is same, but in my map hero makes only 2 hits..
I controlled every line in trigger and spell but It doesnt want to work right :confused:
 

vypur85

Hibernate
Reaction score
803
> I copied gui version, everything is same

How sure are you? At least show the trigger.


If you're using Integer A, change that to Custom Integer Loop.
 

Mealstorm

Member
Reaction score
2
This is how I have that trigger

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

DiFm

New Member
Reaction score
35
If you Copy A trigger into you map, there is 3 things that need to be checked.

First you must have a spell named as the one in the map you dont need to have this as you can easily change it to whatever spell you have. You must also have the Variables which you also can change Name on and you must have the right Variable types of variables.

These things should become Gray and a Clockwork looking thing should be next to the action/event/Condition
 

Kazuga

Let the game begin...
Reaction score
110
The spell doesn't have to have the same name. But it does have to have the same sort of meaning: Target ground/ Target unit/ No target. And the variables should have the same name since otherwise you have to change all the custom scripts to the new name.
 
A

Atahualpa

Guest
like Dingman, i did too copy the spell to my map and it didnt work. i did everthing Tinki3 told in the explanation trigger. the two things that didnt work were creating/copying the raw data as it changes from map to map, so i did it but it shows error messages saying that the triger has been disabled (i think it was mentioned eralier). the second problem is that when i downloaded the jass from the URL you gave us Tinki3, the computer doesnt recognize it and it doesnt work. im really crazy about omnislash so i didnt give up on the frst try, this was like my 6 time trying the trigger and downloading but i dont know what else to do. like xapphire, im good in editor but truly suck with trigers (kinda ironic since custom map making is almost all about the trigers). Thanks in advance.
 

Nocturne

New Member
Reaction score
1
Good Spell, I'm going to used in my map if i can fix one thing... Why the GUI version doens't have Cooldown? I try with the JASS version but it doesn't work me:(
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
I believe you want to give the ability the CD.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top