Does anyone know how I can call the boat to the water in front of the player when the player uses a "Boat" item/skill?
Call boat to a map via a skill or item?
RPG Maker VXAce SupportTry doing it like this:
In this case the last condition will check if the Region ID is 1, so at the "Get Location Info" you can change it to terrain tag or whatever fits your need more, so water tiles will have a terrain tag of 2, or a region ID of 1...
Then make the item/skill call the common event where those commands are on 😅
In this case the last condition will check if the Region ID is 1, so at the "Get Location Info" you can change it to terrain tag or whatever fits your need more, so water tiles will have a terrain tag of 2, or a region ID of 1...
Then make the item/skill call the common event where those commands are on 😅
@Ebanyle OK, so it works.... Kind of.
When it brings out the boat, the places it where the player is standing, despite the variables.
When it brings out the boat, the places it where the player is standing, despite the variables.
That's strange... Did you set this part accordingly?
This is where it will check to put the boat in front of the character.
You're placing the boat in the XY of the player. You should place it in the Location XY (Variables 15 and 4) 👋
@Ebanyle Yes! That worked! Thanks!
EDIT: Wait... The Up/Down one isn't working....
EDIT 2: I was using the wrong variables in Up/Down. Nevermind.
EDIT: Wait... The Up/Down one isn't working....
EDIT 2: I was using the wrong variables in Up/Down. Nevermind.
I only want to give you a small piece of advice to make it easier to edit the event later on. Instead of using conditional branches to check directions, you can set variables using the "script" option (or a script call).
The last conditional branch - the one checking that region ID - can be the same, but this allows you to remove every other conditional branch. As a matter of fact, you don't even need to store it in a variable. If you use the script option in the conditional branch you can just check it like this:
Doing it this way gets rid of everything but the most essential parts. It will be much easier to edit your event later on if anything changes.
Code:
$game_variables[1] = $game_map.map_id # no need to change this at all,the event command works perfectly here
$game_variables[2] = $game_map.round_x_with_direction($game_player.x, $game_player.direction)
$game_variables[3] = $game_map.round_y_with_direction($game_player.y, $game_player.direction)
Code:
$game_map.boat_passable?($game_variables[2], $game_variables[3])
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/call-boat-to-a-map-via-a-skill-or-item.108809/