New account registration is temporarily disabled.

[RM2K3] DYNRPG RPG::SKILL::CONDITIONFLAG HELP!

Posts

Pages: 1
I am trying to change the condition flag of a skill when a battler "first try" their action during the onDoBattlerAction callback, but it does not do anything. I checked and the skill does get changed, but the affect of changing inflict to remove does not reflect in battle. Is this not possible to do? Changing any of the other RPG::Skill variables during the onDoBattleAction callback will work as intended, but the conditionFlag switch does not appear to have any affect in battle, despite actually being changed.

I would post my code, but it isn't as simple as a few lines in one location, so it would be confusing to post a bunch of snippets of code. I have tried a simpler code to make sure it isn't my coding. Even this won't work:

bool onDoBattlerAction(RPG::Battler* battler, bool firstTry)
{
    if(firstTry == true))
    {
        RPG::skills[1]->conditionFlag = false;

Again the conditionFlag is accurately changed, but it does not reflect in battle.
The wiki say :
author=Wiki
bool RPG::Skill::conditionFlag
Inflict/Remove depending on SkillTarget. true = second option.


So i don't think it's what you want.
Check skills->conditions, where id is the condition of your condition.
I made a plugin that takes any skill used and replaces the skill with another. Unfortunately if I try to change skill A to skill B and skill A inflicts a condition, but skill B doesn't then I must change the condition flag, but this does not work in practice. What happens is the condition flag does change, but the skill will not inflict the condition. I have tried doing the reverse as well, where the skill removes a condition, but that also doesn't work unless both skills have the same condition flag in the database, prior to me changing any skills via script.
Pages: 1