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.
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Power Attack - Quickselect
|
|
//:: prc_powatk_qslt
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Sets power attack to the value of the selected
|
|
quickselection.
|
|
Or stores the current power attack level in
|
|
the selected quickselection if Change Quickselect
|
|
has been used.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Ornedan
|
|
//:: Created On: 22.05.2005
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_alterations"
|
|
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
|
|
// Check what we are supposed to do
|
|
if(GetLocalInt(oPC, "ChangePowerAttackQuickselect"))
|
|
{// Change the quickselection
|
|
int nVal = GetLocalInt(oPC, "PRC_PowerAttack_Level");
|
|
SetPersistantLocalInt(oPC, "PRC_PowerAttackQuickselect_" + IntToString(PRCGetSpellId()), nVal);
|
|
DeleteLocalInt(oPC, "ChangePowerAttackQuickselect");
|
|
// Quickselection set to
|
|
SendMessageToPC(oPC, GetStringByStrRef(16824182) + " " + IntToString(nVal));
|
|
}
|
|
// Change the augmentation level
|
|
else
|
|
{
|
|
int nVal = GetPersistantLocalInt(oPC, "PRC_PowerAttackQuickselect_" + IntToString(PRCGetSpellId()));
|
|
SetLocalInt(oPC, "PRC_PowerAttack_Level", nVal);
|
|
|
|
// Run the power attack applying script
|
|
ExecuteScript("ft_poweratk", oPC);
|
|
}
|
|
} |