The scenario is that I want a mob to be able to bash someone into another room, I however don't want that to be possible if the door to that room is closed. Right now with my current setup, it will bash them (%teleport%) them into the room regardless if the door is open or closed. I have tried to do a eval room but it's not working and crashing the game:
Code:
eval target %room.west%
if %room.west(DOOR)%
if %actor.affect(CHARM)%
%send% %actor% Roland bashes you with his shield, sending you flying.
%echoaround% %actor% Roland bashes %actor.name% and sends %self.himher% flying.
%teleport% %actor% 979
break
end
eval target %room.west%
if %room.west(DOOR)%
if !%actor.affect(CHARM)%
%send% %actor% Roland bashes you with his shield, sending you flying.
%echoaround% %actor% Roland bashes %actor.name% and sends %self.himher% flying.
%teleport% %actor% 979
%force% %actor% look
%send% %actor% You land into the room with a thud.
%echoaround% %actor% %actor.name% comes flying into the room and lands with a thud.
break
end
eval target %room.west%
if %room.west(DOOR CLOSED)%
dg_cast bash
%send% %actor% Roland bashes you with his shield, sending you flying.
%echoaround% %actor% Roland bashes %actor.name% and sends %self.himher% flying.
break
end
default
break
done
set already_fighting 1
global already_fighting
end