I'm trying to figure out some way to check the restriction on a tile from within a game. Ie, a tile can be set to be either 'blocked' or 'clear' within the CGE code, and it can be changed as well. However, I see no way to place a conditional check to see whether or not a tile is blocked or clear.
I have a method of moving a player around my game and there is a way to move to a random location. Unfortunately with a random utilization of map position, it will simply send the player to the randomly selected coordinates. If the tile the player lands on is set to be blocked then the player ends up not being able to move.
However, it has been discovered that in PoG if you land on a restricted tile and are trapped, that you can save and reload your game and PoG will then move the player to a free tile. Thus somewhere within PoG's code is a check on the tile that the player is loading on, and if it is blocked it moves the player to a free tile.
So my thinking is that since PoG was built with CGE that there has to be a way to check on this. But darned if I can find it!
Anyone have any ideas or solutions?
------------------
"But soon, soon, soon... the world will be a better place, with meadows and bunnies and fiber optics in every home..."
- Tom Dowdy, Apple Computer
------------------
(url="http://"http://www.avalon.net/~honda/pog/pogwalkthrough2a.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://www.ambrosiasw.com/cgi-bin/vftp/dl-redirect.pl/PoG_Dev_Tools_Source.sit?path=coldstone/resources&file;=PoG_Dev_Tools_Source.sit")PoG Dev Tools(/url)