DogVTF

Goblin
Member
Joined
Dec 18, 2021
Messages
22
Reaction score
6
First Language
English
Primarily Uses
RMMV
I am essentially making a boss that is an endurance match, and the way to win is making it use all it's MP. And the idea is that when it gets below 30% HP it will use a skill that costs 50 MP to fully heal itself. The boss has 300 MP, and the idea is that on top of the 50 MP heal, the boss is also using other skills that use MP. So you just have to do high damage and endure. But the problem is I don't know how to make it use the heal skill but still have it use MP, because using a force action command in the troop to have it use the skill, when tested, it just uses the skill and doesn't lose MP, as the boss used it more than 6 times in testing. And ranking the skill as 9 in the move set wasn't guaranteed and the boss could easily be killed before intended.
 

contentdeleted

Regular
Regular
Joined
Jul 19, 2022
Messages
100
Reaction score
82
First Language
English
Primarily Uses
RMMV
If it only uses this skill as part of the event, one easy approach is to just manually check the mp of the boss and subtract 50 if it has enough remaining
 

DogVTF

Goblin
Member
Joined
Dec 18, 2021
Messages
22
Reaction score
6
First Language
English
Primarily Uses
RMMV
If it only uses this skill as part of the event, one easy approach is to just manually check the mp of the boss and subtract 50 if it has enough remaining
I don't see anything to manually check the MP of an enemy. I checked conditional branches, the conditions for the troop event, and the battle section. Didn't see anything, or I'm just blind.
 

contentdeleted

Regular
Regular
Joined
Jul 19, 2022
Messages
100
Reaction score
82
First Language
English
Primarily Uses
RMMV
Oh yeah, I don't think there's a specific conditiona type for it but you can have a conditional with the following script line like:
$gameTroop.members()[0].mp < 50
 

kyonides

Reforged is laughable
Regular
Joined
Nov 17, 2019
Messages
1,941
Reaction score
991
First Language
English
Primarily Uses
RMXP
The situation could be the consequence of a plugin interfering there.

The default plugins do include paying the skill's cost.

JavaScript:
BattleManager.startAction = function() {
    var subject = this._subject;
    var action = subject.currentAction();
    var targets = action.makeTargets();
    this._phase = 'action';
    this._action = action;
    this._targets = targets;
    subject.useItem(action.item()); // <============
    this._action.applyGlobal();
    this.refreshStatus();
    this._logWindow.startAction(subject, action, targets);
};

BattleManager.processForcedAction = function() {
    if (this._actionForcedBattler) {
        this._turnForced = true;
        this._subject = this._actionForcedBattler;
        this._actionForcedBattler = null;
        this.startAction(); // <============
        this._subject.removeCurrentAction();
    }
};

Game_Battler.prototype.useItem = function(item) {
    if (DataManager.isSkill(item)) {
        this.paySkillCost(item);
    } else if (DataManager.isItem(item)) {
        this.consumeItem(item);
    }
};
 

Latest Threads

Latest Posts

Latest Profile Posts

Idle.gif
something I'm working on as I decide whether or not I go with frontview or not.
Reworked a bit on the UI. I'm pretty happy with how the status window turned out!
Rafael_UI.png
Be sure to check @casper667's page full of RM stuff as we are collabing together to bring out custom assets :kaohi:
4 more hours til I give my last final. And I couldn't bring my laptop to pass time this time due to the finals taking up all the space in my backpack.

Send help. Or a Steam Deck.
Thanks to my last two calendar days, the goddess can now join your heroes' party and whack your enemies with the power of love!
1702314770604.png
How are you gonna use all those new resources from the calendars?

Forum statistics

Threads
136,922
Messages
1,271,520
Members
180,714
Latest member
firefoxbox
Top