GammaAge/_content/ga_scripts/mut_t_constrict.nss
Jaysyn904 ef4f0bb717 More mutation test scripts
More mutation test scripts.
2022-03-21 21:09:50 -04:00

49 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////////////////////////////////
//:: Name Constriction template test script
//:: FileName mut_t_constrict.nss
//:: Copyright (c) 2022 NWNDS
//::///////////////////////////////////////////////////////////////////////////
/*
Constriction (Plant)
The plant has branches, vines, or tendrils capable of grappling and constricting
an opponent. The vines grant the plant a +6 to its grapple check & a slam
attack of 1d4 damage if the plant does not already have one. Once it has
grappled a target, it may add 1d6 damage each round it maintains the grapple.
*/
//:://////////////////////////////////////////////////////////////////////////
//:: 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);
//:: Plants only
int nRace = MyPRCGetRacialType(oPC);
if(nRace != RACIAL_TYPE_PLANT
&& nRace != RACIAL_TYPE_SHRUBO
&& nRace != RACIAL_TYPE_BLOOM
&& nRace != RACIAL_TYPE_MYCO
&& nRace != RACIAL_TYPE_CULEN
&& nRace != RACIAL_TYPE_ENT
&& nRace != RACIAL_TYPE_CREEP)
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
//:: Can't get this mutation twice.
if(GetHasTemplate(MUT_CONSTRICTION, oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}