Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,330
Reaction score
505
First Language
English
Primarily Uses
RMMZ
Throw Command
Version 1.0
by Fomar0153

Description
Implements a throw command, allowing you to throw weapons.
Requires Actor Battle Commands.

Features
Throw weapons at your enemies.
Customise the damage.
Notetag weapons as not throwable.
Notetag weapons to deal bonus throwing damage.

Screenshots
PrjaoXg.png
A7Mk7Mj.png


How to Use
Place the plugin in your project's js/plugins/ folder.
Inside RPG Maker MZ's editor, open the Plugin Manager.
Create a new entry and select this plugin from the list, make sure it is below Actor Battle Commands.
Customise the options to your liking and then click ok.

To give someone the throw command in their battle commands notetag use, "throw" like this:
<battlecommands: attack, skilltype 2, throw, item>

You will need to make a skill for this plugin to use. Scope, accuracy, animation etc are all determined by your skill.
Here's the skill I used when making this:
OFX1P9o.png


For the damage formula I used:
JavaScript:
50*a._throwMult*$dataWeapons[a._lastThrow].params[2]-b.def*2

Once you've set that up you should be good to go!

You can use the following notetags on weapons:
<nothrow> - the weapon will not appear in the throw menu.
<throwmult:n> - if you are using the damage formula layout I proposed then you can use this to make the weapon do n x damage when thrown.

DbffYdV.png

Download
Click here.

FAQ
Q: Nothing seems to happen when I use your plugin.
A: Make sure the plugin has its original name and that you haven't accidentally renamed it.

Q: I get an error.
A: Make sure this plugin is below Actor Battle Commands in the plugin manager.

Credits
Fomar0153

Terms of Use
As long as I am credited, you may use this plugin in your projects both commercial and non-commercial.
 

jerrypylant

Eventer
Veteran
Joined
Oct 21, 2012
Messages
128
Reaction score
70
First Language
English
Primarily Uses
N/A
This looks interesting.
Does this visually show a projectile throwing or is it just an action?
 

Rex Tenebris

Veteran
Veteran
Joined
Mar 9, 2013
Messages
401
Reaction score
106
First Language
Spanish
Primarily Uses
RMMZ
I guess it's an action-only, in front-view would be weird see for example a tiny icon of each weapon being launched to an enemy... but! I do imagine this being used in the future as an addon for sideview battle systems like for Visustella I guess (like mv yanfly battle system). In the meantime, it is very useful, remember that not all games are gonna use sideview systems, so this is useful.
 

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,330
Reaction score
505
First Language
English
Primarily Uses
RMMZ
This looks interesting.
Does this visually show a projectile throwing or is it just an action?
It'll use whatever animation you put on the throw skill you setup. I haven't even looked at the new animation format yet, so I have no idea how hard it would be to insert the weapon's icon into it.
 

Iqus

Veteran
Veteran
Joined
Oct 17, 2013
Messages
50
Reaction score
56
First Language
Spanish
Primarily Uses
RMMZ
Hey Fomar! Big fan of your plugins and In search of Immortality! This is a great plugin, I'm playing a bit with it atm. I have a little addon suggestion that might make some weapons even more spicy.

Just changing line 132 to
Code:
if (!$dataWeapons[this._lastThrow].meta.boomerang) $gameParty.loseItem($dataWeapons[this._lastThrow], 1);
would allow using Boomerangs that you can throw but you don't actually lose (they come back!) by just typing <boomerang> in the weapon's note. Might be nice to have a rare throwable weapon that doesn't deal a lot of damage but that is never spent!
 

Derek

Villager
Member
Joined
Jul 29, 2019
Messages
17
Reaction score
8
First Language
English
Primarily Uses
RMMV
Does this work for mv??
 

EdgeNinja

The Grinning Fool
Member
Joined
Oct 10, 2012
Messages
8
Reaction score
0
First Language
English
Primarily Uses
When I do a test play, the Throw command works in the first round of battle, but after that all player commands subsequently become invisible for some reason. I'm using MV.
 

Latest Threads

Latest Posts

Latest Profile Posts

The main game of my trilo/saga 50%OFF on Steam..... its now or never more
I swap between Ace and MZ so I can stay fresh but - what do you mean you can use subfolders in the plugin's folder for easier organization!?
Did some new music again, praise be. To the next song!
Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Forum statistics

Threads
123,139
Messages
1,154,242
Members
161,474
Latest member
nugogo555
Top