The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: LoganF on August 20, 2011, 07:11:21 AM

Title: Multiple Hit Skills
Post by: LoganF on August 20, 2011, 07:11:21 AM
Mutliple Hit Skills
Version: 1.1
Author: Logan Forrests
Date: November 03, 2011

Version History



Planned Future Versions

Updates are planned to allow for additional properties with regards to multiple hits that skills may be assigned:


Suggestions considered.

Further skill properties may also be implemented as a means of extending the Extra Skill Properties script by Mr G W (see Author's Notes for more info).

Description


Allows skills to be assigned a specific number of hits.
 
For example, Quad Slash is intended to be a 4-hit physical skill. By specifying this in the Database, the skill would be calculated as if it was dealing 4 individual hits. Each individual hit of a multiple hit skill is calculated seperately with the damage dealt by each hit being cumulative to provide the total damage dealt. This also means that the accuracy of the skill and the evasion of the target is considered on each hit and not the skill as a whole. Thus, of the 4 hits of Quad Slash, only 2 may hit and contribute towards damage.

New
Damage calculation can be finalised/stopped when a hit from a multiple hit skill misses or is evaded. This simulates a kind of 'interruption' effect where the flow of an attack is interrupted due to the attack not connecting. This can have the effect of lowing overall average damage and should be used carefully and thoughtfully.

New
Each hit of a skill can be given the possibility to be a critical hit. The rate of a critical hit, as well as the damage bonus granted by a successful critical hit, can be set on a per skill basis. For Skills which have their Physical Attack property checked, the script can be made to include critical rate bonuses from equipped weapons and actor traits.

The messages associated with attacks missing and being evaded will only be shown when all hits of an attack miss or are evaded.

Features


Screenshots

None currently, but will provide at a later date to show variance in damage output of multi hit skills.


Instructions

See Script.

Script


Can be obtained via Pastebin (http://pastebin.com/C6QX2aJe)

Credit



*due to this script being based and designed from [GW] Extra Skill Features (http://rmrk.net/index.php/topic,43559.0.html).

Support


Support can be provided through this thread and site (rmrk.net). This script should be placed below Mr G W's Extra Skill Features, if this script is also used.

Further information can be found within the script.

Known Compatibility Issues

Fully compatible with GW Extra Skill Features.

No other issues are known at this time. Should you find any, please detail them in this thread.

Details on any overwritten, changed and aliased methods can be found in the script.

Demo


No demo required.

Author's Notes


This script was intended to be a stand alone script. However, after seeing Mr G W's Extra Skill Features script, it only seemed natural to follow as an extension to it. Whilst this script can stand alone, it is suggested to be used along with Extra Skill Features.

Restrictions

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-sa%2F3.0%2F80x15.png&hash=b4e03ba658a2bfdeb2543e4143d7a38bd036a64d)
Multi Hit Skills (for RMVX) by Logan Forrests is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-nc-sa/3.0/au/)

Please note, if you use this script you must provide credit to both myself and Mr G W due to his implicit involvement in its development and design.
Title: Re: Multiple Hit Skills
Post by: Mr G W on August 23, 2011, 09:24:17 AM
Hmm, I was planning to do something like that on the extra features script, although id make each hit separate, like Dual Attack (2 separate hits).

This is still a interesting idea, having all hits shown as one.

EDIT: Added a multi hit feature to my script.
Can be combined with this script.
Example: By using <multi 2> with <hits 3>. Each of the 2 hits will 3 hits, for a total of 2 hits, dealing damage of 6 hits.
Title: Re: Multiple Hit Skills
Post by: LoganF on August 23, 2011, 11:06:36 AM
It wouldn't be hard to have it do that either, but I wouldn't want to see the possibility of an 8 (or more) hits showing the damage for each individual hit. Having it cumulative and showing only the final damage of the attack just makes it a little more friendly to the player's eyes in my opinion.

Edit: Also, if you had the hits separate, it'd be good if you could have it show the damage after each attack in the animation as it played, but I'm doubtful you could achieve that in a simple way. Probably have to make several different animations and script it to play them in sequence with the damage recorded and displayed after each one.

Although, the issue of the damage being shown after individual hits and not looking too friendly to read is based on using the default VX battle system. If you had a system that displays damage on screen, then perhaps it would look a lot better on those Omnislash style attacks to have damage shown as each hit landed.

Feel free to expand on it from mine, though, or try scripting it up a different way. More options available to users is never a bad thing.
Title: Re: Multiple Hit Skills
Post by: Mr G W on August 23, 2011, 05:33:07 PM
The animation issue is harder to solve, has the game shows the animation first and only then it does the hits.

Using Damage popup scripts makes it better looking though.

Anyway, ive added a multihit feature to my script, as you can see on the post above.
Title: Re: Multiple Hit Skills
Post by: Infinate X on August 26, 2011, 02:19:06 AM
This is a nice script, but I have two problems. (One you can fix)

1. How do we set it up in the database?
2. I'm going to se this but right now I'm too lazy to copy it line by line  ;8 (Copying full doesn't work for me from RMRK  :o)
Title: Re: Multiple Hit Skills
Post by: LoganF on August 26, 2011, 04:46:11 AM
It's in the script itself how to use it with the database. I always include such instructions rather than only post it here. You'll find it under the "Directions on how to Implement" section of the script.

Regarding #2 it's to do with the browser. I don't think IE likes to copy correctly from the code box. I know both Firefox and Chrome do it, but I'll upload a .txt file for those who (for whatever reason) use IE/prefer to download it.

Title: Re: Multiple Hit Skills
Post by: Infinate X on August 26, 2011, 04:55:28 AM
I've only had this problem with RMRK so I guess I can use google chrome when I need an RMRK script (I already have chrome)
Title: Re: Multiple Hit Skills
Post by: pacdiggity on August 26, 2011, 08:01:41 AM
A bit off-topic, but why in the world would you use IE if you have chrome?
Also, I believe the problem also happens with CP, because they both use SMF.
Title: Re: Multiple Hit Skills
Post by: LoganF on November 03, 2011, 04:22:05 AM
Finally got around to updating a few scripts. Version 1.1 of this script is available for download. It adds a couple of new things and also standardises the code some and brings it up to date with the particular ways I write the code (which is pretty much based on modern algebra's style of code; a style I like).

See the OP for details on the changes.
Title: Re: Multiple Hit Skills
Post by: Darkrai1276 on March 30, 2012, 07:19:57 PM
Nice script, a nice little thing for moves that attack more than three times
i give it a 8/10= pretty good
(https://s3.amazonaws.com/TrollEmoticons/chuckthumbsup.jpeg)
Title: Re: Multiple Hit Skills
Post by: Zaiku on May 12, 2012, 12:33:45 AM
This was the closest script to what I'm looking for at the moment, which is to apply the dual hit attack type to a skill which hits more than one enemy.
For instance, if you had a weapon with the dual attack property, and used triple attack, it would dual attack 3 random enemies.
Maybe this could be considered as a feature for the script?