/* * Script generated by LS Script Generator, v.TK.0 * * For download info, please visit: * http://nwvault.ign.com/View.php?view=Other.Detail&id=1502 */ // Put this script OnUsed. // Removes all items (with the specified tag, if provided) from oCreature. void RemoveAllItems(object oCreature, string sTag=""); void RemoveAllItems(object oCreature, string sTag="") { object oItem = GetFirstItemInInventory(oCreature); while ( oItem != OBJECT_INVALID ) { if ( "" == sTag || GetTag(oItem) == sTag ) DestroyObject(oItem); oItem = GetNextItemInInventory(oCreature); } } void main() { // Get the creature who triggered this event. object oPC = GetLastUsedBy(); // Give "pillarenergy1" to the PC. CreateItemOnObject("pillarenergy4", oPC); // Have text appear over the PC's head. FloatingTextStringOnCreature("A sphere of concentrated energy gathers in your hands as you touch the pillar !", oPC); // * * * * * * // Take "pillarenergy1" from the PC. DelayCommand(60.0, RemoveAllItems(oPC, "pillarenergy4")); // Have text appear over the PC's head. DelayCommand(60.0, FloatingTextStringOnCreature("The energy disapates into thin air !", oPC)); }