Jump to content


Gloin1245

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

Posts I've Made

In Topic: Why can't heroes use their own special abilities?

01 January 2022 - 12:01 PM

You'll need to add to the object's code something like this:
 
 
Behavior = AISpecialPowerUpdate <A fitting name>
    CommandButtonName = <The Ability Command Button's name>
    SpecialPowerAIType = <An ENum, , look at similar powers for reference.>
    SpecialPowerRadius = <a number, look at similar powers for reference.>
End
 
For example, for Aragorn's Athelas power:

 
Behavior = AISpecialPowerUpdate AragornElendilAI
    CommandButtonName = Command_SpecialAbilityElendil
    SpecialPowerAIType = AI_SPECIAL_POWER_BASIC_SELF_BUFF
    SpecialPowerRadius = 200;
End
 
Hope I helped you.

 
 

The file you need to edit for CaHs is CreateAHeroAISpecialPower.inc which can be found in the data/ini/object/creatahero folder

 
 
 
I am sorry for disturbing you. I have one more 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

In Topic: Why can't heroes use their own special abilities?

24 November 2021 - 01:47 PM

My apologies, I'd forgotten that it wasn't included in the original game. It needs to be downloaded from The 3rd Age...

 

https://www.the3rdag...tem-576?addview

 

The download link is at the bottom of the page. Once you've downloaded it, follow the instructions in the article.

 

 

Thank you so much for your time. I am grateful to both of you.


In Topic: Why can't heroes use their own special abilities?

23 November 2021 - 09:59 PM

The file you need to edit for CaHs is CreateAHeroAISpecialPower.inc which can be found in the data/ini/object/creatahero folder

 

I looked for the file inside the .ini

But I couldn't find it.

Can you help me find it?

 

 

I found these.

 

data/ini/object/creatahero/creatahero.ini

data/ini/object/creatahero/creataheroanims.inc

data/ini/object/creatahero/creataheroarmorupgrades.inc

data/ini/object/creatahero/creataheroattributemodifiers.inc

data/ini/object/creatahero/creataheroaudi.inc

data/ini/object/creatahero/creataherodesign.inc

data/ini/object/creatahero/creataherodrawmodules.inc

data/ini/object/creatahero/creataheromodelconditionupgrades.inc

data/ini/object/creatahero/creataheromodels.inc

data/ini/object/creatahero/creataheroobjects.inc

data/ini/object/creatahero/creataheropowers.inc

data/ini/object/creatahero/creataheroreaction.inc

data/ini/object/creatahero/creataheroremoveupgradeupgrades.inc

data/ini/object/creatahero/creataherorespawn.inc

data/ini/object/creatahero/creataheroweaponupgrades.inc

data/ini/object/creatahero/creataamountedheroanims.inc


In Topic: Why can't heroes use their own special abilities?

23 November 2021 - 11:18 AM

I have no experience in CaHs, but I can answer your second question

go to skirmishaidata.ini located in data\ini\default

search with control+f for HeroBuildOrder and add your hero to the list for whatever faction you want him to be

 

Thank you for your answer. But their names are already on the list. Could this problem be related to the map? Because on some maps, heroes appear more.

 

 

skirmishaidata.ini

HeroBuildOrder = ElvenGaladriel_RingHero DwarvenGimli DwarvenDain DwarvenGloin
 
 
 
I reduced the cost of heroes. (from gamedata) But another problem arose.
For example, I made the price of Gimli 800. This time, the AI started Gimli at Level 1 after he died. 
Gimli was Level 5 when he died. But it started again at level 1. 
When the Level 1 Gimli died, the Level 5 Gimli was born again.
After he died too, the AI didn't spawn heroes.

In Topic: Why can't heroes use their own special abilities?

22 November 2021 - 04:56 PM

 

Nesnenin koduna şunun gibi bir şey eklemeniz gerekecek:

 

 
Behavior = AISpecialPowerUpdate <Bir uydurma adı>
    CommandButtonName = <Yetenek Komut Düğmesinin adı>
    SpecialPowerAIType = <Bir ENum, , referans için benzer güçlere bakın.>
    SpecialPowerRadius = <bir sayı, referans için benzer güçlere bakın.>
Son
 
Örneğin, Aragorn'un Athelas gücü için:
 
Behavior = AISpecialPowerUpdate AragornElendilAI
    CommandButtonName = Command_SpecialAbilityElendil
    SpecialPowerAIType = AI_SPECIAL_POWER_BASIC_SELF_BUFF
    ÖzelGüç Yarıçapı = 200;
Son
 
Umarım sana yardımcı olmuşumdur.

 

 

 

It worked. endless thanks. I am thankful to you. I have a few more questions.
 
1- How can I do this for Create a Hero? For example: I added Athelas and Word of Power abilities to my dwarf hero (CAH). But the AI does not use both these abilities and its own abilities. So I want my dwarf hero (CAH) to use both Word of Power and Earthsaker (his own power). Why doesn't AI use these capabilities for CAH?
 
 
2- The heroes of the artificial intelligence in the game do not respawn after they die. What do I need to do to make the heroes respawn (after each death)?
 
I hope I was able to explain. I'm sorry for my bad english.