A Timed Attack that requires the Player to push the arrow keys in the sequence shown on screen. – SRD_TimedAttack_Arrows.js

タイトル
A Timed Attack that requires the Player to push the arrow keys in the sequence shown on screen.
作者名
ヘルプ

Timed Attack: Arrows
Version 1.03
SumRndmDde


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

A Timed Attack that requires the Player to push the arrow keys in the
sequence shown on screen.

When an Actor uses this Timed Attack, images will appear in a sequence.
Each image will point in a direction and the Player must push the arrow
keys in the specified directions. The sequence is from left to right.


==========================================================================
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 (Arrows)
==========================================================================

Use the Notetag:

<Timed Attack: arrows>
<End Timed Attack>

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

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


==========================================================================
Arrows Timed Attack Properties
==========================================================================

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

<Timed Attack: arrows>
Command Amount: 3
Randomize Commands?: up, down, up
Frames: 80
<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 Arrows Timed Attack:

Normal SE: (Input filename of Sound Effect in /audio/se/)
Miss 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/)
Image: (Input filename of for in /img/SumRndmDde/tas/)
Phrase: (Input a word or phrase. %1 will represent the counter)
Command Amount: (Input a Positive Number)
Randomize Commands:(Input 'true' or a specific pattern)
Frames: (Input a Positive Number)
Penalty: (Input a Positive Number)
Above Height: (Input a Positive Number)
Success Power: (Input a Positive Number or JavaScript eval)
Fail Power: (Input a Positive Number or JavaScript eval)
Hit Animation: (Use the format: opacity, x-scale, y-scale, x-move, y-move)
Flash Rate: (Input a Positive Number)
Flash Time: (Input a Positive Number)


==========================================================================
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 Up Condition
desc The JavaScript condition that must be true for the "Up" command to be processed.
default Input.isTriggered('up')

param Right Condition
desc The JavaScript condition that must be true for the "Right" command to be processed.
default Input.isTriggered('right')

param Down Condition
desc The JavaScript condition that must be true for the "Down" command to be processed.
default Input.isTriggered('down')

param Left Condition
desc The JavaScript condition that must be true for the "Left" command to be processed.
default Input.isTriggered('left')

param == Default Props. ==
default

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

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

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

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

param Image
desc The default Image when one is not specified.
Input filename of Image in /img/SumRndmDde/tas/
default Arrows

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

param Command Amount
desc The default Command Amount when one is not specified.
Input a Positive Number.
default 4

param Randomize Commands
desc Determines whether the commands are randomized.
Input 'true' or a specific pattern like: 'up, down, left'.
default true

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

param Penalty
desc The default Penalty when one is not specified.
Input a Positive Number of Frames to lose.
default 40

param Success Power
desc The default Success Power when one is not specified.
Input a Positive Number or JavaScript eval.
default 1

param Fail Power
desc The default Success Power when one is not specified.
Input a Positive Number or JavaScript eval.
default 0

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

param Hit Animation
desc The default Animation when one is not specified.
Use the format: opacity, x-scale, y-scale, x-move, y-move
default -20, 0.1, 0.1, -2, -2

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_Arrows.js