MMD_PRC8/_module/nss/0c_if_skillrank.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

19 lines
736 B
Plaintext

/*//////////////////////////////////////////////////////////////////////////////
Script: 0c_if_SkillRank
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Text Appears When script that checks to see if the caller's skill ranks
are above or equal to the param value.
Param:
nSkill - the skill number for the skill. See skills.2da.
nRank - the rank required.
*///////////////////////////////////////////////////////////////////////////////
#include "0i_main"
int StartingConditional()
{
string sSkill = GetScriptParam("nSkill");
if(sSkill == "") return FALSE;
int nRank = StringToInt(GetScriptParam("nRank"));
return (GetSkillRank(StringToInt(sSkill)) >= nRank);
}