PRC8/nwn/nwnprc/trunk/psionics/psi_ac_conv_tokn.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

42 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Astral Construct conversation custom token initializer
//:: psi_ac_conv_tokn
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 25.01.2005
//:://////////////////////////////////////////////
#include "psi_inc_ac_const"
#include "psi_inc_ac_convo"
/*
Level: <CUSTOM100>
Size: <CUSTOM101>
HP: <CUSTOM102>
Speed: <CUSTOM103>
Option slots left: <CUSTOM104>
Options selected:
Category A: <CUSTOM105>
Category B: <CUSTOM106>
Category C: <CUSTOM107>
*/
void main()
{
object oPC = GetPCSpeaker();
int nACLevel = GetLocalInt(oPC, ASTRAL_CONSTRUCT_LEVEL + EDIT);
int nFlags = GetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS + EDIT);
SetCustomToken(100, IntToString(nACLevel) + " (Base PP cost " + IntToString(nACLevel * 2 - 1) + ")");
SetCustomToken(101, GetSizeAsString(nACLevel));
SetCustomToken(102, GetHPAsString(nACLevel, nFlags));
SetCustomToken(103, GetSpeedAsString(nACLevel, nFlags));
SetCustomToken(104, IntToString(GetMaxSlotsForLevel(nACLevel, oPC) - GetTotalNumberOfSlotsUsed(oPC)));
SetCustomToken(105, GetMenuASelectionsAsString(oPC));
SetCustomToken(106, GetMenuBSelectionsAsString(oPC));
SetCustomToken(107, GetMenuCSelectionsAsString(oPC));
}