Added PEPS AI

Added PEPS AI.
Full compile.
Reorganized repository.
This commit is contained in:
Jaysyn904
2025-07-28 12:49:34 -04:00
parent b831afe171
commit ab2fc1d732
5040 changed files with 71106 additions and 8200 deletions

View File

@@ -0,0 +1,28 @@
// Petrify any nearby statues
void main()
{
object oStatue = GetNearestObjectByTag("GLOR_STATUE");
effect eStone = EffectPetrify();
int n = 1;
float fDistance;
while(oStatue != OBJECT_INVALID)
{
fDistance = GetDistanceBetween(OBJECT_SELF, oStatue);
if(fDistance >= 35.0)
{
return;
}
if(GetLocalInt(oStatue, "IMMUNE") == 0)
{
SetAILevel(oStatue, AI_LEVEL_HIGH);
SetLocalInt(oStatue, "X1_L_IMMUNE_TO_DISPEL", 10);
AssignCommand(oStatue, ActionPlayAnimation(ANIMATION_FIREFORGET_TAUNT));
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eStone, oStatue));
DelayCommand(1.0, SetAILevel(oStatue, AI_LEVEL_VERY_LOW));
//SetPlotFlag(oStatue, TRUE);
}
n++;
oStatue = GetNearestObjectByTag("GLOR_STATUE", OBJECT_SELF, n);
}
}