设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 275|回复: 0

[转载发布] Gender Plugin PG_Gender.js

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    20 小时前
  • 签到天数: 222 天

    连续签到: 1 天

    [LV.7]常住居民III

    9102

    主题

    893

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    64916
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    74941

    灌水之王

    发表于 2026-7-31 10:22:40 | 显示全部楼层 |阅读模式
    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/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x

    帖子地址: 

    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-10-21 23:36 , Processed in 0.165154 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表