So yeah another question...

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
lilmanbryan
Member
Posts: 52
Joined: January 10th, 2008, 6:29 am
Title: Learning to Model
Location: Shoreline, Wa

So yeah another question...

Post by lilmanbryan »

Ok, so when i pick i hero from the tavern, how can i make it so that when i pick them, it will teleport me and the hero right to my base? :?
[blinking]lilmanbryan[/blinking] appreciates you reading this...

[blinking]Look Down...[/blinking]

Spoiler:
You Weren't Supposed to Look Here...


[blinking]Look Up...[/blinking]
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: So yeah another question...

Post by tru_power22 »

Code: Select all

Hero Teleporting
    Events
        Unit - A unit enters Spawn Region <gen>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
                (Owner of (Entering unit)) Equal to Player 1 (Red)
            Then - Actions
                Unit - Move (Triggering unit) instantly to (Center of Reds Base <gen>)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
                (Owner of (Entering unit)) Equal to Player 2 (Blue)
            Then - Actions
                Unit - Move (Triggering unit) instantly to (Center of Blues Base <gen>)
            Else - Actions
       If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) is A Hero) Equal to True
                (Owner of (Entering unit)) Equal to etc...
            Then - Actions
                Unit - Move (Triggering unit) instantly to (Center of etc... Base <gen>)
            Else - Actions
The reason I'm using If/Then/Else checks, is that it allows me to condense what could be 12 triggers, into one trigger.

If I wanted to be really fancy, I could make the trigger leak-less.
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
User avatar
lilmanbryan
Member
Posts: 52
Joined: January 10th, 2008, 6:29 am
Title: Learning to Model
Location: Shoreline, Wa

Re: So yeah another question...

Post by lilmanbryan »

Ok thank you very much
[blinking]lilmanbryan[/blinking] appreciates you reading this...

[blinking]Look Down...[/blinking]

Spoiler:
You Weren't Supposed to Look Here...


[blinking]Look Up...[/blinking]
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: So yeah another question...

Post by Aero »

If I wanted to be really fancy, I could make the trigger leak-less.
"Leakless" is a standard imo, not a extra.
User avatar
tru_power22
Old Wrinkly Member
Posts: 271
Joined: January 12th, 2008, 4:42 am
Title: Re-R-Re-Re-Remix
Location: Canada EH?

Re: So yeah another question...

Post by tru_power22 »

Sonofabitch I guess I'm just lazy...
Contact me on WC3 Killing_Spree22, I'm at US west!

To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk

I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.