Question/Suggestion - Disable walk-to

Started by am, Sat 03/05/2003 23:01:39

Previous topic - Next topic

am

I have my character become "unable to move" at certain points in the game, this is done by disabeling the walk curser (and also the use curser), however, when there is a walk-to point in the room and the character is talking to that area it still moves.

Is there a way to prevent the character from moving (this does not happen at a specific place, but may happen anywhere in the game)?

If not the I suggest adding DisableWalk-to and EnableWalk-to script commands

Andail

Maybe it's not a very smooth way, but you could disable the walkable areas, and the character wouldn't be able to move at all

You could also program it using global int, that prevented your mous clicks to be carried out

am

Preventing the clicks from working isn't good because I need them to work, only not to walk.

Is there a way to know (in the script) how many walkable areas are there? As I said this can happen anywhere in the game

Pumaman

Interesting point.

To workaround it for now, just disable all 14 walkable areas - if one doesn't exist on the current screen, it just won't do anything.

Spyros

To make it easy make this global function
function RemoveAllWalkable(){
int area=1;
while area<15 {
RemoveWalkableArea(area);
area++;
}

}

and import it in the room header

SMF spam blocked by CleanTalk