GammaAge/_content/ga_scripts/mut_t_mblast.nss
Jaysyn904 1428878101 More mutation test scripts
More mutation test scripts.
2022-03-21 23:19:16 -04:00

55 lines
1.9 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 Mental Blast test script
//:: FileName mut_t_mblast.nss
//:: Copyright (c) 2022 NWNDS
//::///////////////////////////////////////////////////////////////////////////
/*
Mental Blast (Mental)
The mutant can directly attack any living target within a range of 50 feet plus 5 per MPS mod. If a Mental Attack roll is successful
against the targets touch armour class, it causes non-lethal damage. The mutant accumulates 1d6 of potential energy every minute, to
a maximum of 3d6. The mutant can choose to discharge one, two, or three dice (as long as he has that much stored), adding his MPS
modifier to the total damage
(Long ranged touch attack, 3d6 + WIS Bonus Mental (Positive?) damage, 1 use restored / 3 turns)
*/
//:://////////////////////////////////////////////////////////////////////////
//:: Created By: Jaysyn
//:: Created On: 22/03/21
//:://////////////////////////////////////////////////////////////////////////
#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_MENTAL_BLAST, oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}