查看: 3372|回复: 11

求Vx的竖(纵)版战斗脚本……

  [复制链接]
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-20
回帖
95
发表于 2009-2-9 02:55:11 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

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

×
效果就像这样的……
同样……
搜索过地球村、技术讨论区、技术发布区也找不到……

版务信息:本贴由楼主自主结贴~
梦石
0
星屑
60
在线时间
1 小时
注册时间
2008-5-31
回帖
224
发表于 2009-2-9 03:02:11 | 显示全部楼层
把 window_battlestatus 和 window_slectable改改就行
我。。不是寂寞。。
回复

使用道具 举报

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-20
回帖
95
 楼主| 发表于 2009-2-9 03:03:45 | 显示全部楼层
怎么改……
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-15
回帖
17
发表于 2009-2-9 03:06:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

梦石
0
星屑
60
在线时间
1 小时
注册时间
2008-5-31
回帖
224
发表于 2009-2-9 04:07:41 | 显示全部楼层
首先Window_BattleStatus initialize加句  
self.windowskin = Cache.system("XX")仿制一张window.png记得除了右下角,其他做成透明色
XX是文件名
就可以在draw_item(index)弄吧。。。自己排版
应该是选中的头像改变色调的。。。想法而已

脚本这玩意。。慢慢弄总是会成的。。。

之后Window_Selectable
item_rect( index, type = 0)【原来是item_rect( index)】
  1.   def item_rect( index, type = 0)
  2.     @type = type
  3.     case type
  4.     when 0 # 普通矩框
  5.       rect = Rect.new(0, 0, 0, 0)
  6.       rect.width = (contents.width + @spacing) / @column_max - @spacing
  7.       rect.height = WLH
  8.       rect.x = index % @column_max * (rect.width + @spacing)
  9.       rect.y = index / @column_max * WLH
  10.     when 1 # 双行矩框
  11.       rect = Rect.new(0, 0, 0, 0)
  12.       rect.width = (contents.width + @spacing) / @column_max - @spacing
  13.       rect.height = WLH * 2
  14.       rect.x = index % @column_max * (rect.width + @spacing)
  15.       rect.y = index / @column_max * WLH * 2

  16.     when 3 # 战斗头像矩框
  17.       rect = Rect.new(0, 0, 0, 0)
  18.       rect.width = 152
  19.       rect.height = 112
  20.       rect.x = index * 152
  21.       rect.y = 0
  22.     end  
  23.     return rect
  24.   end
复制代码

  
宽高,自己改吧。。。
update_cursor把rect = item_rect(@index)改成
      rect = item_rect(@index, @type)  


总结idea:Window_BattleStatus窗口背景透明,Window_ActorCommand x坐标随选项改变
选中单位,色调改变。。。。

最简便方法。。。求那位人要脚本。。。。。
我。。不是寂寞。。
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-9-22
回帖
421
发表于 2009-2-9 04:10:32 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

梦石
0
星屑
60
在线时间
1 小时
注册时间
2008-5-31
回帖
224
发表于 2009-2-9 04:11:32 | 显示全部楼层
http://rpg.blue/viewthread.php?tid=116012&ntime=2009%2D2%2D8+20%3A08%3A34
应该是这个。。难怪这么眼熟。。。

。。。。连着三个一样的链接。。。
我。。不是寂寞。。
回复

使用道具 举报

名侦探小柯

梦石
10
星屑
4410
在线时间
3740 小时
注册时间
2006-9-6
回帖
36596

极短27获奖MZ评测员开拓者贵宾第3届短篇游戏大赛主流游戏组亚军第5届短篇游戏比赛亚军

发表于 2009-2-9 04:13:14 | 显示全部楼层
这个地球村的:
http://rpg.blue/viewthread.php?tid=116012 [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
不定期回归 ~ 游戏开发之旅
———————————————————————————————
回复

使用道具 举报

梦石
0
星屑
50
在线时间
114 小时
注册时间
2008-10-29
回帖
459

开拓者

发表于 2009-2-9 04:13:16 | 显示全部楼层
点我的连接,地球村的。
http://rpg.blue/viewthread.php?tid=116012
回复

使用道具 举报

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-8-20
回帖
95
 楼主| 发表于 2009-2-9 04:30:20 | 显示全部楼层
{/se}跪地感谢……

{/hx}话说能顺道说明一下使用方法吗……?
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部