Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nostrum on Sat 19/07/2003 19:40:31

Title: Instantly removing a character from a room
Post by: Nostrum on Sat 19/07/2003 19:40:31
I've got an NPC that I need to vanish from thin air, but it seems the only way I can have a character exit the room is to walk out, which won't work for the game... is there a command that would make a character vanish immediately? Thanks
Title: Re:Instantly removing a character from a room
Post by: Minimi on Sat 19/07/2003 20:16:28
character[CHARID].x
character[CHARID].y

see the help file character variables for more info!
Title: Re:Instantly removing a character from a room
Post by: TerranRich on Sun 20/07/2003 03:57:03
Send your non-playable character (NPC) to the "limbo room" like the bad litle boy he is.

character[WHOMEVER].room=-1;

Room -1 is a useful yet non-existant room you can use to make characters disappear from the game completely, yet still exist. :)
Title: Re:Instantly removing a character from a room
Post by: Nostrum on Sun 20/07/2003 05:42:07
Alright, thanks a lot.