If you like, you can PM me the whole script so that I can check it.
Alois

Thanks for this, it's shorter, and also it's the solution of the puzzle. The issue with goTo() imo is that monster go to coordinates AND facing of the floor_trigger. This explains that some blocks works and others not: I change the facing of floor_trigger and the issue disappears. It explains also why I have observed a second phase in turning movement: after turnTowardsParty(), the first action goTo(ft) is done a second time to align facing of the monster with the floor_trigger!alois wrote:Consider also using "monster.go.brain:seek(24,17)" as a faster way to send the monster to (24,17) (i.e.: you do not need floor triggers). Once the monster is arrived at destination, the "seek" part is no longer called, so that the "here" part can be omitted.
If you like, you can PM me the whole script so that I can check it.
Alois
Code: Select all
if posX==24 and posY==17 and fac==1 and acted~=8
then
monster.go.brain:seek(23,18)
if monster.go.x==23 and monster.go.y==18 then
monster.go.brain:turnTowardsParty()
if monster.go.facing==(fac+2)%4 then
acted=8
end
end
end