Instead of making each quest a different token, put them all into one token.
int StartingConditional()
{
object oPC = GetPCSpeaker();
string sArea = GetTag(GetArea(oPC));
string sToken = "The following quests are available in this area:\\n";
if (sArea == "area1")
{
sToken += "\\nQuest 1: Do the first thing!";
sToken += "\\nQuest 2: Do the second thing!";
sToken += "\\nQuest 3: Do the third thing!";
}
else if (sArea == "area2")
{
sToken += "\\nQuest 4: Do the fourth thing!";
sToken += "\\nQuest 5: Do the fifth thing!";
sToken += "\\nQuest 6: Do the sixth thing!";
}
else
sToken = "Sorry, there are no quests in this area.";
SetCustomToken(20000, sToken);
return TRUE;
}
Modifié par Squatting Monk, 18 novembre 2013 - 02:03 .