void main() { //:://///////////////////////////////////////////// //:: Universal Lever //::////////////////////////////////////////////// /* To use this script, three things must be done. 1) Either tag the doors you want URRDOOR### or rename URRDOOR to what you want, but ensure the door tag has ### at the end 2) Name your lever(s) anything you want, and add ### to the end of it. 3) Add this script to the onused even of the lever. NOTE: ### means three digits (000, 001, 023, 123, ect). */ //::////////////////////////////////////////////// //:: Created By: Mecha Dude //:: Created On: 20030216 //::////////////////////////////////////////////// string sDoor="URRDOOR"; string sLever=GetTag(OBJECT_SELF); string sAdder=GetStringRight(sLever,3); string sFinal=sDoor + sAdder; object oDoor=GetObjectByTag(sFinal); if(GetLocalInt(OBJECT_SELF,"DoOnce") == 0) { ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE,3.0); SetLocked(oDoor, FALSE); ActionOpenDoor(oDoor); SetLocalInt(OBJECT_SELF,"DoOnce",1); SpeakString(".....OPENING...DOOR.....DOOR..IS......OPEN...."); } }