Lankhmar_PRC8/_module/nss/conv_move_speel2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

39 lines
1013 B
Plaintext

void main()
{
//Move individual to new location
location lNewLocation = GetLocation(GetObjectByTag("WP_SPEEL"));
object oTarget;
//Since the script is called from a conversation
//determine who is moved by calling the GetPCSpeaker function
oTarget = GetPCSpeaker();
if (GetIsObjectValid(oTarget) == TRUE){
AssignCommand(oTarget,ActionJumpToLocation(lNewLocation));
}
else if (GetIsObjectValid(oTarget) == FALSE) {
SpeakString("Problem here");
}
object oSpawn;
location lTarget;
int nInt;
object oPC = GetPCSpeaker();
oTarget = GetObjectByTag("Fell");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Fell")));
oTarget = GetObjectByTag("Fell");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("Fell");
DestroyObject(oTarget, 5.0);
oTarget = GetWaypointByTag("WP_Spn_Fell2");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "fell2", lTarget);
}