Initial Commit

Initial Commit [v1.32PRC8]
This commit is contained in:
Jaysyn904
2025-04-03 13:38:45 -04:00
parent 1213977d8c
commit b464d8da05
6922 changed files with 6176025 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
#include "NW_I0_GENERIC"
void main()
{
if(GetBehaviorState(NW_FLAG_BEHAVIOR_SPECIAL))
{
DetermineSpecialBehavior();
}
else if(!GetSpawnInCondition(NW_FLAG_SET_WARNINGS))
{
DetermineCombatRound();
}
if(GetSpawnInCondition(NW_FLAG_END_COMBAT_ROUND_EVENT))
{
SignalEvent(OBJECT_SELF, EventUserDefined(1003));
}
// Weakness Touch (25% chance)
if (GetIsPC(GetNearestSeenOrHeardEnemy()) && d4() == 1 && GetDistanceToObject(GetNearestSeenOrHeardEnemy()) < 4.0) {
ClearAllActions();
SendMessageToPC(GetNearestSeenOrHeardEnemy(), "The Green Hag tries to touch you!");
if (!FortitudeSave(GetNearestSeenOrHeardEnemy(), 13))
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectCurse(d4(2)), GetNearestSeenOrHeardEnemy(), HoursToSeconds(48));
}
}