generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
43
_module/nss/umdjanderstatue.nss
Normal file
43
_module/nss/umdjanderstatue.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 2.3
|
||||
|
||||
For download info, please visit:
|
||||
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
|
||||
oPC = GetItemActivator();
|
||||
|
||||
AssignCommand(oPC, ClearAllActions());
|
||||
|
||||
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0f, 5.0f));
|
||||
|
||||
AssignCommand(oPC, ActionSpeakString("*You hold the statue out before you and think of the forlorn elf Jander - the statue crumbles away to nothing, but you feel an invigorating calm flow through you...*"));
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
|
||||
//Visual effects can't be applied to waypoints, so if it is a WP
|
||||
//the VFX will be applied to the WP's location instead
|
||||
|
||||
int nInt;
|
||||
nInt = GetObjectType(oTarget);
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectVisualEffect(VFX_IMP_GOOD_HELP);
|
||||
|
||||
if (nInt != OBJECT_TYPE_WAYPOINT)
|
||||
DelayCommand(3.0, ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oTarget));
|
||||
else
|
||||
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, GetLocation(oTarget)));
|
||||
|
||||
eEffect = EffectRegenerate(5, 3.0f);
|
||||
|
||||
eEffect = ExtraordinaryEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 30.0f);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user