WOKEWAREINC'S PROFILE
WokeWareInc
13
Two brothers trying to get the world Woke.
Search
Filter
[RMMV] Can't figure out how my script code is wrong.
Hello all.
I am simple as hell here, but my partner and I have figured out basic script calls and whatnot. The problem is that I can't seem to use it correctly in our game, of course.
Here's the set up:
There are 4 maps of water levels in the sewer. 0 is empty, 1 is half, 2 is high, 3 is full. Two example maps are:
And
There's a map with a switch that allows the player to control the water level. The idea is that I want a vehicle (the boat) to change its location every time the water level is lowered/raised (the water doesn't actually change, the map that the hero goes to just changes)
Here is the Event of that switch.
I found this code to determine where the boat ends up:
$gameMap.boat().setLocation(88, 30, 30);
The 88 represents the Map ID, the 30 and 30 the X and Y. In theory, the boat should change every time the player chooses a different water level (scale 0-3, 3 being full and 0 being empty).
The problem is that this code only works like once, then the boat stops moving depending on the water level the player has chosen.
Does this make sense? Am I coding this wrong or is idea incompatible with how the script actually works?
EDIT: Sorry, I can't seem to upload the right kinds of images. All in all, just need help choosing where to put a vehicle every time a switch is turned in a Vehicle location script.
I am simple as hell here, but my partner and I have figured out basic script calls and whatnot. The problem is that I can't seem to use it correctly in our game, of course.
Here's the set up:
There are 4 maps of water levels in the sewer. 0 is empty, 1 is half, 2 is high, 3 is full. Two example maps are:
And
There's a map with a switch that allows the player to control the water level. The idea is that I want a vehicle (the boat) to change its location every time the water level is lowered/raised (the water doesn't actually change, the map that the hero goes to just changes)
Here is the Event of that switch.
I found this code to determine where the boat ends up:
$gameMap.boat().setLocation(88, 30, 30);
The 88 represents the Map ID, the 30 and 30 the X and Y. In theory, the boat should change every time the player chooses a different water level (scale 0-3, 3 being full and 0 being empty).
The problem is that this code only works like once, then the boat stops moving depending on the water level the player has chosen.
Does this make sense? Am I coding this wrong or is idea incompatible with how the script actually works?
EDIT: Sorry, I can't seem to upload the right kinds of images. All in all, just need help choosing where to put a vehicle every time a switch is turned in a Vehicle location script.
Pages:
1














