Getting rid of a NPC

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: Getting rid of a NPC
Infiltrator
Member # 760
Profile #0
I'm trying to have a NPC to leave the scenario completely (aka dissappear...die...whatever..I just need him to go away :P ) after one conversation between the party and the NPC. How can I achieve this?

--------------------
"The Darkness Shall Return!"
Posts: 642 | Registered: Saturday, March 16 2002 08:00
Off With Their Heads
Member # 4045
Profile Homepage #1
There are any number of ways of doing things. One way is to use erase_char and set_flag. That gets rid of the character in the town for the moment, but as soon as the party leaves and re-enters, the character will be back. To fix this, check that flag in the town's INIT_STATE, and if the flag is set, erase_char again in the INIT_STATE, so that the party will never see this character.

There are lots of other ways, too.

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
Infiltrator
Member # 760
Profile #2
Thanks. I didn't even found the erase_char call when I looked...I must be becoming blind :)

--------------------
"The Darkness Shall Return!"
Posts: 642 | Registered: Saturday, March 16 2002 08:00