SCRIPT MAKING HELP
Posts
Pages:
1
RPG Maker VX Ace
I'm a total newbie in script making, so this might not make much sense.
But basically I'm trying to make a script that will allow a boat to go on tiles with the region id 1. So far this is what I have:
def movable?
!moving? && ! (@type == :boat && @gameMap.region_Id === 1)
end
It wasn't working, so I decided to come here for help. Like I said, I'm a newbie. This is literally my first script. So it probably makes no sense. But if anyone can help me make one that works that'd be great.
I'm a total newbie in script making, so this might not make much sense.
But basically I'm trying to make a script that will allow a boat to go on tiles with the region id 1. So far this is what I have:
def movable?
!moving? && ! (@type == :boat && @gameMap.region_Id === 1)
end
It wasn't working, so I decided to come here for help. Like I said, I'm a newbie. This is literally my first script. So it probably makes no sense. But if anyone can help me make one that works that'd be great.
I'm guessing that you'd want the boat to be able to pass on the tiles it normally could AND any tiles with region id 1. If so, this should do the trick:
If you want it so the boat can ONLY pass on tiles with region id 1, then change the '||' to '&&'.
class Game_Map def boat_passable?(x, y) return check_passage(x, y, 0x0200) || region_id(x, y) == 1 end end
author=karins_soulkeeper
I'm guessing that you'd want the boat to be able to pass on the tiles it normally could AND any tiles with region id 1. If so, this should do the trick:class Game_Map def boat_passable?(x, y) return check_passage(x, y, 0x0200) || region_id(x, y) == 1 end end
If you want it so the boat can ONLY pass on tiles with region id 1, then change the '||' to '&&'.
Thank you so much! :D
I really appreciate the help. :)
Pages:
1















