- Joined
- Oct 14, 2007
- Messages
- 37
For Type of Maze: Wall (not the sliding ones, more like the one in Harry Potter and the Goblet of Fire)
Trigger Action: This requires 2 regions, note that if you want a trigger for teleporting a unit to another region in its exact relative position then this tutorial is also for you, ill include the trigger code for teleporting an entire maze and individual units:
Entire Maze (Tested = Works)
CoordinatesX - Integer (Non-Array)
CoordinatesY - Integer (Non-Array)
Individual Unit Teleport: (Tested = Works) (Like in Water Wars)
I have included a Download link
NOTES: Task 3 is not yet available on this dl link
Trigger Action: This requires 2 regions, note that if you want a trigger for teleporting a unit to another region in its exact relative position then this tutorial is also for you, ill include the trigger code for teleporting an entire maze and individual units:
Entire Maze (Tested = Works)
-
Teleport Destructable
-
Events
- Player - Player 1 (Red) types a chat message containing -Tele as An exact match (You can change this to whatever you want, this is a player-triggered code)
- Conditions
-
Actions
-
Destructible - Pick every destructible in <Destination Region> and do (Actions)
-
Loop - Actions
- Destructible - Kill (Picked destructible)
-
Loop - Actions
-
Destructible - Pick every destructible in <Departure Region> and do (Actions)
-
Loop - Actions
- Set CoordinatesX = (X of (Position of (Picked destructible)))
- Set CoordinatesY = (Y of (Position of (Picked destructible)))
- Set CoordinatesX = (CoordinatesX - (Center X of <Departure Region>))
- Set CoordinatesY = (CoordinatesY - (Center Y of <Departure Region>))
- Destructible - Create a Ashenvale Tree Wall at (Point((CoordinatesX + (Center X of <Destination Region>)), (CoordinatesY + (Center Y of <Destination Region>)))) facing Default building facing with scale 1.00 and variation 3
- Animation - Play (Last created destructible)'s birth animation
-
Loop - Actions
-
Destructible - Pick every destructible in <Destination Region> and do (Actions)
-
Events
CoordinatesX - Integer (Non-Array)
CoordinatesY - Integer (Non-Array)
Individual Unit Teleport: (Tested = Works) (Like in Water Wars)
-
Teleport
-
Events
- Player - Player 1 (Red) types a chat message containing -TeleUnit as An exact match
- Conditions
-
Actions
- Set CoordinatesX = (X of (Position of <Unit Here> <gen>))
- Set CoordinatesY = (Y of (Position of <Unit Here> <gen>))
- Set CoordinatesX = (CoordinatesX - (Center X of Region 002 <gen>))
- Set CoordinatesY = (CoordinatesY - (Center Y of Region 002 <gen>))
- Unit - Move <Unit Here> <gen> instantly to (Point((CoordinatesX + (Center X of Region 002 Copy <gen>)), (CoordinatesY + (Center Y of Region 002 Copy <gen>))))
-
Events
I have included a Download link
NOTES: Task 3 is not yet available on this dl link
Attachments
Last edited: