Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
/*
Determines the course of action to be taken
on a user defined event.
*/
#include "hc_inc"
#include "anph_inc"
#include "anph_persist_inc"
void main()
{
int nUser;
nUser = GetUserDefinedEventNumber ();
// SpeakString("Ouch, that hurts - " + IntToString (nUser));
/* Damaged */
if(nUser == 1006)
{
string sTeam;
object oPC;
object oMarker;
int nMaxHP = GetMaxHitPoints();
int nCurrHP = GetCurrentHitPoints();
if((nCurrHP * 3) <= nMaxHP)
{
oMarker = GetObjectByTag (GetTag (OBJECT_SELF) + "Marker");
SetAnphString (GetTag (OBJECT_SELF) + "_team", "");
oPC = GetNearestCreature (CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
SpeakString ("OK, OK, we give already!");
ClearAllActions();
// AnphSurrender (OBJECT_SELF, oPC);
SurrenderToEnemies();
//AssignCommand(GetLastAttacker(), ClearAllActions());
// * SHOULDN'T HAVE TO DO THIS
//SetIsTemporaryEnemy(GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC));
//SetLocalInt(OBJECT_SELF,"Generic_Surrender",1) ;
SpeakOneLinerConversation();
//SetLocalInt(OBJECT_SELF,"NW_L_DOTHISONCE",1);
}
}
}