I'm trying to make a new simple new ability...in my mind it seems easy yet going about it, i have no clue as to how..I know i need triggers for it, which is why i posted it here instead of the other section.
What im trying to make is simple skill that combines phase-shift with evasion and then while phased, move around the target attacker. I tried using phase-shift as a base, but since its a casted ability instead of passive theres no percentage. And then i tried multiple things with evasion but couldent find the right event to start it all up nor could phase even if it did.
If anyone can help me out with this, i'd really appreciate it.
Evasion-like ability help please.
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Evasion-like ability help please.
Make a trigger that when your Phase shift ability is cast, add Custom Evasion to the casting unit that you have designated the percentages in Object editor...After X seconds, remove that Evasion ability.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Evasion-like ability help please.
Thanks, but wouldent that mean that you have to cast phase shift before-hand? Or even if it is on auto-cast that would mean that every hit that is taken would result in a phase. What im trying to make is an evasion ability that phases instead of just the attacking unit missing.. So..well basicly i want it so theres a X percentage to automatically phase instead of having it autocast and have every attack avoided.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Evasion-like ability help please.
I don't get what your saying....
Explain exaclty what is suppose to happen at each interval under waht conditions and such..
Explain exaclty what is suppose to happen at each interval under waht conditions and such..
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Evasion-like ability help please.
Alright..its acually quite simple..what i want to do, is try to make a ability that combines Phase-Shift and Evasion. So..like evasion has a set percent for the attacker to miss, instead of just saying "Miss" when it happens, i want the unit to phase as well.
However i cant use Phase-shift as a skill base cause it doesnt have a percentage to use it, i could try to use variables for the skill to work, but i cant find anything that relates to abilitys for the condition of the trigger.
The same goes for evasion, i cant think of a way to have it so when the attacker misses, that the trigger activates so phase can be used..
So basicly..all i want is a Passive Phase-shift ability that has a set percentage instead of auto-cast.
However i cant use Phase-shift as a skill base cause it doesnt have a percentage to use it, i could try to use variables for the skill to work, but i cant find anything that relates to abilitys for the condition of the trigger.
The same goes for evasion, i cant think of a way to have it so when the attacker misses, that the trigger activates so phase can be used..
So basicly..all i want is a Passive Phase-shift ability that has a set percentage instead of auto-cast.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Evasion-like ability help please.
What is this phase shift ability...I do not see it in OBject editor
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Evasion-like ability help please.
Night Elf - Unit - Phase Shift. Its a skill, that faerie dragons use. Its an auto-cast skill that makes it so when a unit is attacked, that he vanishes for a second to avoid any damage.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Evasion-like ability help please.
Basically you can make a trigger when the unit is attacked with that certain ability, you can have them auto cast the phase shift based this:
set Integer = Random number between 1 and X, this is where you designate the Percentages.
If integer = A number that you designate
Then have attacked unit cast phase shift
set Integer = Random number between 1 and X, this is where you designate the Percentages.
If integer = A number that you designate
Then have attacked unit cast phase shift
You do not have the required permissions to view the files attached to this post.
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Evasion-like ability help please.
Thanks so much ;D I modified phase-shift so it costs no mana with no cooldown so when its used it acts more like a passive skill..also changed the trigger just a little..hopefully thats alright...
I made it so the trigger is initially off until a custom evasion skill that has 0% chance to cast is learned..this is just for looks and so phase cant be auto-casted. Ive also made it so theres a 30% chance instead, also i have it so Phase-Shift replaces the Evasion Skill when the trigger goes off, and then when its done, replaces it back..
Heres the changes that i made to it. Again, thanks so much for the help ;D
I made it so the trigger is initially off until a custom evasion skill that has 0% chance to cast is learned..this is just for looks and so phase cant be auto-casted. Ive also made it so theres a 30% chance instead, also i have it so Phase-Shift replaces the Evasion Skill when the trigger goes off, and then when its done, replaces it back..
Spoiler:
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Evasion-like ability help please.
You still need to change the random number of Phase Integer to 1=X, because right now every attack will cast the phase shift. This is simple, basic mathamatics