What I'd do is put in an invalid target tag for the area transition to the temple so that although the blue highlight appears, it won't take you anywhere by default. Then what you do is have an OnAreaTransitionClick script for the door which has a script which will teleport the PC to one of the two areas depending on the status of the quest. So basiaclly, something like this:
void main()
{
object oPC = GetClickingObject();
if (GetLocalInt(oPC, "APPROPIATE_VARIABLE_NAME_HERE") ==1) // Or whatever number
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("WAYPOINT_TAG_HERE"))));
}
else
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("OTHER_WAYPOINT_TAG_HERE"))));
}
}
As you may have guessed, you're going to need to put two waypoints with different tags where the player can end up by using the transition. After the quest's completion, you will want to set the local integer variable that is used in the script to the number required to make the script take you to the other area - namely "1" in the above example.
Modifié par C Writer, 19 août 2010 - 11:27 .