PRC8/nwn/trunk/psionics/psi_sk_chhand.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

36 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Soulknife: Change Mindblade Hand
//:: psi_sk_chhand
//::///////////////////////////////////////////////
/** @file
Changes the hand a mindblade of the single types
will be manifested to.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 04.04.2005
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "psi_inc_soulkn"
void main()
{
object oPC = OBJECT_SELF;
// Get the old setting
int nHand = GetPersistantLocalInt(oPC, MBLADE_HAND);
// Change the hand to be the opposite
if(nHand == INVENTORY_SLOT_RIGHTHAND)
{// "Your mind blade will now be manifested to off hand."
SendMessageToPCByStrRef(oPC, 16824603);
nHand = INVENTORY_SLOT_LEFTHAND;
}
else
{// "Your mind blade will now be manifested to main hand."
SendMessageToPCByStrRef(oPC, 16824604);
nHand = INVENTORY_SLOT_RIGHTHAND;
}
// Store the new value
SetPersistantLocalInt(oPC, MBLADE_HAND, nHand);
}