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

GUI Teleport System

Status
Not open for further replies.
Level 7
Joined
Feb 22, 2009
Messages
158
Hi all, im making a Teleport system for my map, that should send your unit to the other players lane. Here's my triggers. It's something wrong!

SOLVED! No more helping...

  • Red
    • Events
      • Unit - A unit enters RED END <gen>
    • Conditions
      • ((Unit-type of (Entering unit)) is A Hero) Equal to False
      • (Owner of (Entering unit)) Equal to Player 1 (Red)
      • ((Triggering player) controller) Equal to User
      • ((Triggering player) slot status) Equal to Is playing
    • Actions
      • Trigger - Run Teleporter System <gen> (checking conditions)
  • Teleporter System
    • Events
    • Conditions
    • Actions
      • Set Counter[(Player number of (Owner of (Entering unit)))] = (Player number of (Owner of (Entering unit)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player_Bases[Counter[(Player number of (Owner of (Entering unit)))]] is alive) Equal to True
          • (Owner of (Entering unit)) Equal to System_Players[Counter[(Player number of (Owner of (Entering unit)))]]
        • Then - Actions
          • Set Counter[(Player number of (Owner of (Entering unit)))] = (Counter[(Player number of (Owner of (Entering unit)))] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Counter[(Player number of (Owner of (Entering unit)))] Greater than 12
            • Then - Actions
              • Set Counter[(Player number of (Owner of (Entering unit)))] = 1
            • Else - Actions
              • -------- STOP --------
          • For each (Integer A) from 1 to 12, do (Actions)
            • Loop - Actions
              • Set Counter[(Player number of (Owner of (Entering unit)))] = (Counter[(Player number of (Owner of (Entering unit)))] + 1)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Player_Bases[Counter[(Player number of (Owner of (Entering unit)))]] is alive) Equal to True
                • Then - Actions
                  • Set tempPoint = PlayerEnd[Counter[(Player number of (Owner of (Entering unit)))]]
                  • Set tempPoint2 = PlayerEnd[(Player number of (Owner of (Entering unit)))]
                  • Unit - Move (Entering unit) instantly to tempPoint
                  • Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
                  • Wait 2.00 seconds
                  • Special Effect - Destroy (Last created special effect)
                  • Custom script: call RemoveLocation(udg_tempPoint)
                  • Custom script: call RemoveLocation(udg_tempPoint2)
                • Else - Actions
                  • Unit - Explode (Entering unit)
        • Else - Actions
          • -------- STOP --------
 

Attachments

  • Commander's Cup v1.0 (system).w3x
    305.9 KB · Views: 55
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • For each (Integer A) from 1 to 12, do (Actions)
    • Loop - Actions
      • Set Counter[(Player number of (Owner of (Entering unit)))] = (Counter[(Player number of (Owner of (Entering unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player_Bases[Counter[(Player number of (Owner of (Entering unit)))]] is alive) Equal to True
        • Then - Actions
          • Set tempPoint = PlayerEnd[Counter[(Player number of (Owner of (Entering unit)))]]
          • Set tempPoint2 = PlayerEnd[(Player number of (Owner of (Entering unit)))]
          • Unit - Move (Entering unit) instantly to tempPoint
          • Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
          • Wait 2.00 seconds
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_tempPoint)
          • Custom script: call RemoveLocation(udg_tempPoint2)
        • Else - Actions
          • Unit - Explode (Entering unit)
  • Else - Actions
    • -------- STOP --------

Why the wait, do you really need it? Remove the locations and destroy the special effect before the wait.
 
Status
Not open for further replies.
Top