PRC8/nwn/trunk/spells/sp_ct_start.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

17 lines
519 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
// Get the target's name and set it as the approrpriate custom item.
SetCustomToken(101, GetName(GetLocalObject(oPC, "SP_CREATETATOO_TARGET")));
// Get the caster level and calculate SR from that and set it as the
// appropriate conversation custom item.
int nCasterLevel = GetLocalInt(oPC, "SP_CREATETATOO_LEVEL");
int nSR = 10 + (nCasterLevel / 6);
string s = IntToString(nSR);
SetCustomToken(102, s);
return TRUE;
}