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).
written Tuesday, April 6 2004 23:37Profile#0
Here's a script for a simple messenger NPC. This NPC will follow the party, at a distance specified in memory cell 4, and occasionally put up a text bubble saying "Psst! I want to talk to you!". If/when the party speaks to the NPC, a flag specified in memory cells 1 and 2 is set and the NPC reverts to standard behavior (as per basicnpc).
Pretty basic stuff, but someone who doesn't know how to script might find it useful. :)
-spdyerbytes
EDIT: Changed script to affect messenger behavior, as suggested by Isaac, depending on the value of memory cell 5. If Cell 5 is 0, the messenger follows and waits politely for the player to initiate dialog. If Cell 5 is 1, the messenger will initiate dialog as soon as he is within the distance specified in Cell 4.
written Wednesday, April 7 2004 01:00ProfileHomepage#1
Depending on the circumstance, you might want the messenger to start a conversation without the player's initiative. For example, instead of this: use this:
[ Wednesday, April 07, 2004 01:00: Message edited by: Isaac ]
-------------------- Creator of the 3D Blades of Avernum Editor for Mac. Get it at Ingenious Isaac's Illusion, my web page. Better yet, get Battle for Wesnoth, a wonderful free TBS game.Posts: 192 |
Registered: Sunday, April 4 2004 08:00
written Wednesday, April 7 2004 01:24Profile#2
Sure, that'd work. :) I just (personally) tend to hate having initiative taken away from me, as a player, unless there's a DURN good reason for it. ;) Still, I could see circumstances where there just might be a durn good reason for it. :)
When I get a few spare moments, maybe I'll code an alternative that either waits politely or interrupts, based on the value of a memory cell, and replace the script in the first post with it.
-spyderbytes
-------------------- -spyderbytesPosts: 200 |
Registered: Wednesday, March 31 2004 08:00
written Wednesday, April 7 2004 01:32ProfileHomepage#3
As an intermediate approach, Kharl in Sweetgrove starts a conversation with you, saying only that he wants you to come and talk to him. Unfortunately, since he does this every time I enter town, it's quite annoying. My approach at least takes care of that.
-------------------- Creator of the 3D Blades of Avernum Editor for Mac. Get it at Ingenious Isaac's Illusion, my web page. Better yet, get Battle for Wesnoth, a wonderful free TBS game.Posts: 192 |
Registered: Sunday, April 4 2004 08:00