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

Pledge Move refactor #5621

Open
wants to merge 4 commits into
base: upcoming
Choose a base branch
from

Conversation

AsparagusEduardo
Copy link
Collaborator

Description

It creates a new struct and table to assign scripts based on the type of the different pledge move combinations.

Images

Example of a "Rock Pledge" effect combined with Fire Pledge (calls Salt Cure's script).

static const struct PledgeCombo sPledgeCombos[] =
{
    // Dominant,  Passive,    Script to execute
    { TYPE_GRASS, TYPE_WATER, BattleScript_EffectCombinedPledge_Grass },
    { TYPE_WATER, TYPE_FIRE,  BattleScript_EffectCombinedPledge_Water },
    { TYPE_FIRE,  TYPE_GRASS, BattleScript_EffectCombinedPledge_Fire },
+   { TYPE_ROCK,  TYPE_FIRE,  BattleScript_EffectSaltCure },
};
mGBA_aXrZN9NTMI.mp4

Discord contact info

AsparagusEduardo

Comment on lines +16754 to +16756
{ TYPE_GRASS, TYPE_WATER, BattleScript_EffectCombinedPledge_Grass },
{ TYPE_WATER, TYPE_FIRE, BattleScript_EffectCombinedPledge_Water },
{ TYPE_FIRE, TYPE_GRASS, BattleScript_EffectCombinedPledge_Fire },
Copy link
Collaborator

@AlexOn1ine AlexOn1ine Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you could find a way to include base power in the table as well in this table and then store it in a BattleStruct field?

    case EFFECT_PLEDGE:
        if (gBattleStruct->pledgeMove)
            basePower = BattleStruct->combinedMoveBasePower;
  1. It can be change adjusted depending on the type
  2. If hackers add more type combinations they aren't locked into 150

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea overall

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you could find a way to include base power in the table as well in this table and then store it in a BattleStruct field?

I was able to do this locally, but I want to check what else would we like to allow for customability.
Targets? Animations? This could potentially be a realization of GF's old "combined moves" leftover code.

Copy link
Collaborator

@AlexOn1ine AlexOn1ine Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt target is needed. That's get chosen by AI / Player.

Not sure about animation since usually the one that overrides the type gets chosen.

@Bassoonian Bassoonian added this to the 1.11 milestone Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants