Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
/*:://////////////////////////////////////////////
//:: Spell Name Forcecage: On Enter
//:: Spell FileName PHS_S_ForcecageA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
Needs 4 placeables for the bars, and an AOE within the centre of it. If
any of the bars are destroyed (via. disintegration ETC), it means the entire
spell collapses.
The AOE is plotted too, and does the correct 50% vs ranged attack consealment
as they will have to shoot through the bars.
On Enter: Only apply a 50% concealment versus ranged attacks.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Heartbeat checks the caster, not here. Here doesn't need the caster!
// Declare major variables
object oTarget = GetEnteringObject();
// Declare effects
effect eDur = EffectConcealment(50, MISS_CHANCE_TYPE_VS_RANGED);
// Fire cast spell at event for the target
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_FORCECAGE);
// Apply effects
PHS_AOE_OnEnterEffects(eDur, oTarget, PHS_SPELL_FORCECAGE);
}