54 lines
1.8 KiB
Plaintext
54 lines
1.8 KiB
Plaintext
|
//::///////////////////////////////////////////////////////////////////////////
|
||
|
//:: Name Stunning Force template test script
|
||
|
//:: FileName mut_t_stunforce.nss
|
||
|
//:: Copyright (c) 2022 NWNDS
|
||
|
//::///////////////////////////////////////////////////////////////////////////
|
||
|
/*
|
||
|
Stunning Force (Mental)
|
||
|
The character releases a mental blast of force in a cone-shaped burst. The range is 25 feet +5 feet per MPS modifier. All living
|
||
|
creatures in the area of effect that fail a Mental Defence save are staggered for 1d6 rounds. Once he has used this power, the mutant
|
||
|
cannot use it again for three hours.
|
||
|
|
||
|
|
||
|
[Stagger 1d6 + WIS Bonus rounds all in 25' + WIS Bonus *5 range cone if fail 10 + 1/2 HD + WIS Bonus Will save, usable every 3 hours.]
|
||
|
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////////////////////////////////
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 22/03/22
|
||
|
//:://////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
|
||
|
#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_STUNNING_FORCE, oPC))
|
||
|
{
|
||
|
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||
|
}
|
||
|
|
||
|
}
|