39 lines
804 B
Plaintext
39 lines
804 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.0
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
void main()
|
|
{
|
|
object oPC;
|
|
|
|
oPC = GetItemActivator();
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
effect eEffect;
|
|
eEffect = EffectKnockdown();
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 30.0f);
|
|
|
|
eEffect = EffectStunned();
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 30.0f);
|
|
|
|
object oSpawn;
|
|
location lTarget;
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "butterflies2", lTarget);
|
|
|
|
oTarget = GetObjectByTag("butterflies2");
|
|
|
|
DelayCommand(28.0, DestroyObject(oTarget, 0.0));
|
|
|
|
DelayCommand(8.0, AssignCommand(oPC, ActionSpeakString("wooooow, i see butterflies.")));
|
|
|
|
}
|
|
|