Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Shane 'ProgZmax' Stevens on Sun 02/09/2007 22:56:55

Title: Bug: 'When Player Walks off Region' Won't Trigger with Block/Non-Block Walk.
Post by: Shane 'ProgZmax' Stevens on Sun 02/09/2007 22:56:55
I just noticed an odd bug with regions.  If you do a blockable (or non) walk off a region the 'when player walks off region' interaction never triggers.  I know it can't happen during the walk (unless you put in some code to have it break the walkcycle when they stepped off of it, which would work), but it's something that should certainly be queued to happen after the walk finishes.  A Nonblock walk with Wait() seems to work sometimes, though it's a bit dodgy.  It's something I think would be good to fix since you might want to force the player off a pressure plate and have something happen.
Title: Re: Bug: 'When Player Walks off Region' Won't Trigger with Block/Non-Block Walk.
Post by: Pumaman on Sun 02/09/2007 23:42:10
While in a blocking situation, various script calls queue up, such as repeatedly_execute, Player Walks On Region, etc. Because no event has a higher priority than any others, your Walks Off Region event is probably being displaced by a few rep_execs coming along.

It's an interesting point, I'm not sure what they best way forward is.
Title: Re: Bug: 'When Player Walks off Region' Won't Trigger with Block/Non-Block Walk.
Post by: Radiant on Mon 03/09/2007 08:05:39
What I would do in this case is moving the region code to Repeatedly_execute_always.