4StarGeneral
Member
I'm new here and haven't been able to go through all the forums, but I have been trying to use terrain tags to have boats only moveable on water then stop if there is land or shallow water. Here is what I was trying for a code...
This way I was trying to have terrain with a tag of 2 be passable by only those 2 characters. It doesn't come up with any errors it just doesn't work. I can tell this is probably a completely wrong way of doing it...
Please help.
Code:
def passable?(x,y,d)
(...)
elsif @terrain_tags = 2
if @character = 10 or #number character that is a canoe
@character = 11 #number character that is a boat
end
return true
This way I was trying to have terrain with a tag of 2 be passable by only those 2 characters. It doesn't come up with any errors it just doesn't work. I can tell this is probably a completely wrong way of doing it...
Please help.