Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
16
trunk/spells/sp_ct_start.nss
Normal file
16
trunk/spells/sp_ct_start.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user