RMMV +Attack Times affecting specific skills

Grunwave

Veteran
Veteran
Joined
Feb 4, 2017
Messages
600
Reaction score
167
First Language
English
Looks like this was possible in Ace:

module RINOBI module MultiNormAtk
#==============================================================================
# # Multiple Normal Attacks
# -----------------------------------------------------------------------------
# 1.0 [07/08/2017] Completed
#-
# Allows more than one normal attack to exist.
#==============================================================================
# # SETTINGS
# -----------------------------------------------------------------------------
# The skill IDs within the array below will be treated as normal attacks.

Normal_Attacks = [1, 3, 4, 5, 823, 824, 825]

end end
#==============================================================================
# ** IMPORT SCRIPT
#------------------------------------------------------------------------------
$imported = {} if $imported.nil? ; $imported[:RIN_MultNormAtk] = true
#==============================================================================
# ** Game_Action
#------------------------------------------------------------------------------
# This class handles battle actions. This class is used within the
# Game_Battler class.
#==============================================================================
class Game_Action
#--------------------------------------------------------------------------
# * Overwrite Method: Normal Attack Determination
#--------------------------------------------------------------------------
def attack?
skill_array = RINOBI::MultiNormAtk::Normal_Attacks
skill_array.push(subject.attack_skill_id)
skill_array.any? {|skill_id| item == $data_skills[skill_id]}
end
end


but I could not find an updated version of this for MV. Is it possible?
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,145
Reaction score
1,164
First Language
Dutch
Primarily Uses
RMMV
it's better to explain what the attack does and the result of it.

while not anyone can ready ruby (I cannot read it), but it might be
achieveable with YEP_BattleCore and probably it's sequence pack 1, 2, 3
and use lunatic code.

but it order to know which plugin(s) exacly is used, and it's lunatic code,
you need to explain what the skill supposed to do.
 

Grunwave

Veteran
Veteran
Joined
Feb 4, 2017
Messages
600
Reaction score
167
First Language
English
it's better to explain what the attack does and the result of it.

while not anyone can ready ruby (I cannot read it), but it might be
achieveable with YEP_BattleCore and probably it's sequence pack 1, 2, 3
and use lunatic code.

but it order to know which plugin(s) exacly is used, and it's lunatic code,
you need to explain what the skill supposed to do.

I was hoping to use an "umbrella" plug-in, but if I need to put a couple lines into each ability's action sequence, I would do that as well.

Any idea what the code would look like? I am guessing:

if user.attackstimes() === 2
SEQUENCE x2
else
SEQUENCE x3
 

ShadowDragon

Veteran
Veteran
Joined
Oct 8, 2018
Messages
3,145
Reaction score
1,164
First Language
Dutch
Primarily Uses
RMMV
I dont know much on the sequency plugin, or how to use the lnatic code.

most require:
<before ......>
code here
</before ......>

if you can explain how the attack++ works where you used it or what it exacly does,
someone can give you a sample code to use and or improve where needed.

the more details on this attack or video where it is used can be helpfull.
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,597
First Language
English
Primarily Uses
RMMV
You're overcomplicating it. Here's what I edited so that all Physical attacks are affected by Attack Times+:
Line 1295 of rpg_object.js
JavaScript:
Game_Action.prototype.numRepeats = function() {
    var repeats = this.item().repeats;
    if (this.isAttack() || this.isPhysical()) {
        repeats += this.subject().attackTimesAdd();
    }
    return Math.floor(repeats);
};
Normally it's just if (this.isAttack()) { but you can use any conditional you want.
 

Grunwave

Veteran
Veteran
Joined
Feb 4, 2017
Messages
600
Reaction score
167
First Language
English
@Frostorm funny enough I stumbled across your post from this summer and having been messing with this code the last couple hours.

I have one Skill in my game that is a physical AOE. That skill shows the animation once and then applies damage twice.

Aside from that, this is perfect. Thank you for re-sharing =)
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,597
First Language
English
Primarily Uses
RMMV
I have one Skill in my game that is a physical AOE. That skill shows the animation once and then applies damage twice.
Hmm, maybe there's something that can check the scope of the skill so you can add a "not" (!) conditional so that AoE skills are excluded.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Almost to the finish line!... or the starting... since it's just the demo. :kaomad2:

Having problems with enemy/monster designs. :kaosigh:
While we prepare the official trailer, enjoy this kind-of-second teaser! ^^
-Ele
New Episodes of RPG Shenanigans Uploaded to Youtube!

Episode 5 - Surprise Party!
Youtube Link:
Episode 6 - Killer Gin
Youtube Link:
Episode 7 - Gaia's Melody: Echoed Melodies
(Coming soon!)

Episode 8 - Clarent Saga: Tactics
(Coming soon!)

Episode 9 - Star Shift
(Coming soon!)
When the Map Generator throws in the assets in the most dumbest way possible - your path is blocked :D

Forum statistics

Threads
107,567
Messages
1,030,616
Members
139,671
Latest member
WDRS
Top