Good evening
I need help with RPG Maker MV
I'm looking for a script or plugin compatible with yanfly's ATB, and allowing me to count the number of hits carried out by the team, and to add a mod (+0.1% additional damage for each additional hit in the chain) and which resets as soon as an enemy break the team's hit-chan by acting
Currently, the game I am building has 3 types of BattleSystem: 2 variants of the same BS (similar to the default BS of MakerMV) merged on one single script, and the ATB of Yanfly ( https://www.yanfly.moe/wiki/Battle_System_-_ATB_(YEP) )
For my try, i reworked yanfly's Combo Attack script (https://www.yanfly.moe/wiki/Combo_Attack_(MV_Plugin_Tips_&_Tricks)) to successfully create a combo system with individual count, like this:
I created a State 50 having in its notebox
Then, in my Troops, I created 2 events in my troops.
Event 1
Event 2
In the 2 BattleSystems similar to default MV BS , each character increases their own Hit-Count, and each hit increases their damage by 1%, and each hit-counter is reset at the end of each turn
However, what I did only works individually (each character benefits from their own counter, instead of everyone having a common counter) but above all, this solution does not work when I switch to Yanfly ATB.
( the record is to heavy for the forum, then i put it in drive ==> )
in order to try to "fix" this to achieve my goal, I therefore tried another approach:
Still keeping State50, I used the yanfly "PassiveState" plugin (https://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)) to add <Passive State: 50> to my character.
Result, this time, the combo counter works with the ATB, the damage increases by 1% with each hit during the combo chain. BUT the counter no longer resets at all....not to mention that despite everything, this solution is also only individual to each character, and not a counter common to all the team
( the 2nd record is to heavy too for the forum, then i put it in drive ==> )
Noone can help me with this ?
I need help with RPG Maker MV
I'm looking for a script or plugin compatible with yanfly's ATB, and allowing me to count the number of hits carried out by the team, and to add a mod (+0.1% additional damage for each additional hit in the chain) and which resets as soon as an enemy break the team's hit-chan by acting
Currently, the game I am building has 3 types of BattleSystem: 2 variants of the same BS (similar to the default BS of MakerMV) merged on one single script, and the ATB of Yanfly ( https://www.yanfly.moe/wiki/Battle_System_-_ATB_(YEP) )
For my try, i reworked yanfly's Combo Attack script (https://www.yanfly.moe/wiki/Combo_Attack_(MV_Plugin_Tips_&_Tricks)) to successfully create a combo system with individual count, like this:
I created a State 50 having in its notebox
Code:
<Custom Apply Effect>
user._comboStacks = user._comboStacks || 0;
var stacks = user._comboStacks.clamp(0, 1000);
user.setStateCounter(stateId, 'x' + stacks);
</Custom Apply Effect>
<Custom Remove Effect>
user._comboStacks = 0;
var stacks = user._comboStacks.clamp(1, 1);
user.setStateCounter(stateId, 'x' + stacks);
</Custom Remove Effect>
<Custom Confirm Effect>
if (this.isPhysical() && value > 0 && !this.item().name.match('Combo')) {
user._comboStacks = user._comboStacks || 0;
var stacks = user._comboStacks.clamp(0, 1000);
var rate = 1.00 + stacks * 0.01;
value = Math.ceil(value * rate);
stacks += 1;
stacks = stacks.clamp(0, 1000);
user.setStateCounter(stateId, 'x' + stacks);
user._comboStacks = stacks;
}
</Custom Confirm Effect>
Then, in my Troops, I created 2 events in my troops.
Event 1
Code:
> Conditions Turn0+1*X Range Turn
> Edit Hero states Fixed entire groups Add state 50
Event 2
Code:
> Conditions EndOfTour0+1*X Turn Range
> Edit Hero states Fixed entire groups Remove state 50
In the 2 BattleSystems similar to default MV BS , each character increases their own Hit-Count, and each hit increases their damage by 1%, and each hit-counter is reset at the end of each turn
However, what I did only works individually (each character benefits from their own counter, instead of everyone having a common counter) but above all, this solution does not work when I switch to Yanfly ATB.
( the record is to heavy for the forum, then i put it in drive ==> )
in order to try to "fix" this to achieve my goal, I therefore tried another approach:
Still keeping State50, I used the yanfly "PassiveState" plugin (https://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)) to add <Passive State: 50> to my character.
Result, this time, the combo counter works with the ATB, the damage increases by 1% with each hit during the combo chain. BUT the counter no longer resets at all....not to mention that despite everything, this solution is also only individual to each character, and not a counter common to all the team
( the 2nd record is to heavy too for the forum, then i put it in drive ==> )
Noone can help me with this ?