• 🏆 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!

Trigger Help Please

Status
Not open for further replies.
Level 3
Joined
Jun 8, 2005
Messages
22
This is for my HeavyCombat 1.4 map, for some reason the respawn isnt working, its almost exact to the respawn in 1.3 and 1.3 works, all regions and Varubles are correct in this, Is there such thing as a bugged trigger?

when i test this trigger it ACTUALY says You will resapwn in # seconds, so the conditions are right and all but u never respawn!!!?! WHAT IS WRONG!!!!

Please help me so i can host my map online and add it to this site!






Code:
CTF Respawn
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 1 (Red)
                        (Owner of (Dying unit)) Equal to Player 2 (Blue)
                        (Owner of (Dying unit)) Equal to Player 3 (Teal)
                        (Owner of (Dying unit)) Equal to Player 4 (Purple)
                        (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 6 (Orange)
                        (Owner of (Killing unit)) Equal to Player 7 (Green)
                        (Owner of (Killing unit)) Equal to Player 8 (Pink)
                        (Owner of (Killing unit)) Equal to Player 9 (Gray)
                        (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                Hero - Add 1 experience to (Killing unit), Hide level-up graphics
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Fragged  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String((Hero level of (Dying unit)))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait (Real((Hero level of (Dying unit)))) seconds
                Hero - Instantly revive (Dying unit) at (Random point in Map_Spawn[1]), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 8.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 1 (Red)
                        (Owner of (Dying unit)) Equal to Player 2 (Blue)
                        (Owner of (Dying unit)) Equal to Player 3 (Teal)
                        (Owner of (Dying unit)) Equal to Player 4 (Purple)
                        (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 1 (Red)
                        (Owner of (Killing unit)) Equal to Player 2 (Blue)
                        (Owner of (Killing unit)) Equal to Player 3 (Teal)
                        (Owner of (Killing unit)) Equal to Player 4 (Purple)
                        (Owner of (Killing unit)) Equal to Player 5 (Yellow)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Teamkilled  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String((Hero level of (Dying unit)))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] - 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait (Real((Hero level of (Dying unit)))) seconds
                Hero - Instantly revive (Dying unit) at (Random point in Map_Spawn[1]), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 6 (Orange)
                        (Owner of (Dying unit)) Equal to Player 7 (Green)
                        (Owner of (Dying unit)) Equal to Player 8 (Pink)
                        (Owner of (Dying unit)) Equal to Player 9 (Gray)
                        (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 6 (Orange)
                        (Owner of (Killing unit)) Equal to Player 7 (Green)
                        (Owner of (Killing unit)) Equal to Player 8 (Pink)
                        (Owner of (Killing unit)) Equal to Player 9 (Gray)
                        (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Teamkilled  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String((Hero level of (Dying unit)))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] - 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait (Real((Hero level of (Dying unit)))) seconds
                Hero - Instantly revive (Dying unit) at (Random point in Map_Spawn[2]), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 6 (Orange)
                        (Owner of (Dying unit)) Equal to Player 7 (Green)
                        (Owner of (Dying unit)) Equal to Player 8 (Pink)
                        (Owner of (Dying unit)) Equal to Player 9 (Gray)
                        (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 1 (Red)
                        (Owner of (Killing unit)) Equal to Player 2 (Blue)
                        (Owner of (Killing unit)) Equal to Player 3 (Teal)
                        (Owner of (Killing unit)) Equal to Player 4 (Purple)
                        (Owner of (Killing unit)) Equal to Player 5 (Yellow)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                Hero - Add 1 experience to (Killing unit), Hide level-up graphics
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Fragged  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String((Hero level of (Dying unit)))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait (Real((Hero level of (Dying unit)))) seconds
                Hero - Instantly revive (Dying unit) at (Random point in Map_Spawn[2]), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing


This is the CTF Respawn trigger from 1.3:

Code:
CTF Respawn
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 2 (Blue)
                        (Owner of (Dying unit)) Equal to Player 4 (Purple)
                        (Owner of (Dying unit)) Equal to Player 6 (Orange)
                        (Owner of (Dying unit)) Equal to Player 8 (Pink)
                        (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 2 (Blue)
                        (Owner of (Killing unit)) Equal to Player 4 (Purple)
                        (Owner of (Killing unit)) Equal to Player 6 (Orange)
                        (Owner of (Killing unit)) Equal to Player 8 (Pink)
                        (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Teamkilled  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String(((Hero level of (Dying unit)) x 2))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] - 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait ((Real((Hero level of (Dying unit)))) x 2.00) seconds
                Hero - Instantly revive (Dying unit) at (Random point in team2 spawn <gen>), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 1 (Red)
                        (Owner of (Dying unit)) Equal to Player 3 (Teal)
                        (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                        (Owner of (Dying unit)) Equal to Player 7 (Green)
                        (Owner of (Dying unit)) Equal to Player 9 (Gray)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 1 (Red)
                        (Owner of (Killing unit)) Equal to Player 3 (Teal)
                        (Owner of (Killing unit)) Equal to Player 5 (Yellow)
                        (Owner of (Killing unit)) Equal to Player 7 (Green)
                        (Owner of (Killing unit)) Equal to Player 9 (Gray)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Teamkilled  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String(((Hero level of (Dying unit)) x 2))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] - 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait ((Real((Hero level of (Dying unit)))) x 2.00) seconds
                Hero - Instantly revive (Dying unit) at (Random point in team1 spawn <gen>), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 2 (Blue)
                        (Owner of (Dying unit)) Equal to Player 4 (Purple)
                        (Owner of (Dying unit)) Equal to Player 6 (Orange)
                        (Owner of (Dying unit)) Equal to Player 8 (Pink)
                        (Owner of (Dying unit)) Equal to Player 10 (Light Blue)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 1 (Red)
                        (Owner of (Killing unit)) Equal to Player 3 (Teal)
                        (Owner of (Killing unit)) Equal to Player 5 (Yellow)
                        (Owner of (Killing unit)) Equal to Player 7 (Green)
                        (Owner of (Killing unit)) Equal to Player 9 (Gray)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (0.00%, 0.00%, 100.00%)
                Hero - Add ((Hero level of (Dying unit)) x 60) experience to (Killing unit), Hide level-up graphics
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Fragged  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String(((Hero level of (Dying unit)) x 2))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait ((Real((Hero level of (Dying unit)))) x 2.00) seconds
                Hero - Instantly revive (Dying unit) at (Random point in team2 spawn <gen>), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 5.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Or - Any (Conditions) are true
                    Conditions
                        (Unit-type of (Dying unit)) Not equal to Choose Weapon
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Dying unit)) Equal to Player 1 (Red)
                        (Owner of (Dying unit)) Equal to Player 3 (Teal)
                        (Owner of (Dying unit)) Equal to Player 5 (Yellow)
                        (Owner of (Dying unit)) Equal to Player 7 (Green)
                        (Owner of (Dying unit)) Equal to Player 9 (Gray)
                Or - Any (Conditions) are true
                    Conditions
                        (Owner of (Killing unit)) Equal to Player 2 (Blue)
                        (Owner of (Killing unit)) Equal to Player 4 (Purple)
                        (Owner of (Killing unit)) Equal to Player 6 (Orange)
                        (Owner of (Killing unit)) Equal to Player 8 (Pink)
                        (Owner of (Killing unit)) Equal to Player 10 (Light Blue)
            Then - Actions
                Cinematic - Ping minimap for (All players) at (Position of (Dying unit)) for 1.00 seconds, using a Simple ping of color (100.00%, 0.00%, 0.00%)
                Hero - Add ((Hero level of (Dying unit)) x 60) experience to (Killing unit), Hide level-up graphics
                Game - Display to (All players) for 6.00 seconds the text: ((Name of (Owner of (Killing unit))) + ( Fragged  + (Name of (Owner of (Dying unit)))))
                Game - Display to (All players matching ((Matching player) Equal to (Owner of (Dying unit)))) for 10.00 seconds the text: (You have died, you will revive in  + ((String(((Hero level of (Dying unit)) x 2))) +  Seconds.))
                Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
                Wait 1.00 seconds
                Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
                Leaderboard - Sort Leaderboard by Value in Descending order
                Leaderboard - Show Leaderboard
                Wait ((Real((Hero level of (Dying unit)))) x 2.00) seconds
                Hero - Instantly revive (Dying unit) at (Random point in team1 spawn <gen>), Hide revival graphics
                Unit - Set mana of (Dying unit) to 60.00%
                Unit - Make (Dying unit) Invulnerable
                Wait 8.00 seconds
                Unit - Make (Dying unit) Vulnerable
            Else - Actions
                Do nothing
 
Level 3
Joined
Jun 8, 2005
Messages
22
update

I added the 1.3 below the 1.4 respawn, again, i have checked every varuble and all the regions over and over again, I think its a bug in WE. :(

Now from compareing them, i think the problem would be the spawn point, on 1.3 its a random place in like team2 spawn in 1.4 its a random place in Map Spawn[1] a varuble. il see..

UPDATE: That is not the problem, it sets the Map Spawn correctly set when you choose the map u wanna play on...

Il explain what this trigger does instead of working:

When 1 guy kills another it actualy says "You have died, You will respawn in 1 second" so that mean the trigger works, the killing unit ALSO gets that 1 exp after killing them, so that part works too, and even after that the leaderboard adds 1 kill, AND after that 1 second, the dead body of the dieing unit actualy disaperes, like it will respawn, but never does. The (name) Fragged (name) never comes up either... strange.

The only part that could be not working would be the actualy reviveing of the hero, witch doesnt make scence cuz i know it should work right.

I just tested to see if changeing the spawn region to the region itself would effect anything, It didnt.

Maybe i could just give som1 my unprotected map to see whats wrong(you will be in credits =D)
 
Status
Not open for further replies.
Top