[Beta 15b] Escort appeard after enterning level 2nd time
Posted: Mon Nov 22, 2010 3:59 am
Moved down stairs nothing happend I had to come back up and 2nd time i entered(climbed down) escort appeared. Nothing in logs.
Everything about ToME
https://forums.te4.org/
Code: Select all
############
#..........#
#.........>#
+..........#
#..........#
#.<........#
#..........#
#####+######
Now that is odd... I thought the same thing as DG. Where did the the portal get dropped?Graziel wrote:then why did he poped on 2nd time? i didnt open any doors and he was next to me.
Code: Select all
############
#.........&#
#.........>#
+..........#
#..........#
#@<........#
#..........#
#####+######
Code: Select all
self.map:checkEntity(tx, ty, Map.TERRAIN, "block_move", self.actor, nil, true)
Code: Select all
-- Open doors
if self.door_opened and e.open_door and act then
if self.door_player_check then
if e.player then
Dialog:yesnoPopup(self.name, self.door_player_check, function(ret)
if ret then game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened]) end
end, "Open", "Leave")
end
else
game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened])
end
return true
elseif self.door_opened and not couldpass then
return true
elseif self.door_opened and couldpass and not e.open_door then
return true
end
Code: Select all
elseif self.door_opened and couldpass and e.open_door then
return false
end
Code: Select all
-- Open doors
if self.door_opened then
-- Blocks move if actor cannot open it
if not e.open_door then
return true
end
-- If we are acting, actually open them
if act then
if self.door_player_check then
if e.player then
Dialog:yesnoPopup(self.name, self.door_player_check, function(ret)
if ret then game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened]) end
end, "Open", "Leave")
end
else
game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened])
end
return true
-- If we are just testing
elseif couldpass then
return false
else
return true
end
end