HOW TO CALL SCRIPT CORECTLY

Posts

Pages: 1
That can look simple, but I got difficulty with script already include in RPG Maker Vx Ace. Addon script is easy but incorpored script alway fail with game_interpretter error.

Some of the script that I tryed to call are the followers:

def distance_x_from(x) et def distance_y_from(y)
def process_move_command(command)
move_forward
def pos?(x, y)
def passable?(x, y, d)

They actually exist in script code. Why I can't call them?
I tryed to create a event that check in all side for calculate passability.
But I dont find any way to make it done because all call of these fonction alway fail. Thanks for your help.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Well the built-in scripts obviously do actually work or no games would be playable. So the question is how exactly are you trying to call these, and for what purpose? Need details.
Exemple, I try to create a monster that shoot on you if you move in front of him... Yes I can create a "stupid" invisible event that move on each case for check if it's passable but it like a scap programmation for me.

But in an other hand... Use a loop in a script for check passability is great...

So I checked inside the build-in script of rpg maker and I seen this fonction:
def passable?(x, y, d)
I assume this fonction is used for check if the hero can move in a specific direction.
But When I tryed to call it, that alway failed.

I tryed like this:
In a condition event script part I put all of these try:
passable?(5, 6, 2)
game_player.passable?(5, 6, 2)
game_player_passable?(5, 6, 2)
passable(5, 6, 2)
game_player.passable(5, 6, 2)
game_player_passable(5, 6, 2)
passable?(5, 6, 2) ==true
game_player.passable?(5, 6, 2) ==true
game_player_passable?(5, 6, 2) ==true
passable(5, 6, 2) ==true
game_player.passable(5, 6, 2) ==true
game_player_passable(5, 6, 2) ==true

But all of these try give an error in game interpreter. So I guest, it's jsut because I don't know how to call script corectly. Can you help me with that?
You probably have to use $game_player.passable?(x, y, z) (I think)
Did't work. But seem to work with game_map.
Did't work. But seem to work with game_map.
Pages: 1