Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 18:13:22 -04:00
parent 684ef76c20
commit 499aba4eb3
5734 changed files with 4843758 additions and 0 deletions

29
_module/nss/cb_yield.nss Normal file
View File

@@ -0,0 +1,29 @@
int nUser=GetUserDefinedEventNumber();
void main()
{
switch (nUser)
{
case 1006: //on damaged
int nowHP=GetCurrentHitPoints(OBJECT_SELF);
int fullHP=GetMaxHitPoints(OBJECT_SELF);
if ((nowHP * 3) <= fullHP) //less than 1/3 HP
{
//surrender
SurrenderToEnemies();
object oPC=GetLastDamager();
ClearAllActions();
AssignCommand(oPC, ClearAllActions());
ActionStartConversation(oPC, "conv_orcyield");
}
break;
}
}