Skip to content

Conversation

@Ghabry
Copy link
Member

@Ghabry Ghabry commented Oct 30, 2023

No description provided.

@Ghabry Ghabry added this to the 0.8.1 milestone Oct 30, 2023
@Ghabry Ghabry added the Has PR Dependencies This PR depends on another PR label Nov 2, 2023
@Ghabry
Copy link
Member Author

Ghabry commented Nov 2, 2023

Pending final change that depends on #3141

if (com.parameters.size() >= 5) {
    cmd.string = Main_Data::game_strings->GetWithModeBitfield(com.string, com.parameters[0], 3, com.parameters[4]);
} else {
    cmd.string = com.string;
}

btw, such code will be also needed for other commands just with a different index:

if (Player::IsPatchManiac() && com.parameters.size() >= A) {
    cmd.string = Main_Data::game_strings->GetWithModeBitfield(com.string, com.parameters[0], B, com.parameters[A - 1]);
} else {
    cmd.string = com.string;
}

Could need a helper function 🤔

@Ghabry Ghabry force-pushed the maniac/callcommand branch from 3132d80 to ed2ee73 Compare November 2, 2023 00:36
Makes implementing string variables for command simpler.
@Ghabry Ghabry force-pushed the maniac/callcommand branch from ed2ee73 to d37387e Compare November 2, 2023 14:11
@Ghabry Ghabry removed the Has PR Dependencies This PR depends on another PR label Nov 2, 2023
@Ghabry Ghabry changed the title Maniac: Implement CallCommand Maniac: Implement CallCommand and String Vars Nov 2, 2023
@Ghabry
Copy link
Member Author

Ghabry commented Nov 2, 2023

I added variable lookup to commands that support this with Maniac Patch. Please review carefully that I did not mess up the numbers.

@Ghabry Ghabry force-pushed the maniac/callcommand branch from d37387e to a03f508 Compare November 2, 2023 14:15
(Fortunately the hard part of this was already solved)
Is irrelevant for us and results in output spam
@fdelapena fdelapena merged commit 34ccc7f into EasyRPG:master Nov 20, 2023
@Ghabry Ghabry deleted the maniac/callcommand branch September 2, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants