PWE_PRC8/_module/nss/ls_kehaar_ude.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

23 lines
568 B
Plaintext

//Script by Lilac Soul aka Carsten Hjorthoj
//Goes on UDE of placeable stone. If event 2001 is signaled
//one in three effects are applied to the placeable.
void main()
{
int nNum=GetUserDefinedEventNumber();
if (nNum==2001)
{
int nSpell;
int nSpell1=VFX_IMP_DIVINE_STRIKE_FIRE;
int nSpell2=VFX_FNF_SUNBEAM;
int nSpell3=VFX_IMP_LIGHTNING_M;
int nRand=d3();
if (nRand==1) nSpell=nSpell1;
else if (nRand==2) nSpell=nSpell2;
else nSpell=nSpell3;
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(nSpell), OBJECT_SELF);
}
}