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) { SpeakString ("You win! We stop! We stop! Yous crazy!", TALKVOLUME_TALK); ClearAllActions(); SurrenderToEnemies(); SpeakOneLinerConversation(); } } }