PRC8/trunk/psionics/psi_ac_conv_sav1.nss

17 lines
807 B
Plaintext
Raw Normal View History

// Save the AC to slot 1
#include "psi_inc_ac_const"
const string sSlotToUse = "1";
void main()
{
object oPC = GetPCSpeaker();
SetLocalInt(oPC, ASTRAL_CONSTRUCT_LEVEL + sSlotToUse, GetLocalInt(oPC, ASTRAL_CONSTRUCT_LEVEL + EDIT));
SetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS + sSlotToUse, GetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS + EDIT));
SetLocalInt(oPC, ASTRAL_CONSTRUCT_RESISTANCE_FLAGS + sSlotToUse, GetLocalInt(oPC, ASTRAL_CONSTRUCT_RESISTANCE_FLAGS + EDIT));
SetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_TOUCH_FLAGS + sSlotToUse, GetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_TOUCH_FLAGS + EDIT));
SetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_BOLT_FLAGS + sSlotToUse, GetLocalInt(oPC, ASTRAL_CONSTRUCT_ENERGY_BOLT_FLAGS + EDIT));
}