56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
//::///////////////////////////////////////////////////////////////////////////
|
|
//:: Name Ego Projection test script
|
|
//:: FileName mut_ego_proj.nss
|
|
//:: Copyright (c) 2022 NWNDS
|
|
//::///////////////////////////////////////////////////////////////////////////
|
|
/*
|
|
Ego Projection (Mental)
|
|
The mutant can increase any one of his own physical attributes (Dexterity,
|
|
Constitution or Strength) by using this power. The mutation or attribute
|
|
increases by twice WIS modifier (maximum 10) for 5 + WIS modifier rounds. The
|
|
power initially functions once per day. For every third level the character has
|
|
obtained they gain an additional use per day.
|
|
|
|
(Boost one physical stat by twice WIS Bonus for 5 + WIS Bonus rounds, usable
|
|
1 + HD / 3 times per day)
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////////////////////////////////
|
|
//:: Created By: Jaysyn
|
|
//:: Created On: 22/03/20
|
|
//:://////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#include "prc_alterations"
|
|
#include "prc_inc_template"
|
|
#include "prc_racial_const"
|
|
|
|
void main()
|
|
{
|
|
object oPC = OBJECT_SELF;
|
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
|
|
|
|
//:: Any living genotype except oozes, cyborgs & shapechangers
|
|
int nRace = MyPRCGetRacialType(oPC);
|
|
|
|
if(nRace == RACIAL_TYPE_CONSTRUCT
|
|
|| nRace == RACIAL_TYPE_SMLBOT
|
|
|| nRace == RACIAL_TYPE_MEDBOT
|
|
|| nRace == RACIAL_TYPE_LRGBOT
|
|
|| nRace == RACIAL_TYPE_DROID
|
|
|| nRace == RACIAL_TYPE_OOZE
|
|
|| nRace == RACIAL_TYPE_SHAPECHANGER
|
|
|| nRace == RACIAL_TYPE_CYBORG
|
|
|| nRace == RACIAL_TYPE_ELEMENTAL
|
|
|| nRace == RACIAL_TYPE_UNDEAD)
|
|
{
|
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
|
}
|
|
|
|
//:: Can't get this mutation twice.
|
|
if(GetHasTemplate(MUT_EGO_PROJECTION, oPC))
|
|
{
|
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
|
}
|
|
|
|
} |