Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View 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;
}