Fixin' Fungus
Made the Violet Fungus, Shrieker & Yellow Mold more like PnP.
This commit is contained in:
26
_module/nss/ra_t1_yelmold.nss
Normal file
26
_module/nss/ra_t1_yelmold.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Yellow Mold
|
||||
//:: RA_T1_YelMold.nss
|
||||
//:: Copyright (c) 2021 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Creates a 5m poison radius gas cloud that
|
||||
lasts for 20 rounds and poisons all creatures
|
||||
entering the area with Yellow Mold Spores
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: Sept 27, 2021
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables including Area of Effect Object
|
||||
effect eAOE = EffectAreaOfEffect(AOE_PER_FOGSTINK, "RA_T1_YelMold1", "****", "****");
|
||||
location lTarget = GetLocation(GetEnteringObject());
|
||||
int nDuration = 20;
|
||||
//Create an instance of the AOE Object using the Apply Effect function
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, RoundsToSeconds(nDuration));
|
||||
}
|
||||
|
30
_module/nss/ra_t1_yelmold1.nss
Normal file
30
_module/nss/ra_t1_yelmold1.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Yellow Mold
|
||||
//:: RA_T1_YelMold1.nss
|
||||
//:: Copyright (c) 2021 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Creates a 5m poison radius gas cloud that
|
||||
lasts for 20 rounds and poisons all creatures
|
||||
entering the area with Yellow Mold Spores
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: Sept 27, 2021
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget;
|
||||
effect ePoison = EffectPoison(46); // Yellow Mold Spores
|
||||
|
||||
oTarget = GetFirstInPersistentObject();
|
||||
while(GetIsObjectValid(oTarget))
|
||||
{
|
||||
if(!GetIsReactionTypeFriendly(oTarget))
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, ePoison, oTarget);
|
||||
}
|
||||
oTarget = GetNextInPersistentObject();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user