Adds a system which forces the user to time certain inputs to preform actions during battle. – SRD_TimedAttackCore.js

タイトル
Adds a system which forces the user to time certain inputs to preform actions during battle.
作者名
ヘルプ

Timed Attack Core
Version 1.23
SumRndmDde


This Plugin adds a system which forces the user to time certain inputs
to preform actions during battle.

Using this Plugin, you can add a variety of "Timed Attacks" by
manipulating existing ones or adding more using extension Plugins.

By itself, this Plugin adds one Timed Attack: Default Timed Attack.

It is based off of the Timed Attack system from Undertale.


==========================================================================
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.


==========================================================================
Background Image (Default Timed Attack)
==========================================================================

For the Default Timed Attack, you want a background image that will
cover the entire window, preferably 816x144, though it could be different
depending on the size of your screen.

Place the image in /img/SumRndmDde/tas/
It should be named: DefaultBackground.png


==========================================================================
How to Set a Skill to Use a Timed Attack
==========================================================================

Use the Notetag:

<Timed Attack: default>
<End Timed Attack>

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

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


==========================================================================
Default Timed Attack Properties
==========================================================================

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

<Timed Attack: default>
Speed: 15
Color: #00FFFF
Outline Color: black
<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 Default Timed Attack:

Sound Effect: (Input filename of Sound Effect in /audio/se/)
Background Image: (Input filename of for in /img/SumRndmDde/tas/)
Cursor Image: (Input filename of for in /img/SumRndmDde/tas/)
Window Opacity: (Input a Number from 0 to 255)
Target Location: (Input Number or JavaScript eval)
Repeat Type: (Input one of the following: None, Repeat, Reverse)
Speed: (Input a Positive Number or JavaScript Formula)
Main Color: (Input a JavaScript or HTML Color)
Shape: (Input "Rectangle" or "Oval")
Width: (Input a Positive Number)
Outline Color: (Input a JavaScript or HTML Color)
Outline Size: (Input a Positive Number)
Direction: (Input "Right", "Left", or "Random")
Flash Rate: (Input a Positive Number)

The JavaScript Formula can use 'f' to represent "Frame Count".
Leave blank to use rectangle or circle image


==========================================================================
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 Enable Touch?
desc If set to 'true', the Player can touch the screen in order to interact with the Timed Attacks.
default true

param Default Source
desc If the Skill notebox lacks TAS notetags, it will use:
None, Actor, Class, or Weapon
default None

param == Window Options ==
default

param X Alignment
desc The X alignment of the "Timed Attack" Window.
The choices are: Left, Center, Right
default Center

param Y Alignment
desc The Y alignment of the "Timed Attack" Window.
The choices are: Top, Center, Bottom
default Top

param X Offset
desc A value added to the X of the "Timed Attack" Window.
This can be a Number or JavaScript eval.
default 0

param Y Offset
desc A value added to the Y of the "Timed Attack" Window.
This can be a Number or JavaScript eval.
default 0

param Window Width
desc The width of the "Timed Attack" Window.
This can be a Number or JavaScript eval.
default Graphics.width

param Window Height
desc The height of the "Timed Attack" Window.
This can be a Number or JavaScript eval.
default this.fittingHeight(3)

param == Default Props. ==
default

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

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

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

param Window Opacity
desc The opacity of the Window when one is not specified.
Input a Number between 0 and 255.
default 255

param Target Location
desc The default Target Location when one is not specified.
Input a Number or JavaScript eval.
default Graphics.width / 2

param Repeat Type
desc The default Repeat Type when one is not specified.
The choices are: None, Repeat, Reverse
default None

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

param Main Color
desc The default Color when one is not specified.
Input a JavaScript or HTML Color
default #FFFFFF

param Shape
desc If not using an Image, this shape will be used.
Input either "Rectangle" or "Oval"
default Rectangle

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

param Outline Color
desc The default Outline Color when one is not specified.
Input a JavaScript or HTML Color
default #000000

param Outline Size
desc The default Outline Size when one is not specified.
Input a Positive Number
default 3

param Direction
desc The default Direction when one is not specified.
Input "Right", "Left", or "Random"
default Right

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

ライセンス表記

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