Updated Jasperre's AI

Updated Jasperre's AI to 1.4, fixed a few other coding bugs & fully compiled module.
This commit is contained in:
Jaysyn904
2021-08-30 17:31:44 -04:00
parent 2e0b5b615b
commit 1c1c90e986
404 changed files with 11239 additions and 7881 deletions

View File

@@ -1,6 +1,6 @@
/************************ [Execute Combat Action] ******************************
/*/////////////////////// [Execute Combat Action] //////////////////////////////
Filename: J_AI_DeterCombat
************************* [Execute Combat Action] ******************************
///////////////////////// [Execute Combat Action] //////////////////////////////
Fired from other scripts, this runs an actual actions.
It also contains the Pre-combat and Post-combat action events. In essense
@@ -10,10 +10,12 @@
Therefore, they only fire if the default AI is being used :-)
Do NOT mess with this file, please. :-D
************************* [History] ********************************************
///////////////////////// [History] ////////////////////////////////////////////
1.3 - AI Include only fired from here. This script is executed from others,
as the default in place of custom AI scripts.
************************* [Workings] *******************************************
1.4 - Mainly See the generic AI include file for changes. This is just
what calls DetermineCombatRound() and associated things.
///////////////////////// [Workings] ///////////////////////////////////////////
This is simple:
- We execute it if there is no other AI files.
@@ -25,11 +27,11 @@
It cleans things up, and is the only script in the whole set that has
j_inc_generic_ai in, reducing file size, and compile times. AI is more
manageable too!
************************* [Arguments] ******************************************
Arguments: See J_Inc_Generic_AI
************************* [Execute Combat Action] *****************************/
///////////////////////// [Arguments] //////////////////////////////////////////
Arguments: See J_INC_GENERIC_AI
///////////////////////// [Execute Combat Action] ////////////////////////////*/
#include "j_inc_generic_ai"
#include "J_INC_GENERIC_AI"
void main()
{
@@ -41,8 +43,12 @@ void main()
// Check: Are we imputting a target? We imputt it even if invalid
object oTarget = GetLocalObject(OBJECT_SELF, AI_TEMP_SET_TARGET);
// Speak combat round speakstring
SpeakArrayString(AI_TALK_ON_COMBAT_ROUND, TRUE);
// * Don't speak when dead. 1.4 change (an obvious one to make)
if(CanSpeak())
{
// Speak combat round speakstring
SpeakArrayString(AI_TALK_ON_COMBAT_ROUND, TRUE);
}
// Call combat round using include
AI_DetermineCombatRound(oTarget);