Jaysyn904 e0ec0015e6 Initial upload
Initial upload
2023-09-21 20:25:34 -04:00

23 lines
576 B
Plaintext

// * script: henchman_joins
// * NPC Henchman joins PC, replacing other henchman if necessary.
// Use in [Actions Taken] tab of henchman's joining dialog line.
#include "nw_i0_henchman"
void main()
{
if (GetIsObjectValid(GetHenchman(GetPCSpeaker())) == TRUE)
{ SetFormerMaster(GetPCSpeaker(), GetHenchman(GetPCSpeaker()));
object oHench = GetHenchman(GetPCSpeaker());
RemoveHenchman(GetPCSpeaker(), GetHenchman(GetPCSpeaker()));
AssignCommand(oHench, ClearAllActions());
}
SetWorkingForPlayer(GetPCSpeaker());
SetBeenHired();
ExecuteScript("NW_CH_JOIN", OBJECT_SELF);
}