30 lines
642 B
Plaintext
30 lines
642 B
Plaintext
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.1
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this OnClick or OnFailToOpen
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetClickingObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
object oCaster;
|
|
oCaster = OBJECT_SELF;
|
|
|
|
object oTarget;
|
|
oTarget = oPC;
|
|
|
|
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_METEOR_SWARM, oTarget, METAMAGIC_ANY, TRUE, 18, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
|
|
|
}
|