generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload
This commit is contained in:
19
_mod/_module/nss/rts_it_op1.nss
Normal file
19
_mod/_module/nss/rts_it_op1.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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!"); }
|
||||
}
|
||||
Reference in New Issue
Block a user