RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
DoubleX RMMV Equip Prerequisites

0 Members and 1 Guest are viewing this topic.

***
Scripter
Rep:
Level 36
Changelog
Code: [Select]
*      v1.01g(GMT 0100 18-1-2016):                                           
 *      1. <stat req: stat, operator, val> only support battler getters       
 *      2. Fixed Number is not a function bug                                 
 *      v1.01f(GMT 0300 17-1-2016):                                           
 *      1. Fixed undefined variable req bug                                   
 *      2. Exposed this plugin's equip manipulation plugin calls             
 *      3. Increased this plugin's compactness, compatibility and readability
 *      v1.01e(GMT 1200 24-11-2015):                                         
 *      1. Fixed unsupported arrow function in ES5 bug                       
 *      2. The extended functions can be accessed by other custom plugins now
 *      3. Notetags with invalid operators will log message on console instead
 *      4. Increased this plugin's readability and robustness                 
 *      v1.01d(GMT 1600 6-11-2015):                                           
 *      1. Simplified the notetag reading mechanisms                         
 *      2. Fixed some typos                                                   
 *      v1.01c(GMT 1200 5-11-2015):                                           
 *      1. Fixed undefined this under DoubleX_RMMV.Equip_Prerequisites bug   
 *      v1.01b(GMT 0000 5-11-2015):                                           
 *      1. Fixed failing to load notetags due to nil data bug                 
 *      v1.01a(GMT 1000 4-11-2015):                                           
 *      1. Added <no weapon req: id>, <no armor req: id> and <weapon req: id>
 *         notetags                                                           
 *      2. Fixed several logic and syntax errors                             
 *      3. Increased this plugin's maintainability                           
 *      v1.00a(GMT 1300 31-10-2015):                                         
 *      1. 1st version of this plugin finished                               

Authors
DoubleX

Credits
DoubleX(Optional)

Purpose
Lets users add various prerequisites for equipments to actors

Games using this script
None so far

Notetags
Code: [Select]
*    # Equip Notetags:                                                       
 *      (v1.01a+)1. <no weapon req: id>                                       
 *         - Sets that equip to be unequippable with an equipped weapon with 
 *           id id                                                           
 *      (v1.01a+)2. <no armor req: id>                                       
 *         - Sets that equip to be unequippable with an equipped armor with id
 *           id                                                               
 *      (v1.01a+)3. <weapon req: id>                                         
 *         - Sets that equip to need an equipped weapon with id id to be     
 *           equipped                                                         
 *      4. <armor req: id>                                                   
 *         - Sets that equip to need an equipped armor with id id to be       
 *           equipped                                                         
 *      5. <stat req: stat, operator, val>                                   
 *         - Sets that equip to need the owner's stat stat to meet the       
 *           operator operator and value val to be equipped                   
 *         - stat can be any Parameter, Ex-Parameter and Sp-Parameter, hp, mp,
 *           tp and level                                                     
 *         - (Advanced)stat can also be any other battler getter name that can
 *           use operator                                                     
 *         - operator can be either l, le, e, ge, g or ne, meaning <, <=. ===,
 *           >=, > and !== respectively                                       
 *         - If val is a number, it'll be treated as a Number rather than a   
 *           String                                                           
 *      6. <var req: id, operator, val>                                       
 *         - Sets that equip to need the value of variable with id id to meet
 *           the operator operator and value val to be equipped               
 *         - operator can be either l, le, e, ge, g or ne, meaning <, <=. ===,
 *           >=, > and !== respectively                                       
 *         - If val is a number, it'll be treated as a Number rather than a   
 *           String                                                           

Plugin Calls
Code: [Select]
*    # Equip manipulations                                                   
 *      1. meta.noWeaponReq                                                   
 *         - Returns the Array of ids of all equipped weapons making this     
 *           equip unequippable                                               
 *      2. meta.noWeaponReq = [id, id, id, ..., id]                           
 *         - Sets the Array of ids of all equipped weapons making this equip 
 *           unequippable                                                     
 *         - All meta.noWeaponReq changes can be saved if                     
 *           DoubleX RMMV Dynamic Data is used                               
 *      3. meta.noArmorReq                                                   
 *         - Returns the Array of ids of all equipped armors making this equip
 *           unequippable                                                     
 *      4. meta.noArmorReq = [id, id, id, ..., id]                           
 *         - Sets the Array of ids of all equipped armors making this equip   
 *           unequippable                                                     
 *         - All meta.noArmorReq changes can be saved if                     
 *           DoubleX RMMV Dynamic Data is used                               
 *      5. meta.weaponReq                                                     
 *         - Returns the Array of ids of all equipped weapons needed for this
 *           equip to be equippable                                           
 *      6. meta.weaponReq = id                                               
 *         - Sets the Array of ids of all equipped weapons needed for this   
 *           equip to be equippable                                           
 *         - All meta.weaponReq changes can be saved if                       
 *           DoubleX RMMV Dynamic Data is used                               
 *      7. meta.armorReq                                                     
 *         - Returns the Array of ids of all equipped armors needed for this 
 *           equip to be equippable                                           
 *      8. meta.armorReq = id                                                 
 *         - Sets the Array of ids of all equipped armors needed for this     
 *           equip to be equippable                                           
 *         - All meta.armorReq changes can be saved if                       
 *           DoubleX RMMV Dynamic Data is used                               
 *      9. meta.statReq                                                       
 *         - Returns the Array of all stat-operator-value triples, each in the
 *           form of [stat, operator, value], as the equip prerequisites     
 *      10. meta.statReq = [[stat, operator, value], [stat, operator, value]]
 *          - Sets the Array of all stat-operator-value triples, each in the 
 *            form of [stat, operator, value], as the equip prerequisites     
 *          - All meta.statReq changes can be saved if                       
 *            DoubleX RMMV Dynamic Data is used                               
 *      11. meta.varReq                                                       
 *          - Returns the Array of all variable-operator-value triples, each 
 *            in the form of [variable, operator, value], as the equip       
 *            prerequisites                                                   
 *      12. meta.varReq = [[variable, operator, value]]                       
 *          - Sets the Array of all variable-operator-value triples, each in 
 *            the form of [variable, operator, value], as the equip           
 *            prerequisites                                                   
 *          - All meta.varReq changes can be saved if                         
 *            DoubleX RMMV Dynamic Data is used                               

Prerequisites
1. Some Javascript coding proficiency to fully utilize this plugin

Terms Of Use
You shall keep this plugin's Plugin Info part's contents intact
You shalln't claim that this plugin's written by anyone other than DoubleX or his aliases
None of the above applies to DoubleX or his/her aliases
« Last Edit: January 23, 2016, 03:53:46 AM by DoubleX »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
This sounds like a very useful script. Thanks for sharing, DoubleX!

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Queen of RMRKProject of the Year 20142014 Best RPG Maker User - Story2011 Best Newbie2014 Kindest Member2014 Best RPG Maker User - Creativity2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
Ahhhh! This is very nice! :gracie: Thanks for another wonderful script!
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


***
Scripter
Rep:
Level 36
Updates
Code: [Select]
*      v1.01d(GMT 1600 6-11-2015):                                           
 *      1. Simplified the notetag reading mechanisms                         
 *      2. Fixed some typos                                                   
 *      v1.01c(GMT 1200 5-11-2015):                                           
 *      1. Fixed undefined this under DoubleX_RMMV.Equip_Prerequisites bug   
 *      v1.01b(GMT 0000 5-11-2015):                                           
 *      1. Fixed failing to load notetags due to nil data bug                 
 *      v1.01a(GMT 1000 4-11-2015):                                           
 *      1. Added <no weapon req: id>, <no armor req: id> and <weapon req: id>
 *         notetags                                                           
 *      2. Fixed several logic and syntax errors                             
 *      3. Increased this plugin's maintainability                           
 *      v1.00a(GMT 1300 31-10-2015):                                         
 *      1. 1st version of this plugin finished                               
« Last Edit: November 06, 2015, 03:14:04 PM by DoubleX »

***
Scripter
Rep:
Level 36
Updates
Code: [Select]
*      v1.01e(GMT 1200 24-11-2015):                                         
 *      1. Fixed unsupported arrow function in ES5 bug                       
 *      2. The extended functions can be accessed by other custom plugins now
 *      3. Notetags with invalid operators will log message on console instead
 *      4. Increased this plugin's readability and robustness                 

***
Scripter
Rep:
Level 36
Updates
Code: [Select]
*      v1.01g(GMT 0100 18-1-2016):                                           
 *      1. <stat req: stat, operator, val> only support battler getters       
 *      2. Fixed Number is not a function bug                                 
 *      v1.01f(GMT 0300 17-1-2016):                                           
 *      1. Fixed undefined variable req bug                                   
 *      2. Exposed this plugin's equip manipulation plugin calls             
 *      3. Increased this plugin's compactness, compatibility and readability
« Last Edit: January 18, 2016, 12:15:05 PM by DoubleX »