Initial upload

Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
Jaysyn904
2024-03-11 23:44:08 -04:00
parent c4b5794c59
commit 7b9e44ebbb
11454 changed files with 10436475 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
///::///////////////////////////////////////////////
//:: Creeping Doom: On Enter
//:: NW_S0_AcidFogA.nss
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Creature caught in the swarm take an initial
damage of 1d20, but there after they take
1d4 per swarm counter on the AOE.
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: May 17, 2001
//:://////////////////////////////////////////////
#include "X0_I0_SPELLS"
void main()
{
//Declare major variables
int nDamage;
effect eDam;
effect eVis = EffectVisualEffect(VFX_COM_BLOOD_REG_RED);
object oTarget = GetEnteringObject();
effect eSpeed = EffectMovementSpeedDecrease(30);
effect eVis2 = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
effect eLink = EffectLinkEffects(eSpeed, eVis2);
float fDelay;
if (GetStandardFactionReputation(STANDARD_FACTION_HOSTILE,oTarget)<40)
{
//Fire cast spell at event for the target
SignalEvent(oTarget, EventSpellCastAt(GetAreaOfEffectCreator(), SPELL_CREEPING_DOOM));
fDelay = GetRandomDelay(1.0, 1.8);
//Spell resistance check
if(GetLocalInt(oTarget,"pure_water")!=2)
{
//Roll Damage
nDamage = d6(2);
//Set Damage Effect with the modified damage
eDam = EffectDamage(nDamage, DAMAGE_TYPE_PIERCING);
//Apply damage and visuals
AssignCommand(oTarget,PlayVoiceChat(VOICE_CHAT_NEARDEATH));
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget,60.0));
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget));
SendMessageToPC(oTarget,"The air around you reeks and swarms with tiny flies. They settle on your body, crawling inside your clothes and armour, and start to feast upon your blood");
}
else
{
SendMessageToPC(oTarget,"The air around you swarms with tiny flies. They buzz around you but seem uninterested in you. They are attracted to stench and decay but seem to be repelled by the pure water you have drunk.");
}
}
}