Call boat to a map via a skill or item?

Status
Not open for further replies.

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,186
Reaction score
1,440
First Language
English
Primarily Uses
Other
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?
 

Ebanyle

what
Veteran
Joined
Sep 2, 2016
Messages
345
Reaction score
204
First Language
Portuguese
Primarily Uses
RMVXA
Try doing it like this:

upload_2019-5-8_16-4-42.png

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 :kaoswt:
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,186
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Ebanyle OK, so it works.... Kind of.
When it brings out the boat, the places it where the player is standing, despite the variables.
upload_2019-5-8_15-34-22.png
 

Ebanyle

what
Veteran
Joined
Sep 2, 2016
Messages
345
Reaction score
204
First Language
Portuguese
Primarily Uses
RMVXA
That's strange... Did you set this part accordingly?
upload_2019-5-8_17-13-44.png
This is where it will check to put the boat in front of the character.
 
Last edited:

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,186
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Ebanyle
Yes, I did it just like that:
upload_2019-5-8_16-15-31.png
 

Ebanyle

what
Veteran
Joined
Sep 2, 2016
Messages
345
Reaction score
204
First Language
Portuguese
Primarily Uses
RMVXA
You're placing the boat in the XY of the player. You should place it in the Location XY (Variables 15 and 4) :kaohi:
 

JtheDuelist

Your Friendly Nieghborhood Stygian Zinogre
Veteran
Joined
Dec 9, 2017
Messages
1,186
Reaction score
1,440
First Language
English
Primarily Uses
Other
@Ebanyle Yes! That worked! Thanks!
upload_2019-5-8_16-30-23.png

EDIT: Wait... The Up/Down one isn't working....

EDIT 2: I was using the wrong variables in Up/Down. Nevermind.
 
Last edited:

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
599
First Language
Italian
Primarily Uses
RMVXA
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).
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)
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:
Code:
$game_map.boat_passable?($game_variables[2], $game_variables[3])
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.
 

Attachments

Last edited:

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,551
Reaction score
8,628
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Forum statistics

Threads
107,556
Messages
1,030,514
Members
139,672
Latest member
WDRS
Top