/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Put this OnEnter
void main()
{

object oPC = GetLastUsedBy();

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
FloatingTextStringOnCreature("The gold is an illusion, it is actually a yellow mold.  A cloud of spores bursts forth when the mold is touched.", oPC, TRUE);

int nDamage;
nDamage = d4(2);
effect eEffect;
eEffect = EffectDamage(nDamage, DAMAGE_TYPE_ACID, DAMAGE_POWER_NORMAL);

ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);

object oCaster;
oCaster = OBJECT_SELF;

object oTarget;
oTarget = OBJECT_SELF;

AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_STINKING_CLOUD, oTarget, METAMAGIC_ANY, TRUE, 3, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));


DestroyObject(oTarget, 0.0);
//FloatingTextStringOnCreature("The gold is an illusion, it is actually a yellow mold.  A cloud of spores bursts forth when you touch the mold.", oPC);

}

