18 lines
622 B
Plaintext
18 lines
622 B
Plaintext
//based on Lilac Soul's script gen with a few additions :)
|
|
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
if (!GetIsPC(oPC)) return;
|
|
effect eEffect;
|
|
eEffect = EffectDamage(d10(20), DAMAGE_TYPE_FIRE, DAMAGE_POWER_NORMAL);
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
SetLocalInt(oPC,"Burn_Baby",1);
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), oTarget);
|
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M), GetLocation(oTarget));
|
|
}
|
|
|