136
Scripting Board / Re: Code related error perhaps?
« on: March 03, 2008, 04:43:17 am »
It seemed as best I can tell to be related to somehow on 4D this works:
if %inroom.north% && %inroom.north(vnum)% != %from_room%
but this doesn't:
if %nroom.north(vnum)% && %nroom.north(vnum)% != %sroom%
or when those variables get put back to what they really are for readability:
if %self.room.north% && %self.room.north(vnum)% != %self.room.vnum% (old vnum before moving)
works and
if %self.room.north(vnum)% && %self.room.north(vnum)% != %self.room.vnum% (old vnum before moving)
which would make me thinbk that %self.room.north(vnum)% doesn't work, except both if checks use it, mine just used it twice instead of once.
if %inroom.north% && %inroom.north(vnum)% != %from_room%
but this doesn't:
if %nroom.north(vnum)% && %nroom.north(vnum)% != %sroom%
or when those variables get put back to what they really are for readability:
if %self.room.north% && %self.room.north(vnum)% != %self.room.vnum% (old vnum before moving)
works and
if %self.room.north(vnum)% && %self.room.north(vnum)% != %self.room.vnum% (old vnum before moving)
which would make me thinbk that %self.room.north(vnum)% doesn't work, except both if checks use it, mine just used it twice instead of once.