Wand of destruction
From NWNWiki
Contents |
[edit] Wand of Destruction
[edit] What it does
It's make a wand of destruction. If you target the wand on a useable object, the object will simply disappear ! If you target a creature, it will fly to the upper of the screen and disappear. Try it on your caracter !
[edit] Notes
Here are the steps
Wizards Item Wizard Magic Wand
name Wand of Destruction or something else. level : 1-5 for testing but I suggest level 11 and up quality : high or godly ? select category : Special Custom1
Next you need to Edit the item's property
GENERAL TAB :
number of charges : 1 (but for testing as many as you want).
Check as plot item (cannot be destroyed ?).
PROPERTIES TAB :
erase Cast Magic Missile on the right.
On the left choose : Cast Spell ->Unique Power and add it to the right. Select that property and edit it. choose 1 use/charge.
[edit] The Script
In the main screen, Edit->Module Properties->Events on the "OnActivateItem" tab, choose edit
// Module OnActivateItem Script
//
// This script handles all the unique item properties for the module.
// Currently scripted items:
// Wand of Destruction
//
// Written By: Roli (rolandersky@yahoo.com)
// Last Updated: (09/07/02)
//
void main()
{
// General Initialization: Find what item was used
object oUsed = GetItemActivated();
// Verify if the wand is used. Put the item's tag.
if (GetTag(oUsed) == "WandofDestruction")
{
// Get the target of the wand
object target = GetItemActivatedTarget();
// Make the target disappear
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectDisappear(), target, 1.5);
}
}
