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

26 lines
678 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
AssignCommand(oPC, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTHAND)));
//Move individual to new location
location lNewLocation = GetLocation(GetObjectByTag("WP_Snkpasg"));
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");
}
}