Jump to content


Gloin1245

Member Since 21 Nov 2021
Offline Last Active Jan 08 2022 08:05 PM

Topics I've Started

Question about AI, Mighty Rage and Restoration powers

02 January 2022 - 06:21 PM

Greetings to all. 

 

I have a question. Normal heroes (in AI) use special abilities.However, they don't use some abilities.
 
For example:
 
1- Dain doesn't use the ''Mighty Rage'' ability.
I want Dain to heal both his own health and the health of other heroes. But it doesn't do that.
 
2- Elrond doesn't use the ''Restoration'' ability.
I want Elrond to heal both his own health and that of other heroes. But it doesn't do that.

 

 

The codes are below. Dain's Mighty Rage ability was not available in AISpecialPowers in Dain.ini.

I added the skill's codes there for the AI to use it.

But both Dain and Elrond don't heal themselves and the heroes around them.

 

 

Dain.ini

 

 

;///////////////////
; AISpecialPowers
;///////////////////
 
 
Behavior = AISpecialPowerUpdate MightyRageAI
CommandButtonName = Command_SpecialAbilityDainMightyRage
SpecialPowerAIType = AI_SPECIAL_POWER_SELFAOEHEALHEROS
End
 
 
 
Elrond.ini
 
 
;///////////////////
; AISpecialPowers
;///////////////////
 
 
Behavior = AISpecialPowerUpdate RestorationAI
CommandButtonName = Command_SpecialAbilityElrondRestoration
SpecialPowerAIType = AI_SPECIAL_POWER_SELFAOEHEALHEROS
End

Why can't heroes use their own special abilities?

21 November 2021 - 10:06 AM

Hello, I'm a new member. Sorry for not speaking English. I use translation. I have a question. The artificial intelligence in the game does'nt use the special abilities of the heroes enough. I've also added Earthshaker and Word of Power abilities to Gimli. But artificial intelligence does'nt use these abilities. So what can I do for the AI to use both the hero's own powers and the powers I added later?  For instance: So what needs to be done for artificial intelligence to use the Word Of Power of Gimli?  I don't know much about coding.