Jeff_PKLight
RMXP User
- 535
- Posts
- 20
- Years
- USA
- Seen Jun 29, 2011
After I looked at Booda's Tutorial, I decided to do a warp one only for RMXP.
*Note: This script is for RGSS in RMXP*
First, you'll need to store some location information into the script before teleporting.
The basic script for it is:
-In the ????, replace it with a script you want to store the information in.
-In the Warp.new's map ID, go to the map you want to warp to and look at the map properties -> map settings -> ID. Just put in the number excluding the zeros.
-For Warp.new's x and y, place hte x and y locations you want the player to warp to.
-For direction, put in one of the numbers:
2 for down
4 for left
6 for right
8 for up
~~~~~~~~~~~
Here's an example:
~~~~~~~~~~~
Now if you want to warp back to the memorized location, place this script:
-Replace the map ID, x, y, and direction with the codes you replaced with ???? above. The order goes as:
Map ID first
x second
y third
direction fourth
~~~~~~~~~~~
This way makes it so you won't need a memorize location script.
~Jeff ;)
*Note: This script is for RGSS in RMXP*
First, you'll need to store some location information into the script before teleporting.
The basic script for it is:
Code:
$???? = $game_player.x
$???? = $game_player.y
$???? = $game_map.map_id
$???? = $game_player.direction
Warp.new(map ID, x, y, direction)
-In the ????, replace it with a script you want to store the information in.
-In the Warp.new's map ID, go to the map you want to warp to and look at the map properties -> map settings -> ID. Just put in the number excluding the zeros.
-For Warp.new's x and y, place hte x and y locations you want the player to warp to.
-For direction, put in one of the numbers:
2 for down
4 for left
6 for right
8 for up
~~~~~~~~~~~
Here's an example:
Code:
$teachy_call_x = $game_player.x
$teachy_call_y = $game_player.y
$teachy_call_map_id = $game_map.map_id
$teachy_call_facing = $game_player.direction
Warp.new(6, 10, 5, 2)
~~~~~~~~~~~
Now if you want to warp back to the memorized location, place this script:
Code:
Warp.new(map ID, x, y, direction)
-Replace the map ID, x, y, and direction with the codes you replaced with ???? above. The order goes as:
Map ID first
x second
y third
direction fourth
~~~~~~~~~~~
This way makes it so you won't need a memorize location script.
~Jeff ;)