// rts_it_op1 void main() { object oPC=GetItemActivator(); object oItem=GetItemActivated(); location lLoc=GetItemActivatedTargetLocation(); object oArea=GetArea(oPC); string sATag=GetTag(oArea); object oMod=GetModule(); object oLeader=GetLocalObject(oMod,"oTeamLead"+sATag); object oMine; if (GetIsObjectValid(oLeader)) { // valid target oMine=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_it_op1_pl",lLoc); SendMessageToPC(oPC,"If you are wise you will RUN now!!"); if (GetIsObjectValid(oMine)) DestroyObject(oItem); } // valid target else { SendMessageToPC(oPC,"This item must be used inside of a lair. Recommend it NOT be your own lair!"); } }