Full Version : Randomized dialogs on one NPC?
xmlspawner >>Q&A >>Randomized dialogs on one NPC?
<< Prev | Next >>
Discord- 07-04-2006
Can this be done? what I would ultimately like to accomplish, is placing various dialogs and quests on a single NPC, so that they would have a random selection of possible quests that they give to a player.
One day they would ask you to go get something, and the next time maybe ask you to kill something, etc. Like a RND dialog call or some such?
Just curious mostly.
Dis~
ArteGordon- 07-04-2006

QUOTE (Discord @ July 04, 2006 12:28 pm)
Can this be done? what I would ultimately like to accomplish, is placing various dialogs and quests on a single NPC, so that they would have a random selection of possible quests that they give to a player. One day they would ask you to go get something, and the next time maybe ask you to kill something, etc. Like a RND dialog call or some such?
Just curious mostly.
Dis~

if you have multiple entries that all branch from the same point in the dialog tree (i.e. have the same DependsOn value), then one will be selected randomly.
So if you had multiple banter entries (DependsOn = -1) then, when a player approached, then a random one would be selected. You could then use that as the starting point for a quest.
You could also add a Condition test for time of day, or day of the week, etc. to have the dialog change from day to day.
Discord- 07-04-2006
Good plan - gunna try that one out. Thanks a ton Arte
*heads off to get all complicated on the questies*