[RM2K3] NEED HELP WITH CREATING PLUGIN.
Posts
Pages:
1
I'm currently working on a custom battle system via plugin. I've managed to turn it into a turn based one, but now I'm working on the window management. I have the gauge view style for combat and when it is a character's turn the cursor pops up over their head. I'm trying to get rid of that and directly enter the battle command menu. If I understand right then this should force the window selection when a character is idle?
Code:
This doesn't seem to do anything. I'm not sure what controls the stage of the battle. There doesn't seem to be a way to call winCommand, only able create a new window. I'm guessing I want to utilize this, RPG::BattleData::battleProgress? Not sure how to though.
Edit: Can someone explain how Window objects work too. I keep getting "expected primary-expression before '('" and "expected primary-expression before 'int, int, int, int, bool'" when I compile my plugin.
Edit2: I am able to declare window objects, but I am still confused on how to call the declared objects for "RPG::Window:create(int width, int height, int x, int y, bool startHidden)". Using "Menu.RPG::Window:create(int width, int height, int x, int y, bool startHidden)" creates a compiling error asking for declaration of the 4 int and bool objects. When I try to define the objects I get the error that the objects aren't declared.
Code:
bool onDoBattlerAction(RPG::Battler* battler, bool firstTry) {
if (battler->actionStatus == RPG::AS_IDLE) {
RPG::battleData->winCommand->choiceActive = true;
RPG::battleData->winCommand->x = 0;
RPG::battleData->winCommand->y = 64;
}
}
if (battler->actionStatus == RPG::AS_IDLE) {
RPG::battleData->winCommand->choiceActive = true;
RPG::battleData->winCommand->x = 0;
RPG::battleData->winCommand->y = 64;
}
}
This doesn't seem to do anything. I'm not sure what controls the stage of the battle. There doesn't seem to be a way to call winCommand, only able create a new window. I'm guessing I want to utilize this, RPG::BattleData::battleProgress? Not sure how to though.
Edit: Can someone explain how Window objects work too. I keep getting "expected primary-expression before '('" and "expected primary-expression before 'int, int, int, int, bool'" when I compile my plugin.
Edit2: I am able to declare window objects, but I am still confused on how to call the declared objects for "RPG::Window:create(int width, int height, int x, int y, bool startHidden)". Using "Menu.RPG::Window:create(int width, int height, int x, int y, bool startHidden)" creates a compiling error asking for declaration of the 4 int and bool objects. When I try to define the objects I get the error that the objects aren't declared.
Pages:
1













