设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
楼主: fhh2626
打印 上一主题 下一主题

[原创发布] 最大参战人数修改v1.1完美版_修复状态显示

[复制链接]

Lv2.观梦者

梦石
0
星屑
382
在线时间
28 小时
注册时间
2022-5-23
帖子
18
11
发表于 2022-5-31 09:58:52 | 只看该作者
厉害
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
26
在线时间
1 小时
注册时间
2022-8-18
帖子
9
12
发表于 2022-8-23 00:30:26 | 只看该作者
这个真不错人多力量大
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1268
在线时间
160 小时
注册时间
2022-9-17
帖子
101
13
发表于 2022-9-19 05:59:40 | 只看该作者
ggsfeng 发表于 2022-5-27 11:49
10人参战也可以的吗。。

经测试,10人效果很不错哦
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1268
在线时间
160 小时
注册时间
2022-9-17
帖子
101
14
发表于 2022-9-19 08:14:03 | 只看该作者
本帖最后由 古树旋律 于 2022-9-19 08:22 编辑
克利姆 发表于 2022-3-20 23:58
位置可以改改吗,5人的时候最下面的人会被挡住






这是自己魔改的8人SVActorPositionMZ脚本,照葫芦画瓢即可。

https://rpg.blue/forum.php?mod=attachment&aid=MzkyODIwfGZjZTViMDhmMTY0Mjk5ZDg2NTI5ZTczZTg2ZjIyNjFkfDE3MTU1NzQ0OTQ%3D&request=yes&_f=.rar
SVActorPositionMZpro插件.rar (3.35 KB, 下载次数: 20)

  1. //=============================================================================
  2. // Plugin for RPG Maker MZ
  3. // SVActorPositionMZ.js
  4. //=============================================================================
  5. // [Update History]


  6. // This plugin is MZ version of SVActorPosition.js the KADOKAWA RMMV Plugin.

  7. /*:
  8. * @target MZ
  9. * @plugindesc Change actors' position on screen at sideview battle.
  10. * @author Sasuke KANNAZUKI
  11. *
  12. * @param actor1 Xpos
  13. * @desc X position formula of actor1's center.
  14. * (default:600)
  15. * @type text
  16. * @default 600
  17. *
  18. * @param actor1 Ypos
  19. * @desc Y position formula of actor1's bottom.
  20. * (default:280)
  21. * @type text
  22. * @default 280
  23. *
  24. * @param actor2 Xpos
  25. * @desc X position formula of actor2's center.
  26. * (default:600 + 32) =632
  27. * @type text
  28. * @default 600 + 32
  29. *
  30. * @param actor2 Ypos
  31. * @desc Y position formula of actor2's bottom.
  32. * (default:280 + 48) =328
  33. * @type text
  34. * @default 280 + 48
  35. *
  36. * @param actor3 Xpos
  37. * @desc X position formula of actor3's center.
  38. * (default:600 + 32 * 2) =664
  39. * @type text
  40. * @default 600 + 32 * 2
  41. *
  42. * @param actor3 Ypos
  43. * @desc Y position formula of actor3's bottom.
  44. * (default:280 + 48 * 2) =376
  45. * @type text
  46. * @default 280 + 48 * 2
  47. *
  48. * @param actor4 Xpos
  49. * @desc X position formula of actor4's center.
  50. * (default:600 + 32 * 3) =696
  51. * @type text
  52. * @default 600 + 32 * 3
  53. *
  54. * @param actor4 Ypos
  55. * @desc Y position formula of actor4's bottom.
  56. * (default:280 + 48 * 3) =424
  57. * @type text
  58. * @default 280 + 48 * 3
  59. *
  60. * @param actor5 Xpos
  61. * @desc X position formula of actor1's center.
  62. * (default:600)
  63. * @type text
  64. * @default 600
  65. *
  66. * @param actor5 Ypos
  67. * @desc Y position formula of actor1's bottom.
  68. * (default:280)
  69. * @type text
  70. * @default 280
  71. *
  72. * @param actor6 Xpos
  73. * @desc X position formula of actor2's center.
  74. * (default:600 + 32) =632
  75. * @type text
  76. * @default 600 + 32
  77. *
  78. * @param actor6 Ypos
  79. * @desc Y position formula of actor2's bottom.
  80. * (default:280 + 48) =328
  81. * @type text
  82. * @default 280 + 48
  83. *
  84. * @param actor7 Xpos
  85. * @desc X position formula of actor3's center.
  86. * (default:600 + 32 * 2) =664
  87. * @type text
  88. * @default 600 + 32 * 2
  89. *
  90. * @param actor7 Ypos
  91. * @desc Y position formula of actor3's bottom.
  92. * (default:280 + 48 * 2) =376
  93. * @type text
  94. * @default 280 + 48 * 2
  95. *
  96. * @param actor8 Xpos
  97. * @desc X position formula of actor4's center.
  98. * (default:600 + 32 * 3) =696
  99. * @type text
  100. * @default 600 + 32 * 3
  101. *
  102. * @param actor8 Ypos
  103. * @desc Y position formula of actor4's bottom.
  104. * (default:280 + 48 * 3) =424
  105. * @type text
  106. * @default 280 + 48 * 3
  107. *
  108. * @command set
  109. * @text SV Actor Set Position
  110. * @desc Set either x or y axis.
  111. *
  112. * @arg actorPos
  113. * @text Actor Position
  114. * @desc 1=top 2,3,4...
  115. * Note: this isn't actor ID.
  116. * @max 99
  117. * @min 1
  118. * @type number
  119. * @default 1
  120. *
  121. * @arg axis
  122. * @desc X or Y
  123. * @type select
  124. * @option X
  125. * @value X
  126. * @option Y
  127. * @value Y
  128. * @default X
  129. *
  130. * @arg dispPos
  131. * @text Coord
  132. * @desc number or formula
  133. * @type text
  134. * @default 200
  135. *
  136. * @help
  137. * This plugin runs under RPG Maker MZ.
  138. *
  139. * This plugin enables to change the positions of sideview actors.
  140. *
  141. * [Summary]
  142. * By option, you can set the position not only number but also formula.
  143. * (ex. 200 + $gameVarables.value(1) )
  144. * If your system's battle attend actor's number > 4,
  145. * then, set by plugin command.
  146. *
  147. * This plugin also assumes the use of diffrent (from specified) size
  148. * SV actor graphics.
  149. *
  150. * [Plugin Command]
  151. * Set actor's position, XorY, and Coord.
  152. * Coord accepts not only number but also formula.
  153. * for example...
  154. * 640    # number
  155. * 472
  156. * $gameVariables.value(20)    # variable
  157. * 320 + 48 * $gameVariables.value(15)      #formula
  158. *
  159. * [configuration at Actor's note]
  160. * <SVWeaponHeight:12>
  161. * Weapon animation's height of the sideview actor.
  162. * In this case, Y position is heigher 12px by the defalut.
  163. * - It also accepts minus value,
  164. *   because it assumes when you make smaller actor.
  165. * - If this isn't written, default value 0 is used.
  166. *
  167. * Weapon animation's X position is automatically corrected
  168. *   according to the actor graphics size.
  169. * If you feel it isn't natural, you can optimize the X position.
  170. * <SVWeaponRight:20>
  171. * In this case weapon animation moves right 20 pixels.
  172. * If the value is minus, animation moves left.
  173. *
  174. *
  175. * [License]
  176. * this plugin is released under MIT license.
  177. * http://opensource.org/licenses/mit-license.php
  178. *
  179. */
  180. /*:ja
  181. * @target MZ
  182. * @plugindesc サイドビュー戦闘においてアクター達の画面表示位置を設定します。
  183. * @author 神無月サスケ
  184. *
  185. * @param actor1 Xpos
  186. * @desc アクター1の中心のX座標の式です。
  187. * (初期値:600)
  188. * @type text
  189. * @default 600
  190. *
  191. * @param actor1 Ypos
  192. * @desc アクター1の足元のY座標の式です。
  193. * (初期値:280)
  194. * @type text
  195. * @default 280
  196. *
  197. * @param actor2 Xpos
  198. * @desc アクター2の中心のX座標の式です。
  199. * (初期値:600 + 32) =632
  200. * @type text
  201. * @default 600 + 32
  202. *
  203. * @param actor2 Ypos
  204. * @desc アクター2の足元のY座標の式です。
  205. * (初期値:280 + 48) =328
  206. * @type text
  207. * @default 280 + 48
  208. *
  209. * @param actor3 Xpos
  210. * @desc アクター3の中心のX座標の式です。
  211. * (初期値:600 + 32 * 2) =664
  212. * @type text
  213. * @default 600 + 32 * 2
  214. *
  215. * @param actor3 Ypos
  216. * @desc アクター3の足元のY座標の式です。
  217. * (初期値:280 + 48 * 2) =376
  218. * @type text
  219. * @default 280 + 48 * 2
  220. *
  221. * @param actor4 Xpos
  222. * @desc アクター4の中心のX座標の式です。
  223. * (初期値:600 + 32 * 3) =696
  224. * @type text
  225. * @default 600 + 32 * 3
  226. *
  227. * @param actor4 Ypos
  228. * @desc アクター4の足元のY座標の式です。
  229. * (初期値:280 + 48 * 3) =424
  230. * @type text
  231. * @default 280 + 48 * 3
  232. *
  233. * @param actor5 Xpos
  234. * @desc アクター1の中心のX座標の式です。
  235. * (初期値:600)
  236. * @type text
  237. * @default 600
  238. *
  239. * @param actor5 Ypos
  240. * @desc アクター1の足元のY座標の式です。
  241. * (初期値:280)
  242. * @type text
  243. * @default 280
  244. *
  245. * @param actor6 Xpos
  246. * @desc アクター2の中心のX座標の式です。
  247. * (初期値:600 + 32) =632
  248. * @type text
  249. * @default 600 + 32
  250. *
  251. * @param actor6 Ypos
  252. * @desc アクター2の足元のY座標の式です。
  253. * (初期値:280 + 48) =328
  254. * @type text
  255. * @default 280 + 48
  256. *
  257. * @param actor7 Xpos
  258. * @desc アクター3の中心のX座標の式です。
  259. * (初期値:600 + 32 * 2) =664
  260. * @type text
  261. * @default 600 + 32 * 2
  262. *
  263. * @param actor7 Ypos
  264. * @desc アクター3の足元のY座標の式です。
  265. * (初期値:280 + 48 * 2) =376
  266. * @type text
  267. * @default 280 + 48 * 2
  268. *
  269. * @param actor8 Xpos
  270. * @desc アクター4の中心のX座標の式です。
  271. * (初期値:600 + 32 * 3) =696
  272. * @type text
  273. * @default 600 + 32 * 3
  274. *
  275. * @param actor8 Ypos
  276. * @desc アクター4の足元のY座標の式です。
  277. * (初期値:280 + 48 * 3) =424
  278. * @type text
  279. * @default 280 + 48 * 3
  280. *
  281. * @command set
  282. * @text SVアクター座標設定
  283. * @desc XかY座標のセット
  284. *
  285. * @arg actorPos
  286. * @text アクター位置
  287. * @desc トップが1で何番目?
  288. * 注:アクターIDではない
  289. * @max 99
  290. * @min 1
  291. * @type number
  292. * @default 1
  293. *
  294. * @arg axis
  295. * @text XかY
  296. * @desc
  297. * @type select
  298. * @option X
  299. * @value X
  300. * @option Y
  301. * @value Y
  302. * @default X
  303. *
  304. * @arg dispPos
  305. * @text 座標
  306. * @desc 数値または式で指定
  307. * @type text
  308. * @default 200
  309. *
  310. * @help
  311. * このプラグインは、RPGツクールMZに対応しています。
  312. *
  313. * このプラグインは、サイドビュー戦闘でのアクターの座標を変更可能です。
  314. *
  315. * ■概要
  316. * 位置をオプションで指定する場合、数値の他に、数式での指定も可能です。
  317. *
  318. * また、プラグインコマンドでの変更も可能で、
  319. * 仮に5人以上のアクターがいるシステムでは、こちらで設定が出来ます。
  320. *
  321. * このプラグインは、標準素材とは異なったサイズのSVアクター画像での使用も
  322. * 想定しています。
  323. *
  324. * ■プラグインコマンド
  325. * アクターの位置、XまたはY、座標を設定します。
  326. * 座標は値か式にします。以下のような設定が可能です。
  327. * ・640 や 472 といった値
  328. * ・$gameVariables.value(20)
  329. * ・320 + 48 * $gameVariables.value(15)
  330. *
  331. * ■アクターのメモによる設定
  332. * <SVWeaponHeight:12>
  333. * サイドビューアクターの武器アニメの表示Y座標の高さを設定します。
  334. * この例では、通常より12ピクセル高い位置に表示されます。
  335. * - 標準より小さなアクター画像の作成を想定して、マイナス値も受け付けます。
  336. * - 記述を省略した場合、デフォルトの0が採用されます。
  337. *
  338. * 武器アニメのX座標は、アクター画像のサイズによって自動的に補正されます。
  339. * もしそれで不自然な場合は、以下の書式でメモに書いてください。
  340. * <SVWeaponRight:20>
  341. * サイドビューアクターの武器アニメの表示X座標を右寄りに補正します。
  342. * この例では、通常より20ピクセル右位置に表示されます。
  343. * マイナス値にすることで、左寄りの表示も可能です。
  344. *
  345. *
  346. * ■ライセンス表記
  347. * このプラグインは MIT ライセンスで配布されます。
  348. * ご自由にお使いください。
  349. * http://opensource.org/licenses/mit-license.php
  350. *
  351. */

  352. (() => {

  353.   const pluginName = 'SVActorPositionMZPro'

  354.   //
  355.   // process parameters
  356.   //
  357.   const parameters = PluginManager.parameters(pluginName);
  358.   let SVActorX = new Array(8);
  359.   let SVActorY = new Array(8);
  360.   SVActorX[0] = eval(parameters['actor1 Xpos'] || '1000');
  361.   SVActorX[1] = eval(parameters['actor2 Xpos'] || '1032');
  362.   SVActorX[2] = eval(parameters['actor3 Xpos'] || '1064');
  363.   SVActorX[3] = eval(parameters['actor4 Xpos'] || '1096');
  364.   SVActorX[4] = eval(parameters['actor5 Xpos'] || '1200');
  365.   SVActorX[5] = eval(parameters['actor6 Xpos'] || '1232');
  366.   SVActorX[6] = eval(parameters['actor7 Xpos'] || '1264');
  367.   SVActorX[7] = eval(parameters['actor8 Xpos'] || '1296');
  368.   SVActorY[0] = eval(parameters['actor1 Ypos'] || '280');
  369.   SVActorY[1] = eval(parameters['actor2 Ypos'] || '328');
  370.   SVActorY[2] = eval(parameters['actor3 Ypos'] || '376');
  371.   SVActorY[3] = eval(parameters['actor4 Ypos'] || '424');
  372.   SVActorY[4] = eval(parameters['actor5 Ypos'] || '280');
  373.   SVActorY[5] = eval(parameters['actor6 Ypos'] || '328');
  374.   SVActorY[6] = eval(parameters['actor7 Ypos'] || '376');
  375.   SVActorY[7] = eval(parameters['actor8 Ypos'] || '424');



  376.   //
  377.   // process plugin commands
  378.   //
  379.   PluginManager.registerCommand(pluginName, 'set', args => {
  380.     // check whether sv array is already defined or not
  381.     if(!$gameSystem.svActorArrayDefined()){
  382.       $gameSystem.defineSvActorArray();
  383.     }
  384.     const pos = +args.actorPos;
  385.     const value = eval(args.dispPos);
  386.     switch (args.axis) {
  387.     case 'X':
  388.       $gameSystem.svActorX[pos-1] = value;
  389.       break;
  390.     case 'Y':
  391.       $gameSystem.svActorY[pos-1] = value;
  392.       break;
  393.     }
  394.   });


  395.   //
  396.   // define arrays for save sv actors' position
  397.   //
  398.   const _Game_System_initialize = Game_System.prototype.initialize;
  399.   Game_System.prototype.initialize = function() {
  400.     _Game_System_initialize.call(this);
  401.     this.defineSvActorArray();
  402.   };

  403.   Game_System.prototype.defineSvActorArray = function() {
  404.     this.svActorX = new Array(8);
  405.     this.svActorY = new Array(8);
  406.   };

  407.   Game_System.prototype.svActorArrayDefined = function() {
  408.     return !!this.svActorX;
  409.   };

  410.   // --------------------
  411.   // set actors' position (overwrited)
  412.   // --------------------
  413.   Sprite_Actor.prototype.setActorHome = function(index) {
  414.     // check whether sv array is already defined or not
  415.     if(!$gameSystem.svActorArrayDefined()){
  416.       $gameSystem.defineSvActorArray();
  417.     }
  418.     // set default values
  419.     let x = 600 + index * 32;
  420.     let y = 280 + index * 48;
  421.     // apply option values
  422.     if (index < 8) {
  423.       x = $gameSystem.svActorX[index] || SVActorX[index];
  424.       y = $gameSystem.svActorY[index] || SVActorY[index];
  425.     } else if (index < 100 && !!$gameSystem.svActorX[index]) {
  426.       x = $gameSystem.svActorX[index];
  427.       if (!!$gameSystem.svActorY[index]) {
  428.         y = $gameSystem.svActorY[index];
  429.       }
  430.     }
  431.     // set position
  432.     this.setHome(x, y);
  433.   };

  434.   // --------------------
  435.   // set weapon animation's position
  436.   // --------------------
  437.   const _Sprite_Weapon_setup = Sprite_Weapon.prototype.setup;
  438.   Sprite_Weapon.prototype.setup = function(weaponImageId) {
  439.     _Sprite_Weapon_setup.call(this, weaponImageId);
  440.     this.setPosition();
  441.   };

  442.   Sprite_Weapon.prototype.setPosition = function() {
  443.     // set X position by actor sprite size
  444.     const actorBitmap = this.parent._mainSprite.bitmap;
  445.     const actorSpriteWidth = actorBitmap ? actorBitmap.width / 9 : 64;
  446.     this.x = -16 - (actorSpriteWidth - 64) / 2;
  447.     // set Y default position
  448.     this.y = 0;
  449.     // change X,Y position by actor's note
  450.     const battler = this.parent._battler;
  451.     if(battler){
  452.       this.x += (Number(battler.actor().meta.SVWeaponRight) || 0);
  453.       this.y -= (Number(battler.actor().meta.SVWeaponHeight) || 0);
  454.     }
  455.   };

  456. })();
复制代码
回复 支持 1 反对 0

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
10
在线时间
1 小时
注册时间
2022-10-1
帖子
3
15
发表于 2022-10-2 21:01:04 | 只看该作者
不错楼主
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
523
在线时间
87 小时
注册时间
2022-4-30
帖子
45
16
发表于 2022-10-3 23:32:13 | 只看该作者
古树旋律 发表于 2022-9-19 08:14
这是自己魔改的8人SVActorPositionMZ脚本,照葫芦画瓢即可。

https://rpg.blue/forum.php?mod=attachment&aid=MzkyODIwfGZjZTViMDhmMTY0Mjk5ZDg2NTI5ZTczZTg2ZjIyNjFkfDE3MTU1NzQ0OTQ%3D&request=yes&_f=.rar

感谢和感谢
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
69
在线时间
5 小时
注册时间
2023-1-11
帖子
14
17
发表于 2023-1-15 20:58:10 | 只看该作者
想要没用过系列。谢谢
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1729
在线时间
137 小时
注册时间
2021-5-18
帖子
30
18
发表于 2023-2-16 10:45:14 | 只看该作者
古树旋律 发表于 2022-9-19 08:14
这是自己魔改的8人SVActorPositionMZ脚本,照葫芦画瓢即可。

https://rpg.blue/forum.php?mod=attachment&aid=MzkyODIwfGZjZTViMDhmMTY0Mjk5ZDg2NTI5ZTczZTg2ZjIyNjFkfDE3MTU1NzQ0OTQ%3D&request=yes&_f=.rar

这画面感太强了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
78
在线时间
6 小时
注册时间
2023-3-26
帖子
3
19
发表于 2023-4-5 00:45:43 | 只看该作者
感谢大佬,正好需要这个
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
78
在线时间
8 小时
注册时间
2023-4-10
帖子
3
20
发表于 2023-4-11 10:38:49 | 只看该作者
感谢大佬
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-13 12:28

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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