The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX Ace => VXA Scripts Database => Topic started by: FlipelyFlip on June 24, 2012, 02:43:49 PM

Title: FlipelyFlips Actor Equip Restriction v1.1
Post by: FlipelyFlip on June 24, 2012, 02:43:49 PM
Heyey,

I'm posting this script, after searching for this but not finding a script which do this (:

What does this script do?
Allows you to forbid for certain actors from an equiptype a weapon or an armor.
I know I could create a new equiptype, but why should I do it, if it's only for 1 weapon
per actor or 1 armor per actor? It's easier and faster to do it with this script :D

How to use?

Write in the notetag of a weapon or armor:

<restrict_actor: x>

or

<restrict_actor: x,x>

As an example:
if you want that the weapon with the ID 1 won't be available for the actor with
the ID 5 then do this: <restrict_actor: 5>
if actor 5, 7, 10 and 12 shouldn't be able to use the weapon then set it up like
this: <restrict_actor: 5,7,10,12>
I hope you understand what I mean (:


Where is the script?
Here we go:

Pastebin Link (http://pastebin.com/cGMpFPJg)

Version History

v1.1
- fixed a huge bug, which would cause an error if the actor has some equipments
equiped from beginning.

v1.0
- Got this Script to work :D
- Allows to restrict certain actors certain weapons from their equipment type

Terms of Use

Feel free to use it.
If you want to use it in commercial games, then also ask MephistoX if it is possible to use his ReadNote Script (without that script, mine wouldn't work)

Credits
FlipelyFlip for the Actor Equip Restriction
MephistoX for the ReadNotetag script.

~Flip
Title: Re: FlipelyFlips Actor Equip Restriction v1.1
Post by: FlipelyFlip on July 05, 2012, 10:22:18 AM
Heyey,

little update I made with this script.
I fixed a huge bug, which would cause an error if the actor has some equipments.
Should work now perfectly.

~Flipy (:
Title: Re: FlipelyFlips Actor Equip Restriction v1.1
Post by: modern algebra on July 17, 2012, 03:28:11 PM
Sounds neat.