Page 1 of 1

Pathing Type like fly

Posted: August 24th, 2009, 8:48 pm
by Loras
how i can create a trigger who can disable pathing type or make unit can fly over trees and etc like spectre dagger

Re: Pathing Type like fly

Posted: August 24th, 2009, 8:56 pm
by Syre
Unit - Turn Collision On/Off.

Example.

Code: Select all

Untitled Trigger 001
    Events
        Player - Player 1 (Red) types a chat message containing fly as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Unit - Turn collision for (Picked unit) Off)


Flying is a whole different thing, this will make them walk through whatever.

Re: Pathing Type like fly

Posted: August 24th, 2009, 9:13 pm
by Loras
ok thanks this help me one more question can i add buff to unit without casting ability

Re: Pathing Type like fly

Posted: August 24th, 2009, 9:35 pm
by Syre
Sorry, im having trouble understanding. Explain it a bit more please.

Re: Pathing Type like fly

Posted: August 24th, 2009, 9:51 pm
by Loras
when you learn endurance aura you have visual effect and tooltip box with icon and text "This unit is under the effects of Endurance Aura; it has an increased movement speed and attack rate." can you make this tooltip box without have aura with trigger i need only the icon and text no need stats

Re: Pathing Type like fly

Posted: August 24th, 2009, 10:14 pm
by Syre

Code: Select all

Untitled Trigger 001
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Phase (Neutral Hostile)
    Actions
        Unit - Turn collision for (Learning Hero) Off


Alright, its quite simple. Create a new ability, base it off an arua, scroll down and change Stats - Levels, to 1. Change the data, text, and art to what you want. Also change Stats - Area of Effect to something low..0 is recommended, dunno if it will work though.

Then create a new buff. Again, base it off whatever. Change the text and icon to whichever you want. Then go back onto the ability, and change Stats - Buffs, to the newly created buff.

Then, go ahead and create the above trigger. Change Phase to whatever ability you made. And there you go.

Re: Pathing Type like fly

Posted: August 24th, 2009, 10:54 pm
by Loras
but i want only to have buff and have free slot for new spell without learn this spell sorry if you don't understand me

Re: Pathing Type like fly

Posted: August 24th, 2009, 11:02 pm
by Syre
I see, to get a buff without a spell..that cant be done without a spellbook http://www.hiveworkshop.com/forums/trigger-gui-editor-tutorials-279/the-mysteries-of-the-spellbook-33039/

So pretty much now we need to do is make a few triggers..First off is that when the unit learns the skill we give him the no collision, secondly we need to remove the learned skill, third we have to add the spellbook which will be set up to be invisible, yet still give the buff.

This will take a bit of time, so just hold on for a while.

Edit : Alright, took a lot less time than i expected. Use this trigger.

Code: Select all

Untitled Trigger 001
    Events
        Unit - A unit Learns a skill
    Conditions
        (Learned Hero Skill) Equal to Phase (Ability, Unit)
    Actions
        Unit - Turn collision for (Learning Hero) Off
        Wait 1.00 seconds
        Unit - Remove Phase (Ability, Unit) from (Learning Hero)
        Unit - Add Phase (Book) to (Learning Hero)
        Player - Disable Phase (Book) for (Owner of (Learning Hero))


So basicly, what we need to do is create three abilites. First one, Make a Hero Skill, based off An arua. This will be the skill that the unit learns, so give it a good icon, name, and change the level to 1. Next, copy the above skill, and paste it. Change the name as this will be the one that goes into the book. Finally, create another new ability, this time base it off the Item abilty, Spellbook. Scrolldown and change Data - Spell List, remove all the ones there and add the one for the book. Now, create a new buff, as stated above, and add it to the book version.

So, if i havent confused you, well down and goodluck. If i have, just refer to the map attached.