//put on the triggers at the end of the arcane labrynth.
void main()
{
FloatingTextStringOnCreature("worked",GetFirstPC());
object oEnter = GetEnteringObject();
object oPC = GetFirstPC();
object oTrebor = GetObjectByTag("213_trebor");
object oPCTrigger = GetObjectByTag("213_tgr_pc_golem");
object oTreborTrigger = GetObjectByTag("213_tgr_trebor_golem");
object oPCGolem = GetObjectByTag("213_pc_golem");
object oNPCGolem = GetObjectByTag("213_npc_golem");
string sEnter = GetTag(oEnter);
DelayCommand(1.0,DestroyObject(oPCTrigger));
DelayCommand(1.0,DestroyObject(oTreborTrigger));
AssignCommand(oPC,ClearAllActions(TRUE));
AssignCommand(oTrebor,ClearAllActions(TRUE));
AssignCommand(oPCGolem,ClearAllActions(TRUE));
AssignCommand(oNPCGolem,ClearAllActions(TRUE));
if (GetIsObjectValid(oTrebor))
{
FloatingTextStringOnCreature("oTrebor Valid",GetFirstPC());
}
if (GetIsObjectValid(oPCGolem))
{
FloatingTextStringOnCreature("oPCGolem Valid",GetFirstPC());
}
if (GetIsObjectValid(oNPCGolem))
{
FloatingTextStringOnCreature("oNPCGolem Valid",GetFirstPC());
}
if (sEnter=="213_pc_golem")
{
FloatingTextStringOnCreature("pc golem fired",GetFirstPC());
// AssignCommand(oEnter,ClearAllActions(TRUE));
DelayCommand(2.0,AssignCommand(oPC,ActionStartConversation(oPC,"213_won_labrynth",FALSE,FALSE,TRUE)));
}
if (sEnter=="213_npc_golem")
{
FloatingTextStringOnCreature("npc golem fired",GetFirstPC());
// AssignCommand(oEnter,ClearAllActions(TRUE));
DelayCommand(2.0,AssignCommand(oPC,ActionStartConversation(oPC,"213_lost_labrynth",FALSE,FALSE,TRUE)));
}
}
Modifié par M. Rieder, 10 janvier 2012 - 04:01 .





Retour en haut






