设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 60|回复: 0

[转载发布] DoubleX RMMZ Unit Filters

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

    连续签到: 2 天

    [LV.7]常住居民III

    4600

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    Purpose
    Lets you use script calls to filter unit members with less codes and eventing

    Introduction
                    Code:        
    1. *      1. Without any plugin, getting a member with specific conditions
    2. *         relative to the belonging unit, like finding the party member with
    3. *         the highest amount of hp, demands relatively heavy event setups,
    4. *         even with the aid of common events, which boost event reusability.
    5. *      2. With this plugin, the same can be done using several easy, simple
    6. *         and small script calls instead of writing several common events
    7. *         from scratch, thus further improving effectiveness and efficiency.
    复制代码


    Video(v1.02a+)
    (You'll have to use DoubleX_RMMZ_Plugin_Query to use the plugin queries of this plugin)

    https://www.youtube.com/embed/_6L8IJDiTcI

    Games using this plugin
    None so far

    Spoiler: Script Calls
                    Code:        
    1. *    # Battler manipulations
    2. *      1. isAnyStateAffected(stateIds)
    3. *         - Returns whether the battler involved has any state included by
    4. *           stateIds, which is a list of id of states
    5. *         - stateIds must be an Array of natural numbers
    6. *         - E.g.:
    7. *           $gameParty.members()[0].isAnyStateAffected([1, 2]) returns
    8. *           whether the 1st party member has any state with id 1 or 2
    9. *      2. isAllStatesAffected(stateIds)
    10. *         - Returns whether the battler involved has all states included by
    11. *           stateIds, which is a list of id of states
    12. *         - stateIds must be an Array of natural numbers
    13. *         - E.g.:
    14. *           $gameActors.actor(1).isAllStatesAffected([1, 2]) returns whether
    15. *           the actor with id 1 has all states with id 1 or 2
    16. *      3. isAnyBuffAffected(paramIds)
    17. *         - Returns whether the battler involved has any buff included by
    18. *           paramIds, which is a list of id of corresponding parameters
    19. *         - paramIds must be an Array of non negative numbers
    20. *         - E.g.:
    21. *           $gameParty.members()[0].isAnyBuffAffected([0, 1]) returns
    22. *           whether the 1st party member has any mhp or mmp buff
    23. *      4. isAllBuffsAffected(paramIds)
    24. *         - Returns whether the battler involved has all buffs included by
    25. *           paramIds, which is a list of id of corresponding parameters
    26. *         - paramIds must be an Array of non negative numbers
    27. *         - E.g.:
    28. *           $gameActors.actor(1).isAllBuffsAffected([0, 1]) returns whether
    29. *           the actor with id 1 has all mhp and mmp buffs
    30. *      5. isAnyDebuffAffected(paramIds)
    31. *         - Returns whether the battler involved has any debuff included by
    32. *           paramIds, which is a list of id of corresponding parameters
    33. *         - paramIds must be an Array of non negative numbers
    34. *         - E.g.:
    35. *           $gameParty.members()[0].isAnyDebuffAffected([0, 1]) returns
    36. *           whether the 1st party member has any mhp or mmp debuff
    37. *      6. isAllDebuffsAffected(paramIds)
    38. *         - Returns whether the battler involved has all debuffs included by
    39. *           paramIds, which is a list of id of corresponding parameters
    40. *         - paramIds must be an Array of non negative numbers
    41. *         - E.g.:
    42. *           $gameActors.actor(1).isAllDebuffsAffected([0, 1]) returns whether
    43. *           the actor with id 1 has all mhp and mmp debuffs
    44. *      7. hasAnySkill(skillIds)
    45. *         - Returns whether the battler involved has any skill included by
    46. *           skillIds, which is a list of id of corresponding skills
    47. *         - paramIds must be an Array of natural numbers
    48. *         - E.g.:
    49. *           $gameParty.members()[0].hasAnySkill([1, 2]) returns whether the
    50. *           1st party member has skill with id 1 or 2
    51. *      8. hasAllSkills(skillIds)
    52. *         - Returns whether the battler involved has all skills included by
    53. *           skillIds, which is a list of id of corresponding skills
    54. *         - paramIds must be an Array of natural numbers
    55. *         - E.g.:
    56. *           $gameActors.actor(1).hasAllSkills([1, 2]) returns whether the
    57. *           actor with id 1 has all skills with id 1 and 2
    58. *      (v1.01a+)9. hasAnyUsableSkill(skillIds)
    59. *         - Returns whether the battler involved has any usable skill
    60. *           included by skillIds, which is a list of id of corresponding
    61. *           skills
    62. *         - paramIds must be an Array of natural numbers
    63. *         - E.g.:
    64. *           $gameParty.members()[0].hasAnyUsableSkill([1, 2]) returns whether
    65. *           the 1st party member has usable skill with id 1 or 2
    66. *      (v1.01a+)10. hasAllUsableSkills(skillIds)
    67. *          - Returns whether the battler involved has all usable skills
    68. *            included by skillIds, which is a list of id of corresponding
    69. *            skills
    70. *          - paramIds must be an Array of natural numbers
    71. *          - E.g.:
    72. *            $gameActors.actor(1).hasAllUsableSkills([1, 2]) returns whether
    73. *            the actor with id 1 has all usable skills with id 1 and 2
    74. *    # Unit manipulations
    75. *      1. memWithAnyState(stateIds, mems)
    76. *         - Returns the list of members with any state included by stateIds,
    77. *           which is a list of id of states, among all battlers included by
    78. *           mems, which is a list of battlers
    79. *         - The return value should be an Array of Game_Battler
    80. *         - stateIds must be an Array of natural numbers
    81. *         - mems must be an Array of Game_Battler
    82. *         - If mems isn't specified, it'll be default to all unit members
    83. *           outside battles and battle members inside battles respectively
    84. *         - E.g.:
    85. *           $gameParty.memWithAnyState([1, 2]) returns the list of party
    86. *           members with any state with id 1 or 2
    87. *      2. memWithAllStates(stateIds, mems)
    88. *         - Returns the list of members with all states included by
    89. *           stateIds, which is a list of id of states, among all battlers
    90. *           included by mems, which is a list of battlers
    91. *         - The return value should be an Array of Game_Battler
    92. *         - stateIds must be an Array of natural numbers
    93. *         - mems must be an Array of Game_Battler
    94. *         - If mems isn't specified, it'll be default to all unit members
    95. *           outside battles and battle members inside battles respectively
    96. *         - E.g.:
    97. *           $gameTroop.memWithAllStates([1, 2], $gameTroop.memWithAnyState([3, 4]))
    98. *           returns the list of troop members with all states with id 1 or 2
    99. *           among those with any state with id 3 or 4
    100. *      3. memWithoutAnyState(stateIds, mems)
    101. *         - Returns the list of members without any state included by
    102. *           stateIds, which is a list of id of states, among all battlers
    103. *           included by mems, which is a list of battlers
    104. *         - The return value should be an Array of Game_Battler
    105. *         - stateIds must be an Array of natural numbers
    106. *         - mems must be an Array of Game_Battler
    107. *         - If mems isn't specified, it'll be default to all unit members
    108. *           outside battles and battle members inside battles respectively
    109. *         - E.g.:
    110. *           $gameParty.memWithoutAnyState([1, 2]) returns the list of party
    111. *           members without any state with id 1 or 2
    112. *      4. memWithoutAllStates(stateIds, mems)
    113. *         - Returns the list of members without all states included by
    114. *           stateIds, which is a list of id of states, among all battlers
    115. *           included by mems, which is a list of battlers
    116. *         - The return value should be an Array of Game_Battler
    117. *         - stateIds must be an Array of natural numbers
    118. *         - mems must be an Array of Game_Battler
    119. *         - If mems isn't specified, it'll be default to all unit members
    120. *           outside battles and battle members inside battles respectively
    121. *         - E.g.:
    122. *           $gameTroop.memWithoutAllStates([1, 2], $gameTroop.memWithoutAnyState([3, 4]))
    123. *           returns the list of troop members without all states with id 1 or
    124. *           2 among those without any state with id 1 or 2
    125. *      5. memWithAnyBuff(paramIds, mems)
    126. *         - Returns the list of members with any buff included by paramIds,
    127. *           which is a list of id of corresponding parameters, among all
    128. *           battlers included by mems, which is a list of battlers
    129. *         - The return value should be an Array of Game_Battler
    130. *         - paramIds must be an Array of non negative numbers
    131. *         - mems must be an Array of Game_Battler
    132. *         - If mems isn't specified, it'll be default to all unit members
    133. *           outside battles and battle members inside battles respectively
    134. *         - E.g.:
    135. *           $gameParty.memWithAnyBuff([0, 1]) returns the list of party
    136. *           members with any mhp or mmp buff
    137. *      6. memWithAllBuffs(paramIds, mems)
    138. *         - Returns the list of members with all buffs included by paramIds,
    139. *           which is a list of id of corresponding parameters, among all
    140. *           battlers included by mems, which is a list of battlers
    141. *         - The return value should be an Array of Game_Battler
    142. *         - paramIds must be an Array of non negative numbers
    143. *         - mems must be an Array of Game_Battler
    144. *         - If mems isn't specified, it'll be default to all unit members
    145. *           outside battles and battle members inside battles respectively
    146. *         - E.g.:
    147. *           $gameTroop.memWithAllBuffs([0, 1], $gameTroop.memWithAnyBuff([2, 3]))
    148. *           returns the list of troop members with all mhp and mmp buffs
    149. *           among those with any atk or def buff
    150. *      7. memWithoutAnyBuff(paramIds, mems)
    151. *         - Returns the list of members without any buff included by
    152. *           paramIds, which is a list of id of corresponding parameters,
    153. *           among all battlers included by mems, which is a list of battlers
    154. *         - The return value should be an Array of Game_Battler
    155. *         - paramIds must be an Array of non negative numbers
    156. *         - mems must be an Array of Game_Battler
    157. *         - If mems isn't specified, it'll be default to all unit members
    158. *           outside battles and battle members inside battles respectively
    159. *         - E.g.:
    160. *           $gameParty.memWithoutAnyBuff([0, 1]) returns the list of party
    161. *           members without any mhp or mmp buff
    162. *      8. memWithoutAllBuffs(paramIds, mems)
    163. *         - Returns the list of members without all buffs included by
    164. *           paramIds, which is a list of id of corresponding parameters,
    165. *           among all battlers included by mems, which is a list of battlers
    166. *         - The return value should be an Array of Game_Battler
    167. *         - paramIds must be an Array of non negative numbers
    168. *         - mems must be an Array of Game_Battler
    169. *         - If mems isn't specified, it'll be default to all unit members
    170. *           outside battles and battle members inside battles respectively
    171. *         - E.g.:
    172. *           $gameTroop.memWithoutAllBuffs([0, 1], $gameTroop.memWithoutAnyBuff([2, 3]))
    173. *           returns the list of troop members without all mhp and mmp buffs
    174. *           among those without any atk or def buff
    175. *      9. memWithAnyDebuff(paramIds, mems)
    176. *         - Returns the list of members with any debuff included by paramIds,
    177. *           which is a list of id of corresponding parameters, among all
    178. *           battlers included by mems, which is a list of battlers
    179. *         - The return value should be an Array of Game_Battler
    180. *         - paramIds must be an Array of non negative numbers
    181. *         - mems must be an Array of Game_Battler
    182. *         - If mems isn't specified, it'll be default to all unit members
    183. *           outside battles and battle members inside battles respectively
    184. *         - E.g.:
    185. *           $gameParty.memWithAnyDebuff([0, 1]) returns the list of party
    186. *           members with any mhp or mmp debuff
    187. *      10. memWithAllDebuffs(paramIds, mems)
    188. *         - Returns the list of members with all debuffs included by
    189. *           paramIds, which is a list of id of corresponding parameters,
    190. *           among all battlers included by mems, which is a list of battlers
    191. *         - The return value should be an Array of Game_Battler
    192. *         - paramIds must be an Array of non negative numbers
    193. *         - mems must be an Array of Game_Battler
    194. *         - If mems isn't specified, it'll be default to all unit members
    195. *           outside battles and battle members inside battles respectively
    196. *         - E.g.:
    197. *           $gameTroop.memWithAllDebuffs([0, 1], $gameTroop.memWithAnyDebuff([2, 3]))
    198. *           returns the list of troop members with all mhp and mmp debuffs
    199. *           among those with any atk or def debuff
    200. *      11. memWithoutAnyDebuff(paramIds, mems)
    201. *         - Returns the list of members without any debuff included by
    202. *           paramIds, which is a list of id of corresponding parameters,
    203. *           among all battlers included by mems, which is a list of battlers
    204. *         - The return value should be an Array of Game_Battler
    205. *         - paramIds must be an Array of non negative numbers
    206. *         - mems must be an Array of Game_Battler
    207. *         - If mems isn't specified, it'll be default to all unit members
    208. *           outside battles and battle members inside battles respectively
    209. *         - E.g.:
    210. *           $gameParty.memWithoutAnyDebuff([0, 1]) returns the list of party
    211. *           members without any mhp or mmp debuff
    212. *      12. memWithoutAllDebuffs(paramIds, mems)
    213. *         - Returns the list of members without all debuffs included by
    214. *           paramIds, which is a list of id of corresponding parameters,
    215. *           among all battlers included by mems, which is a list of battlers
    216. *         - The return value should be an Array of Game_Battler
    217. *         - paramIds must be an Array of non negative numbers
    218. *         - mems must be an Array of Game_Battler
    219. *         - If mems isn't specified, it'll be default to all unit members
    220. *           outside battles and battle members inside battles respectively
    221. *         - E.g.:
    222. *           $gameTroop.memWithoutAllDebuffs([0, 1], $gameTroop.memWithoutAnyDebuff([2, 3]))
    223. *           returns the list of troop members without all mhp and mmp debuffs
    224. *           among those without any atk or def debuff
    225. *      13. memWithAnySkill(skillIds, mems)
    226. *         - Returns the list of members with any skill included by skillIds,
    227. *           which is a list of id of corresponding skills, among all battlers
    228. *           included by mems, which is a list of battlers
    229. *         - The return value should be an Array of Game_Battler
    230. *         - skillIds must be an Array of natural numbers
    231. *         - mems must be an Array of Game_Battler
    232. *         - If mems isn't specified, it'll be default to all unit members
    233. *           outside battles and battle members inside battles respectively
    234. *         - E.g.:
    235. *           $gameParty.memWithAnySkill([1, 2]) returns the list of party
    236. *           members with skill having id 1 or 2
    237. *      14. memWithAllSkills(skillIds, mems)
    238. *         - Returns the list of members with all skills included by skillIds,
    239. *           which is a list of id of corresponding skills, among all battlers
    240. *           included by mems, which is a list of battlers
    241. *         - The return value should be an Array of Game_Battler
    242. *         - skillIds must be an Array of natural numbers
    243. *         - mems must be an Array of Game_Battler
    244. *         - If mems isn't specified, it'll be default to all unit members
    245. *           outside battles and battle members inside battles respectively
    246. *         - E.g.:
    247. *           $gameTroop.memWithAllSkills([1, 2], $gameParty.memWithAnySkill([3, 4]))
    248. *           returns the list of troop members with skills having id 1 and 2
    249. *           among those with skill having id 3 or 4
    250. *      15. memWithoutAnySkill(skillIds, mems)
    251. *         - Returns the list of members without any skill included by
    252. *           skillIds, which is a list of id of corresponding skills, among
    253. *           all battlers included by mems, which is a list of battlers
    254. *         - The return value should be an Array of Game_Battler
    255. *         - skillIds must be an Array of natural numbers
    256. *         - mems must be an Array of Game_Battler
    257. *         - If mems isn't specified, it'll be default to all unit members
    258. *           outside battles and battle members inside battles respectively
    259. *         - E.g.:
    260. *           $gameParty.memWithoutAnySkill([1, 2]) returns the list of party
    261. *           members without skills having id 1 nor 2
    262. *      16. memWithoutAllSkills(skillIds, mems)
    263. *         - Returns the list of members without all skills included by
    264. *           skillIds, which is a list of id of corresponding skills, among
    265. *           all battlers included by mems, which is a list of battlers
    266. *         - The return value should be an Array of Game_Battler
    267. *         - skillIds must be an Array of natural numbers
    268. *         - mems must be an Array of Game_Battler
    269. *         - If mems isn't specified, it'll be default to all unit members
    270. *           outside battles and battle members inside battles respectively
    271. *         - E.g.:
    272. *           $gameTroop.memWithoutAllSkills([1, 2], $gameParty.memWithoutAnySkill([3, 4]))
    273. *           returns the list of troop members without skills having id 1 and
    274. *           2 among those without skill having id 3 or 4
    275. *      17. anyHighestStatMem(stats, mems)
    276. *         - Returns the list of members whose values of
    277. *           parameters/ex-parameters/sp-parameters included by stats, which
    278. *           is a list of names of corresponding
    279. *           parameters/ex-parameters/sp-parameters, include those being the
    280. *           highest among the caller, among all battlers included by mems,
    281. *           which is a list of battlers
    282. *         - The return value should be an Array of Game_Battler
    283. *         - stats must be an Array of strings as names of Game_Battler
    284. *           properties with the get function
    285. *         - mems must be an Array of Game_Battler
    286. *         - If mems isn't specified, it'll be default to all unit members
    287. *           outside battles and battle members inside battles respectively
    288. *         - E.g.:
    289. *           $gameParty.anyHighestStatMem(["hp", "mp"]) returns the list of
    290. *           party members with the highest amount of hp or mp among the party
    291. *      18. allHighestStatsMem(stats, mems)
    292. *         - Returns the list of members whose values of
    293. *           parameters/ex-parameters/sp-parameters included by stats, which
    294. *           is a list of names of corresponding
    295. *           parameters/ex-parameters/sp-parameters, are all the highest among
    296. *           the caller, among all battlers included by mems, which is a list
    297. *           of battlers
    298. *         - The return value should be an Array of Game_Battler
    299. *         - stats must be an Array of strings as names of Game_Battler
    300. *           properties with the get function
    301. *         - mems must be an Array of Game_Battler
    302. *         - If mems isn't specified, it'll be default to all unit members
    303. *           outside battles and battle members inside battles respectively
    304. *         - E.g.:
    305. *           $gameTroop.allHighestStatsMem(["hp", "mp"], $gameTroop.anyHighestStatMem(["mhp", "mmp"]))
    306. *           returns the list of troop members with the highest amount of hp
    307. *           and mp among those with the highest amount of mhp or mmp among
    308. *           the troop
    309. *      19. notAnyHighestStatMem(stats, mems)
    310. *         - Returns the list of members whose values of
    311. *           parameters/ex-parameters/sp-parameters included by stats, which
    312. *           is a list of names of corresponding
    313. *           parameters/ex-parameters/sp-parameters, don't include those being
    314. *           the highest among the caller, among all battlers included by
    315. *           mems, which is a list of battlers
    316. *         - The return value should be an Array of Game_Battler
    317. *         - stats must be an Array of strings as names of Game_Battler
    318. *           properties with the get function
    319. *         - mems must be an Array of Game_Battler
    320. *         - If mems isn't specified, it'll be default to all unit members
    321. *           outside battles and battle members inside battles respectively
    322. *         - E.g.:
    323. *           $gameParty.notAnyHighestStatMem(["hp", "mp"]) returns the list of
    324. *           party members with neither the highest amount of hp nor mp among
    325. *           the party
    326. *      20. notAllHighestStatsMem(stats, mems)
    327. *         - Returns the list of members whose values of
    328. *           parameters/ex-parameters/sp-parameters included by stats, which
    329. *           is a list of names of corresponding
    330. *           parameters/ex-parameters/sp-parameters, aren't all the highest
    331. *           among the caller, among all battlers included by mems, which is
    332. *           a list of battlers
    333. *         - The return value should be an Array of Game_Battler
    334. *         - stats must be an Array of strings as names of Game_Battler
    335. *           properties with the get function
    336. *         - mems must be an Array of Game_Battler
    337. *         - If mems isn't specified, it'll be default to all unit members
    338. *           outside battles and battle members inside battles respectively
    339. *         - E.g.:
    340. *           $gameTroop.notAllHighestStatsMem(["hp", "mp"], $gameTroop.notAnyHighestStatMem(["mhp", "mmp"]))
    341. *           returns the list of troop members without the highest amount of
    342. *           both hp and mp among those with neither the highest amount of mhp
    343. *           nor mmp among the troop
    344. *      21. anyLowestStatMem(stats, mems)
    345. *         - Returns the list of members whose values of
    346. *           parameters/ex-parameters/sp-parameters included by stats, which
    347. *           is a list of names of corresponding
    348. *           parameters/ex-parameters/sp-parameters, include those being the
    349. *           lowest among the caller, among all battlers included by mems,
    350. *           which is a list of battlers
    351. *         - The return value should be an Array of Game_Battler
    352. *         - stats must be an Array of strings as names of Game_Battler
    353. *           properties with the get function
    354. *         - mems must be an Array of Game_Battler
    355. *         - If mems isn't specified, it'll be default to all unit members
    356. *           outside battles and battle members inside battles respectively
    357. *         - E.g.:
    358. *           $gameParty.anyLowestStatMem(["hp", "mp"]) returns the list of
    359. *           party members with the lowest amount of hp or mp among the party
    360. *      22. allLowestStatsMem(stats, mems)
    361. *         - Returns the list of members whose values of
    362. *           parameters/ex-parameters/sp-parameters included by stats, which
    363. *           is a list of names of corresponding
    364. *           parameters/ex-parameters/sp-parameters, are all the lowest among
    365. *           the caller, among all battlers included by mems, which is a list
    366. *           of battlers
    367. *         - The return value should be an Array of Game_Battler
    368. *         - stats must be an Array of strings as names of Game_Battler
    369. *           properties with the get function
    370. *         - mems must be an Array of Game_Battler
    371. *         - If mems isn't specified, it'll be default to all unit members
    372. *           outside battles and battle members inside battles respectively
    373. *         - E.g.:
    374. *           $gameTroop.allLowestStatsMem(["hp", "mp"], $gameTroop.anyLowestStatMem(["mhp", "mmp"]))
    375. *           returns the list of troop members with the lowest amount of hp
    376. *           and mp among those with the lowest amount of mhp or mmp among the
    377. *           troop
    378. *      23. notAnyLowestStatMem(stats, mems)
    379. *         - Returns the list of members whose values of
    380. *           parameters/ex-parameters/sp-parameters included by stats, which
    381. *           is a list of names of corresponding
    382. *           parameters/ex-parameters/sp-parameters, don't include those being
    383. *           the lowest among the caller, among all battlers included by mems,
    384. *           which is a list of battlers
    385. *         - The return value should be an Array of Game_Battler
    386. *         - stats must be an Array of strings as names of Game_Battler
    387. *           properties with the get function
    388. *         - mems must be an Array of Game_Battler
    389. *         - If mems isn't specified, it'll be default to all unit members
    390. *           outside battles and battle members inside battles respectively
    391. *         - E.g.:
    392. *           $gameParty.notAnyLowestStatMem(["hp", "mp"]) returns the list of
    393. *           party members with neither the lowest amount of hp nor mp among
    394. *           the party
    395. *      24. notAllLowestStatsMem(stats, mems)
    396. *         - Returns the list of members whose values of
    397. *           parameters/ex-parameters/sp-parameters included by stats, which
    398. *           is a list of names of corresponding
    399. *           parameters/ex-parameters/sp-parameters, aren't all the lowest
    400. *           among the caller, among all battlers included by mems, which is a
    401. *           list of battlers
    402. *         - The return value should be an Array of Game_Battler
    403. *         - stats must be an Array of strings as names of Game_Battler
    404. *           properties with the get function
    405. *         - mems must be an Array of Game_Battler
    406. *         - If mems isn't specified, it'll be default to all unit members
    407. *           outside battles and battle members inside battles respectively
    408. *         - E.g.:
    409. *           $gameTroop.notAllLowestStatsMem(["hp", "mp"], $gameParty.notAnyLowestStatMem(["mhp", "mmp"]))
    410. *           returns the list of troop members without the lowest amount of
    411. *           both hp and mp among those with neither the lowest amount of mhp
    412. *           nor mmp among the troop
    413. *      25. anyAboveStatMem(stats, val, mems)
    414. *         - Returns the list of members whose values of
    415. *           parameters/ex-parameters/sp-parameters included by stats, which
    416. *           is a list of names of corresponding
    417. *           parameters/ex-parameters/sp-parameters, include those above val,
    418. *           among all battlers included by mems, which is a list of battlers
    419. *         - The return value should be an Array of Game_Battler
    420. *         - stats must be an Array of strings as names of Game_Battler
    421. *           properties with the get function
    422. *         - val must be a number
    423. *         - mems must be an Array of Game_Battler
    424. *         - If mems isn't specified, it'll be default to all unit members
    425. *           outside battles and battle members inside battles respectively
    426. *         - E.g.:
    427. *           $gameParty.anyAboveStatMem(["hp", "mp"], 100) returns the list of
    428. *           party members with the value of hp or mp above 100
    429. *      26. allAboveStatMem(stats, val, mems)
    430. *         - Returns the list of members whose values of
    431. *           parameters/ex-parameters/sp-parameters included by stats, which
    432. *           is a list of names of corresponding
    433. *           parameters/ex-parameters/sp-parameters, are all above val, among
    434. *           all battlers included by mems, which is a list of battlers
    435. *         - The return value should be an Array of Game_Battler
    436. *         - stats must be an Array of strings as names of Game_Battler
    437. *           properties with the get function
    438. *         - val must be a number
    439. *         - mems must be an Array of Game_Battler
    440. *         - If mems isn't specified, it'll be default to all unit members
    441. *           outside battles and battle members inside battles respectively
    442. *         - E.g.:
    443. *           $gameTroop.allAboveStatMem(["hp", "mp"], 100, $gameTroop.anyAboveStatMem(["mhp", "mmp"], 1000))
    444. *           returns the list of troop members with the value of hp and mp
    445. *           above 100 among those with the value of mhp or mmp above 1000
    446. *      27. anyBelowStatMem(stats, val, mems)
    447. *         - Returns the list of members whose values of
    448. *           parameters/ex-parameters/sp-parameters included by stats, which
    449. *           is a list of names of corresponding
    450. *           parameters/ex-parameters/sp-parameters, include those below val,
    451. *           among all battlers included by mems, which is a list of battlers
    452. *         - The return value should be an Array of Game_Battler
    453. *         - stats must be an Array of strings as names of Game_Battler
    454. *           properties with the get function
    455. *         - val must be a number
    456. *         - mems must be an Array of Game_Battler
    457. *         - If mems isn't specified, it'll be default to all unit members
    458. *           outside battles and battle members inside battles respectively
    459. *         - E.g.:
    460. *           $gameParty.anyBelowStatMem(["hp", "mp"], 100) returns the list of
    461. *           party members with the value of hp or mp below 100
    462. *      28. allBelowStatMem(stats, val, mems)
    463. *         - Returns the list of members whose values of
    464. *           parameters/ex-parameters/sp-parameters included by stats, which
    465. *           is a list of names of corresponding
    466. *           parameters/ex-parameters/sp-parameters, are all below val, among
    467. *           all battlers included by mems, which is a list of battlers
    468. *         - The return value should be an Array of Game_Battler
    469. *         - stats must be an Array of strings as names of Game_Battler
    470. *           properties with the get function
    471. *         - val must be a number
    472. *         - mems must be an Array of Game_Battler
    473. *         - If mems isn't specified, it'll be default to all unit members
    474. *           outside battles and battle members inside battles respectively
    475. *         - E.g.:
    476. *           $gameTroop.allBelowStatMem(["hp", "mp"], 100, $gameTroop.anyBelowStatMem(["mhp", "mmp"], 1000))
    477. *           returns the list of troop members with the value of hp and mp
    478. *           below 100 among those with the value of mhp or mmp below 1000
    479. *      (v1.01a+)29. memWithAnyUsableSkill(skillIds, mems)
    480. *         - Returns the list of members with any usable skill included by
    481. *           skillIds, which is a list of id of corresponding skills, among
    482. *           all battlers included by mems, which is a list of battlers
    483. *         - The return value should be an Array of Game_Battler
    484. *         - skillIds must be an Array of natural numbers
    485. *         - mems must be an Array of Game_Battler
    486. *         - If mems isn't specified, it'll be default to all unit members
    487. *           outside battles and battle members inside battles respectively
    488. *         - E.g.:
    489. *           $gameParty.memWithAnyUsableSkill([1, 2]) returns the list of
    490. *           party members with usable skill having id 1 or 2
    491. *      (v1.01a+)30. memWithAllUsableSkills(skillIds, mems)
    492. *         - Returns the list of members with all usable skills included by
    493. *           skillIds, which is a list of id of corresponding skills, among
    494. *           all battlers included by mems, which is a list of battlers
    495. *         - The return value should be an Array of Game_Battler
    496. *         - skillIds must be an Array of natural numbers
    497. *         - mems must be an Array of Game_Battler
    498. *         - If mems isn't specified, it'll be default to all unit members
    499. *           outside battles and battle members inside battles respectively
    500. *         - E.g.:
    501. *           $gameTroop.memWithAllUsableSkills([1, 2], $gameParty.memWithAnyUsableSkill([3, 4]))
    502. *           returns the list of troop members with usable skills having id 1
    503. *           and 2 among those with usable skill having id 3 or 4
    504. *      (v1.01a+)31. memWithoutAnyUsableSkill(skillIds, mems)
    505. *         - Returns the list of members without any usable skill included by
    506. *           skillIds, which is a list of id of corresponding skills, among
    507. *           all battlers included by mems, which is a list of battlers
    508. *         - The return value should be an Array of Game_Battler
    509. *         - skillIds must be an Array of natural numbers
    510. *         - mems must be an Array of Game_Battler
    511. *         - If mems isn't specified, it'll be default to all unit members
    512. *           outside battles and battle members inside battles respectively
    513. *         - E.g.:
    514. *           $gameParty.memWithoutAnyUsableSkill([1, 2]) returns the list of
    515. *           party members without usable skills having id 1 nor 2
    516. *      (v1.01a+)32. memWithoutAllUsableSkills(skillIds, mems)
    517. *         - Returns the list of members without all usable skills included by
    518. *           skillIds, which is a list of id of corresponding skills, among
    519. *           all battlers included by mems, which is a list of battlers
    520. *         - The return value should be an Array of Game_Battler
    521. *         - skillIds must be an Array of natural numbers
    522. *         - mems must be an Array of Game_Battler
    523. *         - If mems isn't specified, it'll be default to all unit members
    524. *           outside battles and battle members inside battles respectively
    525. *         - E.g.:
    526. *           $gameTroop.memWithoutAllUsableSkills([1, 2], $gameParty.memWithoutAnyUsableSkill([3, 4]))
    527. *           returns the list of troop members without usable skills having id
    528. *           1 and 2 among those without usable skill having id 3 or 4
    复制代码


    Spoiler: Author Notes
                    Code:        
    1. *      1. This plugin's meant to be a convenience tool to facilitate the use
    2. *         of some unit filters that aren't already available from the default
    3. *         RMMZ codebase, so you're still supposed to write some Javascript
    4. *         codes with the aid of the new script calls provided by this plugin.
    复制代码


    Spoiler: Prerequisites
                    Code:        
    1. *      Abilities:
    2. *      1. Nothing special for most ordinary cases
    3. *      2. Little RMMZ plugin development proficiency to fully utilize this
    4. *         (Elementary Javascript exposures being able to write beginner codes
    5. *         up to 300LoC scale )
    复制代码


    Spoiler: Terms Of Use
                    Code:        
    1. *      1. Commercial use's always allowed and crediting me's always optional.
    2. *      2. You shall keep this plugin's Plugin Info part's contents intact.
    3. *      3. You shalln't claim that this plugin's written by anyone other than
    4. *         DoubleX or my aliases. I always reserve the right to deny you from
    5. *         using any of my plugins anymore if you've violated this.
    6. *      4. If you repost this plugin directly(rather than just linking back),
    7. *         you shall inform me of these direct repostings. I always reserve
    8. *         the right to request you to edit those direct repostings.
    9. *      5. CC BY 4.0, except those conflicting with any of the above, applies
    10. *         to this plugin, unless you've my permissions not needing follow so.
    11. *      6. I always reserve the right to deny you from using this plugin
    12. *         anymore if you've violated any of the above.
    复制代码


    Spoiler: Contributors
                    Code:        
    1. *      Authors:
    2. *      1. DoubleX
    3. *      Plugin Development Collaborators:
    4. *      - None So Far
    5. *      Bug Reporters:
    6. *      - None So Far
    7. *      Compatibility Issue Raisers:
    8. *      - None So Far
    9. *      Feature Requesters:
    10. *      - None So Far
    复制代码


    Spoiler: Changelog
                    Code:        
    1. *      { codebase: "1.0.2", plugin: "v1.02a" }(2020 Oct 6 GMT 1600):
    2. *      1. Added the plugin query and command counterparts for the script
    3. *         calls of this plugin
    4. *      { codebase: "1.0.0", plugin: "v1.01a" }(2020 Aug 28 GMT 0000):
    5. *      1. Added the following battler manipulation script calls  -
    6. *         - hasAnyUsableSkill(skillIds)
    7. *         - hasAllUsableSkills(skillIds)
    8. *      2. Added the following unit manipulation script calls  -
    9. *         - memWithAnyUsableSkill(skillIds, mems)
    10. *         - memWithAllUsableSkills(skillIds, mems)
    11. *         - memWithoutAnyUsableSkill(skillIds, mems)
    12. *         - memWithoutAllUsableSkills(skillIds, mems)
    13. *      { codebase: "1.0.0", plugin: "v1.00a" }(2020 Aug 23 GMT 0400):
    14. *      1. 1st version of this plugin finished
    复制代码


    Download Link
    Demo Link


    本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmmz-unit-filters.125807/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 15:58 , Processed in 0.143283 second(s), 51 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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