Shargast_PRC8/_module/Chapter 2/nss/goodalignchge.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

51 lines
931 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
AdjustAlignment(oPC, ALIGNMENT_GOOD, 100);
object oTarget;
oTarget = oPC;
effect eEffect;
eEffect = EffectKnockdown();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
oTarget = oPC;
eEffect = EffectStunned();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
oTarget = oPC;
eEffect = EffectNegativeLevel(10);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
oTarget = oPC;
eEffect = EffectBlindness();
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
oTarget = oPC;
eEffect = EffectPolymorph(POLYMORPH_TYPE_CELESTIAL_AVENGER);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 5.0f);
}