ShidoLionheart

Cuor di Leone
Veteran
Joined
Sep 21, 2013
Messages
62
Reaction score
33
First Language
Italian
How can I set a Variable equal to Vehicles (like boat or airship) location?


For Puzzles I can make a Variable equal to Player MAP X and Y, but I want to do the same with the Airship. How can I do that?
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,645
Reaction score
16,313
First Language
Filipino
Primarily Uses
RMMZ
In the script call to set it's location it's

Code:
$gameMap.vehicle(vehicleId).setLocation(mapId, x, y);



so tie it in a variable it'd just be


$gameMap.vehicle(0).x; 
$gameMap.vehicle(0).y;





This is for boat (0), ship (1), airship (1)
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

:v I "unlearn" how to use the forum.
I've made and moved to a THIRD spreadsheet document to reorganize my thoughts and better plot out my RPG.

halp

Forum statistics

Threads
123,293
Messages
1,155,557
Members
161,710
Latest member
Hananaa
Top