• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Ladder Trigger Help

Status
Not open for further replies.
Level 1
Joined
Aug 19, 2004
Messages
3
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!
 
Level 3
Joined
Oct 16, 2005
Messages
48
LOL DUDE YOUR FIRST TRIGGERS CONDITION IS TRIGGERING UNITS EQUAL TO LADDER! I don't think a hero is a ladder.
 
Level 10
Joined
Jul 2, 2004
Messages
690
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.
 
Level 7
Joined
Aug 5, 2005
Messages
218
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.
Top