Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> FP: Item and Skill Restrictions
Tsukihime
post May 12 2012, 03:37 PM
Post #1


Level 25
Group Icon

Group: Revolutionary
Posts: 560
Type: None
RM Skill: Undisclosed
Rev Points: 25




FP: Item and Skill Restrictions
Author: Tsukihime
Type: Features add-on

Overview

You can specify required weapon types. Well, only 2, but not that bad.
What about armors? What about more than two weapon types? What if a skill can only be used when you're in a certain state? Maybe you can only use a skill when you have a certain amount of money? Or your HP = 7777?

This script allows you to specify usage requirements for all items and skills using a simple set of tags.

Features

The following apply to all item and skill usage
  • Require specific armors to be equipped
  • Require armor types to be equipped
  • Require specific weapons to be equipped
  • Require weapon types to be equipped
  • Require state to be active to use skill
  • Require equips (any, weapon, armor) to have a specific word in their name
  • Require actor to be a certain class
  • Require class name to have a specific word

More to come

Usage

In the skills tab in the database, you can tag skills that you want to have skill restrictions applied.

If you want to say armor 3 must be equipped, you can type

CODE
<fp:sr armor: 3>


If you want to say armor type 5 must be equipped (small shields), you can type

CODE
<fp:sr atype: 5>


Same applies to weapons and wtypes.

You can also require certain states to be in effect

CODE
<fp:sr state 12>


Note that the second colon is not necessary but may look pleasing.

For the options that only ask for a series of numbers (eg: weapon ID, weapon type, etc), I've provided a shorthand for you.

CODE
<fp:sr weapon 1,2,3,4,5>


This means that if you have any of the specified weapons equipped, you can use the skill.

Unfortunately there is currently no support for "AND" logic. So you can't say "weapon 1 AND 2 must be equipped"

Download

Script: http://db.tt/KIXl7Ebw

Compatibility

Well, it works with Ace Battle engine at least.

This post has been edited by Tsukihime: May 12 2012, 07:18 PM


__________________________
My Scripts
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 03:25 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker