Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1001 2021-11-23 01:10:25

Rangi
Administrator
Registered: 2016-05-09
Post 981/981

Re: Pokémon Polished Crystal 2.2.0

ILuvChinPokomon wrote:

Rangi can you please tell me how you accomplished this? What files did you edit and what code did you use? I'm making a romhack of Crystal for myself and I'd like to improve the AI. Can I just copy/paste what you did?

See github.com/pret/pokecrystal/wiki/Remove-the-25%25-failure-chance-for-AI-status-moves

Offline

#1002 2021-11-23 02:07:59

ILuvChinPokomon
Member
Registered: 2020-06-18
Post 16/16

Re: Pokémon Polished Crystal 2.2.0

Rangi wrote:
ILuvChinPokomon wrote:

Rangi can you please tell me how you accomplished this? What files did you edit and what code did you use? I'm making a romhack of Crystal for myself and I'd like to improve the AI. Can I just copy/paste what you did?

See github.com/pret/pokecrystal/wiki/Remove-the-25%25-failure-chance-for-AI-status-moves

Awesome! Thanks!

Also, I had a question about the AI modifications you made to the attributes file. You've got them reading as the following:

Cal
db MAX_POTION, 0 ; items
db 25 ; base reward
dw AI_BASIC + AI_SETUP + AI_TYPES + AI_SMART + AI_OPPORTUNIST + AI_AGGRESSIVE + AI_CAUTIOUS + AI_STATUS + AI_RISKY
dw CONTEXT_USE + SWITCH_OFTEN

By contrast, the standard setup in the vanilla dissassembly is:

Cal
db MAX_POTION, 0 ; items
db 25 ; base reward
dw AI_BASIC | AI_SETUP | AI_SMART | AI_AGGRESSIVE | AI_CAUTIOUS | AI_STATUS | AI_RISKY
dw CONTEXT_USE | SWITCH_SOMETIMES


Could you tell me what the significance is of using the "+" sign as opposed to the "|" symbol? Also, I noticed you've added AI_TYPES and AI_OPPORTUNIST, does that make the AI better, and does the order matter? Could I just copy/paste these changes to the attributes.asm into a standard Crystal dissassembly and achieve the same outcome?

Last edited by ILuvChinPokomon (2021-11-23 02:13:25)

Offline

Board footer

Powered by FluxBB