PG_Gender.js (Version 1)
Version 1.1 - Corrected an error in the 'Help' section. Code 3 for plugin commands etc is for female, and 2 for male.
Authors are Piyan Glupak, Trihan and Mr. Bubbles
Terms and Conditions: Free for use in commercial and non-commercial games. No liability accepted. Credit Piyan Glupak, Trihan and Mr. Bubbles.
About
I cannot claim to be the sole author of this plugin. Any bugs or errors are mine though. Mr. Bubbles made a script for RPG Maker VX Ace. Trihan ported the script into a plugin for RPG Maker MV "GenderFunctions.js". That plugin inspired this one. Much of the code for script calls, for instance, was taken from Trihan's plugin.
For some games, it is useful to have actors and enemies defined by gender. This could be for NPC reaction to the party leader, restricted party composition ("Sorry, only ladies to visit the unpopular town governor after dark"), use of gender specific equipment, party friendship systems, adjusting traits by gender. As well as recording gender, it will be useful to check the gender of individual party members, actors and enemies. It might also be useful to check whether the party or enemy troop is composed of all one gender, or to be able to count the numbers of each gender.
This plugin is written with games that have a lot of potential party members in mind.
Features
- 4 "genders" - female, male, neuter, unknown
- Set genders of actors either by notetag or by plugin command
- Set genders of enemies by notetag
- May assign a separate state by parameter to female actors, male actors, neutral actors, female enemies, male enemies, neutral enemies. (It is suggested that Yami's YED_RetainStateOnDeath is used for the states used for actors)
- Script calls for conditional branches to check whether individual party members, actors or members of enemy troops are female, male, neuter or unknown
- Script calls for conditional branches to check whether the party is all female, male, neuter or unknown
- Script calls for control variables to return the number of female, male, neuter or unknown members of the party or enemy troop
New Version 1.3 - Now includes "hornCnt" data for actors, and plugin calls and script to be able to use it.
Newer Version 1.3.1 - also has a couple of plugin commands to read "hornCnt". Whoops!
JavaScript:
本贴来自国际rpgmaker官方论坛作者:Piyan Glupak处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/gender-plugin-pg_gender-js.141676/