Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI remembers Party mons #2230

Merged
merged 7 commits into from
Sep 24, 2022
Merged

AI remembers Party mons #2230

merged 7 commits into from
Sep 24, 2022

Conversation

DizzyEggg
Copy link
Collaborator

As per title, AI now stores information on all the party members.
Right now it's just basic functionality. AI remembers ability, moves and item used, so if the player switches pokemon out and in, AI won't forget, that for example, player's Lanturn actually had Water Absorb and not Volt Absorb.

Once improved, this could make it easier to create more complex strategies for using moves/switching.

Here's a screenshot from the debug men
pokeemerald_01
u

@AsparagusEduardo AsparagusEduardo changed the base branch from battle_engine to master August 24, 2022 05:01
@AsparagusEduardo
Copy link
Collaborator

Fixed conflicts from changing base to master, but needs to change the icon for SPECIES_NONE in gMonIconTable to gMonIcon_QuestionMark.

@ghoulslash
Copy link
Collaborator

As discussed on discord, it may be beneficial to have another field in gBattleStruct or elsewhere, abilityOverwrite or similar, that stores abilities that overwrite existing battler's and do not overwrite the AI_PARTY data in case the player switches out/in again. This would be used in instances of Skill Swap, Role Play, Simple Beam, etc. AI_GetAbility would then read the ability from here over any other field.

@AsparagusEduardo AsparagusEduardo changed the base branch from master to dev September 10, 2022 01:33
@AsparagusEduardo AsparagusEduardo added category: battle-mechanic Pertains to battle mechanics category: battle-ai Pertains to Battle Engine Upgrade's AI and removed category: battle-mechanic Pertains to battle mechanics labels Sep 16, 2022
@AsparagusEduardo AsparagusEduardo changed the base branch from dev to dev_1.x September 16, 2022 17:30
@AsparagusEduardo AsparagusEduardo merged commit ba9f085 into rh-hideout:dev Sep 24, 2022
@AsparagusEduardo AsparagusEduardo mentioned this pull request Oct 7, 2022
@DizzyEggg DizzyEggg deleted the AI branch July 6, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: battle-ai Pertains to Battle Engine Upgrade's AI category: battle-mechanic Pertains to battle mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants