Following the player character

tonym
12 Jan 2010, 19:33
Hello all,

I have been poking around with Pro 4.1.1 and was wondering... Is it possible to have a character "follow" the player? For example, the player has a dog that will follow the player through a portion of the game from room to room. And in some rooms, the dog can "act" out an action, such as growling at something in the room.

Wonderjudge
13 Jan 2010, 00:45
Sure, script your exits so when the dog is in the the current room then move him to the room that you move the player to.
Or you can put some script in the after each turn phase.
Set a variable to #quest.currentroom# at the begining of the game. Then after each turn do
If Variable does not equal #quest.currentroom# then
if dog is room variable then
move dog to #quest.currentroom#
print "The dog follows you."
set variable to #quest.current room#

Wonderjudge