Christoph

Villager
Member
Joined
May 24, 2019
Messages
9
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hi,

I have a simple question: How can I include the ATB Update Speed Option from Victor in Yanflys OptionCore Plugin? I've tried to by messing around with the code, but the results are.. well not so good :)

Best regards,
Chris
 

Christoph

Villager
Member
Joined
May 24, 2019
Messages
9
Reaction score
0
First Language
German
Primarily Uses
RMMV
Solved by myself, but maybe it'll help somebody so I post it here..

- In "VE_ActiveTimeBattle" set the "ATB Mode Name" to "atbSpeed"
- Use the default atbSpeed option as is in the OptionsCore. We just need to customize a bit (following steps)
- Under "Show/Hide" delete the existing code and add "show = true;" to show it
- Under "Process OK Code" delete the existing code and add:

var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
if (this.isAtbSpeed(symbol)) {
value += 1;
if (value > 10) {
value = 1;
}
value = value.clamp(1, 10);
$gameSystem.setAtbSpeed(value);
this.changeValue(symbol, value);
} else if (this.isAtbMode(symbol)) {
var modes = this.atbModes();
var index = (modes.indexOf($gameSystem.atbMode()) + 1) % modes.length;
var value = modes[index];
$gameSystem.setAtbMode(value);
this.changeValue(symbol, value);
} else {
VictorEngine.ActiveTimeBattle.processOk.call(this);
}

- Under "Cursor Right Code" delete the existing code and add:

var symbol = this.commandSymbol(this.index());
var value = this.getConfigValue(symbol);
if (this.isAtbSpeed(symbol)) {
value += 1;
value = value.clamp(1, 10);
$gameSystem.setAtbSpeed(value);
this.changeValue(symbol, value);
} else if (this.isAtbMode(symbol)) {
var modes = this.atbModes();
var index = Math.max(modes.indexOf($gameSystem.atbMode()) - 1, 0);
var value = modes[index];
$gameSystem.setAtbMode(value)
this.changeValue(symbol, value);
} else {
VictorEngine.ActiveTimeBattle.cursorLeft.call(this, wrap);
}

- Under "Cursor Left Code" delete the existing code and add:

var symbol = this.commandSymbol(this.index());
var value = this.getConfigValue(symbol);
if (this.isAtbSpeed(symbol)) {
value -= 1;
value = value.clamp(1, this.maxAtbSpeed());
$gameSystem.setAtbSpeed(value);
this.changeValue(symbol, value);
} else if (this.isAtbMode(symbol)) {
var modes = this.atbModes();
var index = Math.max(modes.indexOf($gameSystem.atbMode()) - 1, 0);
var value = modes[index];
$gameSystem.setAtbMode(value)
this.changeValue(symbol, value);
} else {
VictorEngine.ActiveTimeBattle.cursorLeft.call(this, wrap);
}
 

Latest Threads

Latest Profile Posts

I once thought about a boss gauntled game. I actually did it.
Stream will be live shortly with some Gex 3! Feel free to drop by!
Snippet from a game I'm working on. Not much happening here. Mostly look at atmosphere. May upload a longer version. Still need to make up some enemy arts.
Been slightly struggling with developing the latest chapter, I think I will downscale my ambitions and make it more linear.

Forum statistics

Threads
109,056
Messages
1,041,687
Members
141,541
Latest member
spectrallax
Top