• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Ladder Trigger Help

Status
Not open for further replies.

Sajuur

S

Sajuur

Hey guys, looking for a bit of help with a ladder trigger.

What I'm attempting to do is only allow one unit up the ladder each second, but this has proven to be more complicated than I orginally imagined. Right now what I have is:

Code:
Ladder 10
    Events
        Unit - A unit enters Ladder10A <gen>
    Conditions
        (Unit-type of (Triggering unit)) Equal to Ladder
    Actions
        Trigger - Turn on Ladder 10 Destroyed <gen>
        Trigger - Turn on Ladder 10 Enter <gen>
        Trigger - Turn on Ladder 10 Leave <gen>
        Trigger - Turn on Ladder 10 Climb <gen>
        Set Ladder[10] = (Triggering unit)
        Unit - Move (Triggering unit) instantly to (Center of Ladder10A <gen>), facing 90.00 degrees
        Unit - Make (Triggering unit) Invulnerable
        Unit - Pause (Triggering unit)
        Wait 60.00 game-time seconds
        Unit - Make (Triggering unit) Vulnerable
        Trigger - Turn off (This trigger)

Code:
Ladder 10 Enter
    Events
        Unit - A unit enters Ladder10B <gen>
    Conditions
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Not equal to Battering Ram
                (Unit-type of (Triggering unit)) Not equal to Ladder
                (Unit-type of (Triggering unit)) Not equal to Large Ladder
                (Unit-type of (Triggering unit)) Not equal to Uruk Hai Torch Carrier
        Or - Any (Conditions) are true
            Conditions
                (Owner of (Triggering unit)) Equal to Player 7 (Green)
                (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
    Actions
        Unit Group - Add (Triggering unit) to LadderGroups[10]

Code:
Ladder 10 Leave
    Events
        Unit - A unit leaves Ladder10B <gen>
    Conditions
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Triggering unit)) Not equal to Battering Ram
                (Unit-type of (Triggering unit)) Not equal to Ladder
                (Unit-type of (Triggering unit)) Not equal to Large Ladder
                (Unit-type of (Triggering unit)) Not equal to Uruk Hai Torch Carrier
        Or - Any (Conditions) are true
            Conditions
                (Owner of (Triggering unit)) Equal to Player 7 (Green)
                (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
    Actions
        Unit Group - Remove (Triggering unit) from LadderGroups[10]

Code:
Ladder 10 Climb
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Unit - Move (Random unit from LadderGroups[10]) instantly to (Center of Ladder10C <gen>)

Code:
Ladder 10 Destroyed
    Events
        Unit - A unit Dies
    Conditions
        (Triggering unit) Equal to Ladder[10]
    Actions
        Unit Group - Pick every unit in LadderGroups[10] and do (Unit Group - Remove (Picked unit) from LadderGroups[10])
        Trigger - Turn off Ladder 10 Enter <gen>
        Trigger - Turn off Ladder 10 Leave <gen>
        Trigger - Turn off Ladder 10 Climb <gen>
        Trigger - Turn on Ladder 10 <gen>
        Trigger - Turn off (This trigger)

The ladder goes invul and vul properly, but no units climb it. Thanks to anyone who can give me some help!
 
LOL DUDE YOUR FIRST TRIGGERS CONDITION IS TRIGGERING UNITS EQUAL TO LADDER! I don't think a hero is a ladder.
 
can you explain what you mean by ladder? do you mean like, unit goes to a doodad, and he is like moved to another level?

and please don't post in caps.
 
Clan_SRS said:
LOL DUDE YOUR FIRST TRIGGERS CONDITION IS TRIGGERING UNITS EQUAL TO LADDER! I don't think a hero is a ladder.
If that was the problem, then the ladder wouldn't go invulnerable, would it?

About climbing the ladder, how exactly does this work? Does it elevate, move a direction, or what? Your periodic simply moves the "climbing" units to one specified point.
 
Status
Not open for further replies.
Back
Top