Certain NPC's spawn into random areas in my mod, and they have a conversation unique to whatever area they spawn in. I use the UserDefined event of the NPC to fire the correct conversations - maybe this will give you some ideas for setting up your convos:
void main()
{
int nEvent = GetUserDefinedEventNumber();
if (nEvent == 1004)
{
object oPC = GetPCSpeaker();
object oYastiang = OBJECT_SELF;
object oArea;
oArea = GetArea(oYastiang);
string sArea = GetTag(oArea);
if (sArea == "S_raunchyrodent")
{
ActionStartConversation(oPC, "con_yastiang");
}
else if (sArea == "S_forest_lodge")
{
ActionStartConversation(oPC, "con_yastiang2");
}
else if (sArea == "S_sleepydragonpub")
{
ActionStartConversation(oPC, "con_yastiang3");
}
else if (sArea == "S_trneareastroad")
{
ActionStartConversation(oPC, "con_yastiang4");
}
else if (sArea == "S_sunset_1")
{
ActionStartConversation(oPC, "con_yastiang5");
}
}
}
Modifié par Ulo Ironbeard, 03 décembre 2010 - 04:52 .