23 lines
481 B
Plaintext
23 lines
481 B
Plaintext
#include "faction_inc"
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
if (GetMaster(oPC) != OBJECT_INVALID || !GetIsPC(oPC))
|
|
return;
|
|
|
|
|
|
int nFaction = fctn_GetFaction(oPC);
|
|
|
|
location lJump;
|
|
|
|
if (nFaction == ANPH_FACTION_NONE)
|
|
lJump = GetLocation(GetObjectByTag("ChooseSideLocation"));
|
|
else
|
|
lJump = fctn_GetFactionDreamLocation(nFaction);
|
|
|
|
AssignCommand(oPC, ClearAllActions());
|
|
AssignCommand(oPC, JumpToLocation(lJump));
|
|
}
|
|
|