Jaysyn904 639e995f3f More mutation test scripts
More mutation test scripts.
2022-03-20 21:22:51 -04:00

55 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//::///////////////////////////////////////////////////////////////////////////
//:: Name Force Barrier template test script
//:: FileName mut_t_forcebarr.nss
//:: Copyright (c) 2022 NWNDS
//::///////////////////////////////////////////////////////////////////////////
/*
Force Barrier (Mental)
The mutant is able to create an invisible wall (force field) at a distance of up to 25 feet away, plus 5 feet per MPS modifier point. The
maximum size (height and length) of the barrier is 100 cubic feet plus 50 cubic feet per MPS mod. The barrier is not more than 6” thick,
but has a Hardness and Energy Resistance of 10. It has a maximum of 50 HPs plus 5 HPs per MPS mod, and cannot be penetrated
until destroyed or cancelled. If the mutant cancels the barrier (or if destroyed), it regains 10 HPs per hour, until reactivated. It cannot be
reactivated with less than 10 hp
[Wall of Force (3 + WIS Bonus / 2 uses 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_FORCE_BARRIER, oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}