Lankhmar_PRC8/_module/nss/conv_move_raft2.nss

32 lines
716 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
void main()
{
object oPC = GetPCSpeaker();
//Move individual to new location
location lNewLocation = GetLocation(GetObjectByTag("WP_Raft_Lankh"));
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");
}
oTarget = GetObjectByTag("ptnwtrfnl232");
int nInt;
nInt = GetObjectType(oTarget);
DestroyObject(oTarget, 2.0);
}