Adds a new Timed Attack system that requires the Player to mash a button to get a gauge to a certain point. – SRD_TimedAttack_Mash.js

タイトル
Adds a new Timed Attack system that requires the Player to mash a button to get a gauge to a certain point.
作者名
ヘルプ

Timed Attack: Mash
Version 1.10
SumRndmDde


This Plugin requires the Timed Attack Core Plugin (SRD_TimedAttackCore)
http://sumrndm.site/timed-attack-core

Adds a new Timed Attack system that requires the Player to mash a button
to get a gauge to a certain point.

When used, a gauge will appear above the Actor's head. The Player much
rapidly press the OK button to make the gauge fill up as much as possible.


==========================================================================
How to Customize Skill's Damage/Effect from Timed Attack
==========================================================================

Use $gameTemp.tas_power to have the power affect the skill.
This value will be a value from 0 to 1 depending on how close the
"Timed Attack" was to being perfect.

For example:
(a.atk4 - b.def2)($gameTemp.tas_power)

In that example, getting a perfect hit in the "Timed Attack" would result
in full damage, and getting any besides perfect would give only a percent
of the full damage.


==========================================================================
How to Set a Skill to Use a Timed Attack (Mash)
==========================================================================

Use the Notetag:

<Timed Attack: mash>
<End Timed Attack>

Setting those in a Skill's notebox will activate the "Timed Attack System"
for that Skill.

The part that says "mash" can be changed to have other types of "Timed
Attacks" be used.


==========================================================================
Mash Timed Attack Properties
==========================================================================

You can manipulate the properties of each Timed Attack by adding them
in the Notetags. For example:

<Timed Attack: mash>
Max Amount: 1000
Start Amount: 400
Tap Gain: 75
Width: 400
<End Timed Attack>

As you can see, there are a couple of factors you can use to even make one
individual Timed Attack different for each Skill it is used with.


Here are all the properties for Mash Timed Attack:

Normal SE: (Input filename of Sound Effect in /audio/se/)
Success SE: (Input filename of Sound Effect in /audio/se/)
Fail SE: (Input filename of Sound Effect in /audio/se/)
Smooth Mode: (Input either 'true' or 'false')
Start Amount: (Input a Positive Number or JavaScript eval)
Max Amount: (Input a Positive Number or JavaScript eval)
Seconds: (Input a Positive Number)
Speed: (Input a Positive Number or JavaScript Formula)
Tap Gain: (Input a Positive Number or JavaScript Formula)
Width: (Input a Positive Number)
Height: (Input a Positive Number)
Above Height: (Input a Positive Number)
Color 1: (Input a JavaScript or HTML Color)
Color 2: (Input a JavaScript or HTML Color)
Flash Rate: (Input a Positive Number)
Flash Time: (Input a Positive Number)

The JavaScript Formula can use 'f' to represent "Frame Count".


==========================================================================
End of Help File
==========================================================================

Welcome to the bottom of the Help file.


Thanks for reading!
If you have questions, or if you enjoyed this Plugin, please check
out my YouTube channel!

https://www.youtube.com/c/SumRndmDde


Until next time,
~ SumRndmDde
パラメータ
param == Default Props. ==
default

param Normal SE
desc The default Sound Effect when one is not specified.
Input filename of Sound Effect in /audio/se/
default Sword2

param Success SE
desc The default Sound Effect when one is not specified.
Input filename of Sound Effect in /audio/se/
default Bell3

param Fail SE
desc The default Sound Effect when one is not specified.
Input filename of Sound Effect in /audio/se/
default Buzzer1

param Smooth Mode
desc The default Smooth Mode when one is not specified.
Input either 'true' or 'false'.
default true

param Phrase
desc The default Phrase when one is not specified.
Input a word or phrase. %1 will represent the counter.
default Mash! %1

param Start Amount
desc The default Start Amount when one is not specified.
Input a Positive Number or JavaScript eval.
default 1000

param Max Amount
desc The default Max Amount when one is not specified.
Input a Positive Number or JavaScript eval.
default 2000

param Seconds
desc The default Seconds when one is not specified.
Input a Positive Number.
default 5

param Speed
desc The default Speed when one is not specified.
Input a Positive Number or JavaScript eval.
default 5

param Tap Gain
desc The default Tap Gain when one is not specified.
Input a Positive Number or JavaScript eval.
default 15

param Width
desc The default Width when one is not specified.
Input a Positive Number
default 200

param Height
desc The default Height when one is not specified.
Input a Positive Number.
default 12

param Above Height
desc The default Above Height when one is not specified.
Input a Positive Number.
default 150

param Color 1
desc The default Color 1 when one is not specified.
Input a JavaScript or HTML Color
default #33ccff

param Color 2
desc The default Color 2 when one is not specified.
Input a JavaScript or HTML Color
default #33ccff

param Flash Rate
desc The default Flash Rate when one is not specified.
Input a Positive Number
default 16

param Flash Time
desc The default Flash Time when one is not specified.
Input a Positive Number
default 40

ライセンス表記

紹介ページ https://github.com/SumRndmDde/RPG-Maker-MV-Plugins/blob/master/SRD_TimedAttack_Mash.js