MMD_PRC8/_module/nss/0c_if_identify.nss
Jaysyn904 d77404f157 2025/07/15 Update
Added PEPS AI.
Updated module name.
Set all henchmen to have a random race &/or class based name using a custom version of Markshire's Nomeclature scripts, as well as appearance.
Set Constructs, Undead, Outsiders & Elementals to not require food or drink.
Full compile.
2025-07-15 22:19:46 -04:00

18 lines
792 B
Plaintext

/*//////////////////////////////////////////////////////////////////////////////
Script: 0c_if_identify
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Text Appears When script that checks to see if the henchmen has a better lore
skill than the speaker.
Also checks AI_IDENTIFY_ON to see if the server wants them to help.
*///////////////////////////////////////////////////////////////////////////////
#include "0i_associates"
int StartingConditional()
{
object oHenchman = OBJECT_SELF;
if (!AI_IDENTIFY_ON && !ai_CanISpeak (oHenchman)) return FALSE;
int nHenchmanLore = GetSkillRank(SKILL_LORE, oHenchman);
int nMasterLore = GetSkillRank(SKILL_LORE, GetMaster(oHenchman));
return (nHenchmanLore > nMasterLore);
}