Custom Equip Conditions

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

customEquipConditions1

This script allows you to specify custom equip conditions for your equips. In addition to the default equip conditions such as armor type and weapon type, all custom equip conditions must be met in order for the actor to wear the equip.

The condition uses a formula, so it can be based on almost anything.

Download

Script: download here

Installation

In the script editor, place this script below Materials and above Main

Usage

Note-tag weapons and armors with

<custom equip condition>
   FORMULA
</custom equip condition>

Where the formula returns a true or false. If the formula is true, then the
condition is met.

You can use the following variables in your formula:

a - the battler that will wear this equip
p - the party
t - the troop
s - game switches
v - game variables
Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

10 Responses

  1. Kanonelsebas says:

    I’m sorry for bother you, but I can’t find how to write the formula for the actor ID.

    Im trying to make a Armor only equippable for actor 14, 15, and 16 (example), but I cant make it work, how it would be the formula for that?

    a.id == 14 doesn’t work.

    I’m Kind of Lost here lol

    • Hime says:

      a.id == 14 || a.id == 15 || a.id == 16

      Your initial formula should allow actor 14 to wear the equip.

      • Kanonelsebas says:

        Thank You Very Much!!

        Yes, I made a stupid mistake regarding the armor type but I figured it out lol.

        But i didn’t know about the “||” part, that helps me a lot.

        Again, thank you very much! Love your Scripts! You make a awesome work!

        Greetings!

  2. Jon says:

    Hi Hime,
    I’m finding this script really useful, thanks. Was wondering though – if an object is already equipped, and then a state is inflicted that lowers a parameter / changes one of the equip conditions….what happens? Will the game still treat the object as being equipped, and carry all its inherent bonuses? Say this happens in battle but the inflicted state remains afterwards, will it still show the object as being equipped? If I then unequip it and then try to re-equip will it no longer show up since I am now not meeting the equip condition? Thanks in advance.

    • Hime says:

      The equip SHOULD be removed once the equip condition is no longer met.
      When a state is applied, it refreshes the battler, and during this process equips will be checked.

  3. Allusion says:

    Oh, I see! Thanks for the info, and great script (as usual)~ 😀

  4. Allusion says:

    Thanks~! Though I came across a weird effect, and I’m unsure if it’s supposed to do this or not; when I obtain the armor before having the defense points required to equip it, it doesn’t show up in my inventory at all. (I thought it would be present but grayed out.) When I get the defense points, it appears.

    • Hime says:

      Default scripts have it so that if you can’t equip something, it doesn’t even appear. I’m assuming this is so that if you had 20 different types of weapons, and you could only equip swords, you don’t see the other 19 types.

  5. Allusion says:

    Hey there, Hime! I just had a quick question; could you give an example of how a formula should look to be used for this script? I’m currently trying to have an armor equip only if the player’s defense is over fifty. I can only find battle formulas so far online, lol!

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax