generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
43
_module/nss/tal_roguestart.nss
Normal file
43
_module/nss/tal_roguestart.nss
Normal file
@@ -0,0 +1,43 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Talus Menu on Rest
|
||||
// tal_roguestart
|
||||
// OPW Integration and Clean Up By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Used in Rest Menu Conversation
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
location lTarget=GetLocation(oPC);
|
||||
object oTarget = GetFirstObjectInShape(SHAPE_SPHERE, 10.0f, lTarget, TRUE, OBJECT_TYPE_CREATURE);
|
||||
int n=0;
|
||||
while (n<7)
|
||||
{
|
||||
if(GetIsObjectValid(oTarget))
|
||||
{
|
||||
if(GetIsObjectValid(oTarget))
|
||||
{
|
||||
SetLocalObject(GetPCSpeaker(),"targ"+IntToString(n),oTarget);
|
||||
SetCustomToken(7000+n,GetName(oTarget));
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalString(GetPCSpeaker(),"targ"+IntToString(n),"none");
|
||||
SetCustomToken(7000+n,"[Empty] ");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalString(GetPCSpeaker(),"targ"+IntToString(n),"none");
|
||||
SetCustomToken(7000+n,"[Empty] ");
|
||||
}
|
||||
n++;
|
||||
oTarget = GetNextObjectInShape(SHAPE_SPHERE, 10.0f, lTarget, TRUE, OBJECT_TYPE_CREATURE | OBJECT_TYPE_DOOR | OBJECT_TYPE_PLACEABLE);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
Reference in New Issue
Block a user