Download - 80sgaming.org

Transcript
person will sell. (Prices are set in the object editor) All merchants will also offer to buy back items at a lower rate. VAR-MENU
is similar; with a menu, you give settings like "Set B to 7 for $15." TERMINATE can end a
conversation immediately; maybe you had offended the person. ATTACK can be used to stop conversing and attack the player
(if you said something really bad). GIVEITEM will simply give the player an item for free -- just one item, with no menu or
price. SETV will simply set a variable -- no menu, no price.
The various branching options, however, aren't quite as straight-forward. GOTO* will jump to another topic. The topics must be
named in a special way. They must be named with a star and a number, anything from *0 to *255. The GOTO* command, then,
can jump to a specific topic (GOTO*7) or to one determined by a variable (GOTO*B would jump to topic *2 if B=2, or topic *1
if B=1, etc.) With this technique, a person could remember talking to you before by setting and using a variable. Or it could
appear as if other people are talking about you to each other: one person could do SETV:B=4 and another person could have
GOTO*B.
The final option, MACRO, is rather straightforward; it simply runs a macro. You could have a macro set a variable to a random
number, and then use GOTO* to jump to that random setting; this would give truly random responses. Or you could have a
macro do things that the other commands can't; a trainer might have a macro that increases your weapon skill and charges you
some money. Someone might demand a certain item from the player, and use MACRO and GOTO* to determine if they have it
and respond accordingly. A travel agent might even have a macro that changes the player's map location entirely. (Note: the QA
macro command won't work from dialogue macros.)
“Small Talk” Dialogues
Sometimes you want NPCs that just respond by making “small talk”, random lines like “Some weather we're having!” that aren't
plot-critical, but allow you to have extra people running adding to the atmosphere without being mute or requiring the tedious
work of creating dialogues and macros to generate random quick responses. To make a “small talk” dialogue, just create a text
file in the adventure folder: TALKxxx.TXT, where “xxx” is the dialogue number. For example, to make dialogue #201 into
“small talk”, create a text file called TALK201.TXT, and put as many lines into the file as you like:
Hey,
Nice
Stop
What
how's it going?
weather we're having?
me if you've heard this one,/a troll and an orc go into a bar...
are you looking at?
Note the slash in the third line: this splits the response into two lines (the maximum.) Each time you talk to an NPC with this
dialogue, it will pick a random line from the text file, and use it as a quick response. The response will be displayed in the
bottom area of the regular screen; the screen does not have to clear for small talk dialogues.
Small talks override regular dialogues; if there were a dialogue 201 already, it would be ignored in favor of the small talk file.