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

[转载发布] A level 3 mage's plugins [various]

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9072

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-7-27 08:13:18 | 显示全部楼层 |阅读模式
    AttackTimes
    Description
    Makes all skills in the game be treated as basic attacks, causing them to benefit from the attack Times feature of states and gear.  Additionally, you can prevent this be putting <Times:0> in the note tags.


    Script
                    Code:       
    1. //=============================================================================
    2. // AttackTimes.js
    3. //=============================================================================
    4. /*:
    5. * @plugindesc All skills are treated as basic attacks by the game
    6. * @author by Alevel3mage
    7. *
    8. *
    9. * @help All skills are treated as basic attacks causing them to have an attack swing
    10. * Benefit from the "attacktimes" effect you can prevent this be putting <Times:0> in the note tags for a specific skill.
    11. *
    12. */
    13. (function(){
    14. Game_Action.prototype.isAttack = function() {
    15.     return (this._item.isSkill())?true:false;
    16. };
    17. })();
    18. (function(){
    19. Game_Action.prototype.numRepeats = function() {
    20.     var repeats = this.item().repeats;
    21.     if (this.isAttack()) {
    22.         var noTimes = this.item().meta.times || 1;
    23.         repeats = repeats + noTimes * (1 * this.subject().attackTimesAdd());
    24.     }
    25.     return Math.floor(repeats);
    26. };
    27. })();
    复制代码


    Colors
    Allows the use of note tages to change the colour of items, equipment and classes when written by the game.  Original by kranasAngel, modified by me to allow changing class colours.

                    Code:       
    1. //=============================================================================
    2. // Colors.js
    3. //=============================================================================
    4. /*:
    5. * @plugindesc Allows you to assign items and equipment colors. Modified by alevel3mage to allow class colours aswell
    6. * @author kranasAngel modified by Alevel3mage
    7. *
    8. *
    9. * @help Changes the Item's color based on the notetag
    10. * <itemColor:x>
    11. * Changes the Class' color based on the notetag
    12. * <color:x>
    13. * Where x is the color code that you want.
    14. * To find Rpg maker color codes, search rpg maker color codes, or something similar.
    15. *
    16. *   
    17. *
    18. *
    19. *
    20. *
    21. */
    22. (function(){
    23. Window_Base.prototype.drawItemName = function(item, x, y, width) {width = width || 312; if (item) {
    24.     var iconBoxWidth = Window_Base._iconWidth + 4;
    25.     this.resetTextColor();
    26.     this.drawIcon(item.iconIndex, x + 2, y + 2);
    27.     if (typeof item.meta.color !== "undefined"){
    28.         var element = parseInt(item.meta.color);
    29.         this.changeTextColor(this.textColor(element))
    30.         console.log("item Color" + element);
    31.         };
    32.     this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
    33.     this.resetTextColor();
    34.     };
    35.     };
    36. })();
    37. (function(){
    38. Window_Base.prototype.drawActorClass = function(actor, x, y, width) {
    39. width = width || 168;
    40. this.resetTextColor();
    41. if(actor.currentClass().meta.color !== "undefined"){
    42. var element = parseInt(actor.currentClass().meta.color);
    43. console.log("Class Color" + element);}
    44. this.changeTextColor(this.textColor(element));
    45. this.drawText(actor.currentClass().name +" | "+ actor.nickname(), x, y, width);
    46. this.resetTextColor();
    47. };
    48. })();
    复制代码


    titleMovie
    Plays a movie using RPGmaker's built in movie player on an interval when on the title screen

                    Code:       
    1. //=============================================================================
    2. // TitleMovie.js
    3. //=============================================================================
    4. /*:
    5. * @plugindesc Plays a video after a certain delay whilst on the title screen.
    6. *
    7. *
    8. * @author by Alevel3mage
    9. *
    10. @param ---General---
    11. * @default
    12. *
    13. * @param FileName
    14. * @desc the filename for the movie, file must be in "movies" folder
    15. * @type String
    16. * @param Interval
    17. * @desc the time it takes for the movie to play since the last time it played, I think it is in milliseconds, don't quote me on that though, experiment
    18. * @type Integer
    19. */
    20. (function(){
    21.     Scene_Title.prototype.start = function() {
    22.     Scene_Base.prototype.start.call(this);
    23.     SceneManager.clearStack();
    24.     this._interpreter = new Game_Interpreter();
    25.     this.centerSprite(this._backSprite1);
    26.     this.centerSprite(this._backSprite2);
    27.     this.playTitleMusic();
    28.     this.startFadeIn(this.fadeSpeed(), false);
    29.    
    30. };
    31. })();
    32. (function(){
    33.    
    34.     var count = 0;
    35. Scene_Title.prototype.update = function() {
    36.    
    37.     var params = PluginManager.parameters('TitleMovie');
    38.     var cap = Number(params['Interval'] || '');;
    39.     if (!this.isBusy()) {
    40.         this._commandWindow.open();
    41.     }
    42.     count +=1;
    43.     console.log(count)
    44.     if(count >= cap){
    45.         this.movie(this._interpreter);
    46.         count = 0;
    47.     }
    48.     Scene_Base.prototype.update.call(this);
    49. };
    50. })();
    51. (function(){
    52.    
    53.    
    54. Scene_Title.prototype.movie = function(Interpreter){
    55.     var params = PluginManager.parameters('TitleMovie');
    56.     var name = String(params['FileName'] || '');;
    57.         if (name.length > 0) {
    58.             var ext = Interpreter.videoFileExt();
    59.             Graphics.playVideo('movies/' + name + ext);
    60.             Interpreter.setWaitMode('video');
    61.         }
    62.    
    63.    
    64. };
    65. })();
    复制代码


    TP control.
    Use states(yanfly's passive states preferably) to customise TP cap.  Additionally disables random TP.
                    Code:       
    1. //=============================================================================
    2. // TPcontrol.js
    3. //=============================================================================
    4. /*:
    5. * @plugindesc Some custom TP values based on states, best used with passive states from yanfly
    6. * @author by Alevel3mage
    7. *
    8. @param ---General---
    9. * @default
    10. *
    11. * @param  State1Num
    12. * @desc Which state ID has the highest priority to change TP value.
    13. * @default 152
    14. *
    15. * @param  State1val
    16. * @desc What value does State 1 set tp to.
    17. * @default 1
    18. *
    19.   * @param  State2Num
    20. * @desc Which state ID has the second highest priority to change TP value.
    21. * @default 153
    22. *
    23. * @param  State2val
    24. * @desc What value does State 2 set tp to.
    25. * @default 2
    26. *
    27.   * @param  State3Num
    28. * @desc Which state ID has the third highest priority to change TP value.
    29. * @default 154
    30. *
    31. * @param  State3val
    32. * @desc What value does State 3 set tp to.
    33. * @default 6
    34. *
    35.   * @param  State4Num
    36. * @desc Which state ID has the highest priority to change TP value.
    37. * @default 155
    38. *
    39. * @param  State4val
    40. * @desc What value does State 4 set tp to.
    41. * @default 32
    42. *
    43.   * @param  State5Num
    44. * @desc Which state ID has the highest priority to change TP value.
    45. * @default 156
    46. *
    47. * @param  State5val
    48. * @desc What value does State 5 set tp to.
    49. * @default 128
    50. *
    51.   * @param  State6Num
    52. * @desc Which state ID has the highest priority to change TP value.
    53. * @default 157
    54. *
    55. * @param  State6val
    56. * @desc What value does State 6 set tp to.
    57. * @default 8
    58. *
    59.   * @param  State7Num
    60. * @desc Which state ID has the highest priority to change TP value.
    61. * @default 158
    62. *
    63. * @param  State7val
    64. * @desc What value does State 7 set tp to.
    65. * @default 5
    66. *
    67.   * @param  State8Num
    68. * @desc Which state ID has the highest priority to change TP value.
    69. * @default 159
    70. *
    71. * @param  State8val
    72. * @desc What value does State 8 set tp to.
    73. * @default 6
    74. *
    75.   * @param  State9Num
    76. * @desc Which state ID has the highest priority to change TP value.
    77. * @default 160
    78. *
    79. * @param  State9val
    80. * @desc What value does State 9 set tp to.
    81. * @default 10
    82. *
    83.   * @param  State10Num
    84. * @desc Which state ID has the highest priority to change TP value.
    85. * @default 161
    86. *
    87. * @param  State10val
    88. * @desc What value does State 10 set tp to.
    89. * @default 4
    90. *
    91. * @param  State11Num
    92. * @desc Which state ID has the highest priority to change TP value.
    93. * @default 162
    94. *
    95. * @param  State11val
    96. * @desc What value does State 11 set tp to.
    97. * @default 10
    98. *
    99.   * @param  State12Num
    100. * @desc Which state ID has the highest priority to change TP value.
    101. * @default 163
    102. *
    103. * @param  State12val
    104. * @desc What value does State 12 set tp to.
    105. * @default 100
    106. *
    107.   * @param  State13Num
    108. * @desc Which state ID has the highest priority to change TP value.
    109. * @default 164
    110. *
    111. * @param  State13val
    112. * @desc What value does State 13 set tp to.
    113. * @default 12
    114. *
    115.   * @param  State14Num
    116. * @desc Which state ID has the highest priority to change TP value.
    117. * @default 165
    118. *
    119.   * @param  State14val
    120. * @desc What value does State 14 set tp to.
    121. * @default 24
    122. *
    123.    * @param  StateHPNum
    124. * @desc Which state ID  changes TP value to be the characters max hp.
    125. * @default 166
    126. *
    127.    * @param  StateMPNum
    128. * @desc Which state ID  changes TP value to be the characters max mp.
    129. * @default 167
    130. *
    131.    * @param  StateATKNum
    132. * @desc Which state ID  changes TP value to be the characters atk.
    133. * @default 168
    134. *
    135.    * @param  StateDEFNum
    136. * @desc Which state ID  changes TP value to be the characters def.
    137. * @default 169
    138. *
    139.    * @param  StateMATNum
    140. * @desc Which state ID  changes TP value to be the characters mat.
    141. * @default 170
    142. *
    143.    * @param  StateMDFNum
    144. * @desc Which state ID  changes TP value to be the characters mdf.
    145. * @default 171
    146. *
    147.     * @param  StateAGINum
    148. * @desc Which state ID  changes TP value to be the characters agi.
    149. * @default 172
    150. *
    151.    * @param  StateLUKNum
    152. * @desc Which state ID  changes TP value to be the characters luk.
    153. * @default 173
    154. *
    155. * @help set state ID to 0 to disable
    156. *
    157. */
    158. var params = PluginManager.parameters('TPcontrol');
    159. var state1num = Number(params['State1Num']||152);
    160. var state1val = Number(params['State1val']||1);
    161. var state2num = Number(params['State2Num']||152);
    162. var state2val = Number(params['State2val']||1);
    163. var state3num = Number(params['State3Num']||152);
    164. var state3val = Number(params['State3val']||1);
    165. var state4num = Number(params['State4Num']||152);
    166. var state4val = Number(params['State4val']||1);
    167. var state5num = Number(params['State5Num']||152);
    168. var state5val = Number(params['State5val']||1);
    169. var state6num = Number(params['State6Num']||152);
    170. var state6val = Number(params['State6val']||1);
    171. var state7num = Number(params['State7Num']||152);
    172. var state7val = Number(params['State7val']||1);
    173. var state8num = Number(params['State8Num']||152);
    174. var state8val = Number(params['State8val']||1);
    175. var state9num = Number(params['State9Num']||152);
    176. var state9val = Number(params['State9val']||1);
    177. var state10num = Number(params['State10Num']||152);
    178. var state10val = Number(params['State10val']||1);
    179. var state11num = Number(params['State11Num']||152);
    180. var state11val = Number(params['State11val']||1);
    181. var state12num = Number(params['State12Num']||152);
    182. var state12val = Number(params['State12val']||1);
    183. var state13num = Number(params['State13Num']||152);
    184. var state13val = Number(params['State13val']||1);
    185. var state14num = Number(params['State14Num']||152);
    186. var state14val = Number(params['State14val']||1);
    187. var stateHPnum = Number(params['StateHPNum']||152);
    188. var stateMPnum = Number(params['StateMPNum']||1);
    189. var stateATKnum = Number(params['StateATKNum']||152);
    190. var stateDEFnum = Number(params['StateDEFNum']||1);
    191. var stateMATnum = Number(params['StateMATNum']||152);
    192. var stateMDFnum = Number(params['StateMDFNum']||1);
    193. var stateAGInum = Number(params['StateAGINum']||152);
    194. var stateLUKnum = Number(params['StateLUKNum']||1);
    195. (function(){
    196. Game_BattlerBase.prototype.maxTp = function() {
    197.     var tp_value = 1;
    198. if (this.isStateAffected(state1num)) {
    199.     tp_value = state1val;
    200.     }else if(this.isStateAffected(state2num)){
    201.     tp_value = state2val;
    202.     }else if(this.isStateAffected(state3num)){
    203.     tp_value = state3val;
    204.     }else if(this.isStateAffected(state4num)){
    205.     tp_value = state4val;
    206.     }else if(this.isStateAffected(state5num)){
    207.     tp_value = state5val;
    208.     }else if(this.isStateAffected(state6num)){
    209.     tp_value = state6val;
    210.     }else if(this.isStateAffected(state7num)){
    211.     tp_value = state7val;
    212.     }else if(this.isStateAffected(state8num)){
    213.     tp_value = state8val;
    214.     }else if(this.isStateAffected(state9num)){
    215.     tp_value = state9val;
    216.     }else if(this.isStateAffected(state10num)){
    217.     tp_value = state10val;
    218.     }else if(this.isStateAffected(state11num)){
    219.     tp_value = state11val;
    220.     }else if(this.isStateAffected(state12num)){
    221.     tp_value = state12val;
    222.     }else if(this.isStateAffected(state13num)){
    223.     tp_value = state13val;
    224.     }else if(this.isStateAffected(state14num)){
    225.     tp_value = state14val;
    226.     }else if(this.isStateAffected(stateHPnum)){
    227.     tp_value = this.param(0);
    228.     }else if(this.isStateAffected(stateMPnum)){
    229.     tp_value = this.param(1);
    230.     }else if(this.isStateAffected(stateATKnum)){
    231.     tp_value = this.param(2);
    232.     }else if(this.isStateAffected(stateDEFnum)){
    233.     tp_value = this.param(3);
    234.     }else if(this.isStateAffected(stateMATnum)){
    235.     tp_value = this.param(4);
    236.     }else if(this.isStateAffected(stateMDFnum)){
    237.     tp_value = this.param(5);
    238.     }else if(this.isStateAffected(stateAGInum)){
    239.     tp_value = this.param(6) * 3;
    240.     }else if(this.isStateAffected(stateLUKnum)){
    241.     tp_value = this.param(7);
    242.     }else{
    243.         tp_value = 1;
    244. }
    245.    
    246.   return tp_value;
    247. };
    248. })();
    249. (function(){
    250. Game_Battler.prototype.initTp = function() {
    251.     this.setTp(0);
    252. };
    253. })();
    254. (function(){
    255. Game_Battler.prototype.chargeTpByDamage = function(damageRate) {
    256.     this.gainSilentTp(0);
    257. };
    258. })();
    复制代码




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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-22 07:52 , Processed in 0.106267 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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