24 lines
428 B
Plaintext
24 lines
428 B
Plaintext
location lTarget;
|
|
object oTarget;
|
|
|
|
//Put this on action taken in the conversation editor
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
if (GetHitDice(oPC) >= 14)
|
|
{
|
|
oTarget = GetWaypointByTag("motherentrance");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
if (GetArea(GetAreaFromLocation(lTarget))==OBJECT_INVALID) return;
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
|
|
AssignCommand(oPC, ActionJumpToLocation(lTarget));
|
|
|
|
}
|
|
}
|