Aschbourne_PRC8/_module/nss/_unlock_skill1.nss

15 lines
362 B
Plaintext
Raw Normal View History

2024-06-14 10:48:20 -04:00
int StartingConditional()
{
object oPC = GetPCSpeaker();
int iSkillGain = GetLocalInt(oPC,"iSkillGain");
int iSkillBook = GetLocalInt(oPC,"iSkillBookUse");
if (iSkillBook!=0)
{
AssignCommand(oPC,DelayCommand(30.0,SetLocalInt(oPC,"iSkillBookUse",0)));
return FALSE;
}
if (iSkillGain!=0) return TRUE;
return FALSE;
}