Hello lovely RPG Maker developers. I've got an issue.
I was using this: https://youtu.be/GRCZE_swCiM but I don't want to use this code like this. I have more than one place where you can give object to a character (4 places, you probably know what I mean, you're giving something to the character and you can do this from behind etc., so you have 4 coordinates)
And this is my code:
$gamePlayer.scrolledX() == 13 && $gamePlayer.scrolledY() == 9 ||
$gamePlayer.scrolledX() == 14 && $gamePlayer.scrolledY() == 10 ||
$gamePlayer.scrolledX() == 13 && $gamePlayer.scrolledY() == 11 ||
$gamePlayer.scrolledX() == 12 && $gamePlayer.scrolledY() == 10 && $gameMap.mapId() == 002
(I didn't used the direction because I don't need it)
Also I done this like this:
But it just doesn't work. Condition is never done (I still have 'you cannot use it here' or
'not here' etc.). 'Or' doesn't work like this? (I don't know Java Script) How I should do this then?
Thanks guys
Okay, small update guys. I made a small test on fresh project and this code is working normally (I mean, not with loads of 'Else' and branches, but just a really simple code with one branch. And it worked. I tried the same in my project, on fresh map without any plugins. At it worked. Then, I tried to do this on my map (it's a parallax) with two plugins: Region Restrictions and BindToPicture plugin. And it's doesn't work. Do any of you have any idea how I can make it work, or at least get something similar?
I was using this: https://youtu.be/GRCZE_swCiM but I don't want to use this code like this. I have more than one place where you can give object to a character (4 places, you probably know what I mean, you're giving something to the character and you can do this from behind etc., so you have 4 coordinates)
And this is my code:
$gamePlayer.scrolledX() == 13 && $gamePlayer.scrolledY() == 9 ||
$gamePlayer.scrolledX() == 14 && $gamePlayer.scrolledY() == 10 ||
$gamePlayer.scrolledX() == 13 && $gamePlayer.scrolledY() == 11 ||
$gamePlayer.scrolledX() == 12 && $gamePlayer.scrolledY() == 10 && $gameMap.mapId() == 002
(I didn't used the direction because I don't need it)
Also I done this like this:
But it just doesn't work. Condition is never done (I still have 'you cannot use it here' or
'not here' etc.). 'Or' doesn't work like this? (I don't know Java Script) How I should do this then?
Thanks guys
Okay, small update guys. I made a small test on fresh project and this code is working normally (I mean, not with loads of 'Else' and branches, but just a really simple code with one branch. And it worked. I tried the same in my project, on fresh map without any plugins. At it worked. Then, I tried to do this on my map (it's a parallax) with two plugins: Region Restrictions and BindToPicture plugin. And it's doesn't work. Do any of you have any idea how I can make it work, or at least get something similar?