There is nothing such as $game_player. There is only $gamePlayer.
The best thing you can do is explore the console by f8. Type in for example $gamePlayer. and it will suggest all sorts of things you can find out.
It is $gamePlayer, not gamePlayer. And MV functions don't have ? on the end. Generally, something that was condition? in Ace becomes isCondition() in MV.
So try $gamePlayer.isPassable(x, y, d)
OK this is exactly my event:
◆If:Script:$gamePlayer.isPassable(1, 0, 4)
◆Play SE:Bell3 (90, 100, 0)
◆
:End
And i still get an error.
Ive also looked through the f8 thingy and an ''.isPassable'' did come up. Also the script page thats mentioned above mentions a ''$gamePlayer.isPassable''. What am i doing wrong? Im really looking for a better way for the game to recognize when im standing still or when i cant move because ''$gamePlayer.isMoving()'' isnt really working out for me very well. Any ideas what i could be doing wrong here?
If there was an error, you need to tell us what it said. Don't make us guess.
Better yet, give us a screenshot of the "f8 thingy" so we can see what you're seeing.
Actually, after re-reading your initial post, I think you're going about things the hard way.
Just create an event on that spot, set the priority to Same as Characters, and the trigger to Player Touch. When the player tries to walk on that spot, they won't be able to, and whatever you have in the event commands will run.
If, later, the player should be able to enter that area, just create a second page on the event, leave the priority to Below Characters, and use a switch as the condition - at whatever point access to this area is to be granted, turn on that switch.
So before the switch is on, the player will be blocked, potentially with some sort of message or something. When they do whatever they need to do to gain access, the switch will be turned on and the second page will be made active, and the player will be able to go over the event.
just checked ... the function is $gamePlayer.isMapPassable(x, y, d)
Yeah, I think the one I was really after was canPass, as it not only checks the map for passability, but also looks for other events to see if there are any blocking the way.
$gamePlayer.isMapPassable also takes into account that the player might be in a vehicle, and so uses the vehicle's passage settings rather than assuming you're on foot.
aye, but i was not looking for the pressed down check, but the actual attempting to move check. But in another topic I was told such a script call does not exist. 🙁
In a situation where the player would be moved by a movement route; Input.isPressed('down') wouldnt be checked, while the player would still move down