Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
void main()
{
object oPC = GetClickingObject();
object oArea = GetArea(OBJECT_SELF);
//Should only run for PCs
if (!GetIsPC(oPC)) return;
//Disallow the player to proceed if they're seen or heard by any enemy
object oObject = GetFirstObjectInArea(oArea);
while (GetIsObjectValid(oObject))
{
if (!GetIsPC(oObject) && GetIsEnemy(oPC, oObject) && !GetIsDead(oObject) && (GetObjectSeen(oPC, oObject) || GetObjectHeard(oPC, oObject)))
{
FloatingTextStringOnCreature("You can't proceed until no enemy is aware of your presence!", oPC, FALSE);
return;
}
oObject = GetNextObjectInArea(oArea);
}
//Start convo
ClearAllActions();
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionStartConversation(oPC, "conv_further", TRUE, FALSE));
}