// Team Destroyed
case EVENT_TYPE_TEAM_DESTROYED:
{
int nTeam = GetEventInteger(ev, 0); // the team number that was destroyed.
object oJarl = GetObjectByTag("ast100_jarl");
object oPC = GetObjectByTag("genpl_astrid");
// Insert event-handling code here.
if (nTeam == 1)
{
WR_SetPlotFlag("plt_plt_ast100_attack", BATTLE1_DONE, 1, TRUE);
BeginConversation(oJarl, oPC);
}
if (nTeam == 2)
{
WR_SetPlotFlag("plt_plt_ast100_attack", BATTLE2_DONE, 1, TRUE);
BeginConversation(oJarl, oPC);
}
if (nTeam == 3)
{
WR_SetPlotFlag("plt_plt_ast100_attack", BATTLE3_DONE, 1, TRUE);
BeginConversation(oJarl, oPC);
}
if (nTeam == 4)
{
WR_SetPlotFlag("plt_plt_ast100_attack", BATTLE4_DONE, 1, TRUE);
//BeginConversation(oJarl, oPC);
}
break;
}
Yet the plot flags don't seem to set and the NPC never tried to initial dialogue. The script has been compiling properly, and seems to be exporting properly. (Each plot flag has a journal entry for the testing, and the NPC can't be killed.)
I'm wondering if someone could help me with this?
Modifié par jackkel dragon, 25 juillet 2010 - 07:50 .





Retour en haut






