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

Project1

 找回密码
 注册会员
搜索
查看: 3583|回复: 4
打印 上一主题 下一主题

[已经解决] 关于横版战斗及脸图

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
135 小时
注册时间
2012-6-14
帖子
43
跳转到指定楼层
1
发表于 2013-8-1 09:46:47 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 kkwo 于 2013-8-16 15:09 编辑

如题
我使用的横版的作者:后知后觉
但是我想要在战斗中我方显示是脸图(如下

这个脸图战斗是我从超级整合里找的...(来自Yanfly Engine Ace)
不过只要同时使用就不能正常选取敌人...
我不求可以用鼠标直接指定敌人的动图...
我只要可以一般选取就行了......(如下


请问我该怎么办呢?

Lv1.梦旅人

梦石
0
星屑
50
在线时间
135 小时
注册时间
2012-6-14
帖子
43
2
 楼主| 发表于 2013-8-3 18:59:06 | 只看该作者
本帖最后由 kkwo 于 2013-8-16 15:07 编辑

沒人能幫忙嗎
或是告訴我要改哪...

哈我在站內搜到了把臉圖系統多餘的去掉單純只顯示臉圖的部份~
雖然沒人回但還是謝謝各位{:2_249:}
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
109 小时
注册时间
2013-3-10
帖子
43
3
发表于 2014-3-2 00:13:48 | 只看该作者
kkwo 发表于 2013-8-3 18:59
沒人能幫忙嗎
或是告訴我要改哪...

在哪里找到的 - -能发一个传送门么!!
{:2_280:}
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
230 小时
注册时间
2014-2-16
帖子
175
4
发表于 2014-3-2 10:32:16 | 只看该作者
横版战斗和脸图怎么又出来个鼠标?没弄懂楼主的意思。

点评

......別想太多反正都解決了... 不過就是用鼠標操作戰鬥阿= =  发表于 2014-3-2 14:04
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
135 小时
注册时间
2012-6-14
帖子
43
5
 楼主| 发表于 2014-3-2 14:02:20 | 只看该作者
十六夜 发表于 2014-3-2 00:13
在哪里找到的 - -能发一个传送门么!!

這都去年的事了...
抱歉不記得怎麼找的...
我這只有留腳本...不過有配合我的画面改了些......
願意拿回去改就直接拿走...或是用這段直接進站內搜也行{:2_276:}
  1. $imported = {} if $imported.nil?
  2. module YEA
  3.   module BATTLE
  4.     BATTLESTATUS_NAME_FONT_SIZE = 25 #名字大小
  5.     BATTLESTATUS_TEXT_FONT_SIZE = 20 #
  6.     BATTLESTATUS_HPGAUGE_Y_PLUS = 20 #
  7.     BATTLESTATUS_CENTER_FACES   = false  # true 角色置中?
  8.   end
  9. end
  10. class Window_BattleStatus < Window_Selectable
  11.   def initialize
  12.     super(0, 0, window_width, window_height)
  13.      self.openness = 0
  14.     @party = $game_party.battle_members.clone
  15.   end
  16.   def col_max; return $game_party.max_battle_members; end
  17.   def battle_members; return $game_party.battle_members; end
  18.   def actor; return battle_members[@index]; end
  19.   def update
  20.     super
  21.     return if @party == $game_party.battle_members
  22.     @party = $game_party.battle_members.clone
  23.     refresh
  24.   end
  25.   def draw_item(index)
  26.     return if index.nil?
  27.     clear_item(index)
  28.     actor = battle_members[index]
  29.     rect = item_rect(index)
  30.     return if actor.nil?
  31.     draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)
  32.     draw_actor_name(actor, rect.x, rect.y, rect.width-8)
  33.     draw_actor_icons(actor, rect.x, line_height*1, rect.width)
  34.     gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
  35.     contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
  36.    ##位置
  37.     #draw_actor_hp(actor, rect.x+2, line_height*2高位置+gx, rect.width-4長)
  38.     draw_actor_hp(actor, rect.x+2, line_height*4+gx, rect.width-4)
  39.     dw = rect.width/2-2
  40.   
  41.     dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
  42.     #draw_actor_tp(actor, rect.x+2, line_height*3, dw)
  43.     draw_actor_tp(actor, rect.x+2, line_height*6, dw)
  44.     dw = rect.width - rect.width/2 - 2
  45.     #draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
  46.     draw_actor_mp(actor, rect.x+rect.width/2, line_height*6, dw)
  47.   end
  48.   def item_rect(index)
  49.     rect = Rect.new
  50.     rect.width = contents.width / $game_party.max_battle_members
  51.     rect.height = contents.height
  52.     rect.x = index * rect.width
  53.     if YEA::BATTLE::BATTLESTATUS_CENTER_FACES
  54.       rect.x += (contents.width - $game_party.members.size * rect.width) / 2
  55.     end
  56.     rect.y = 0
  57.     return rect
  58.   end
  59.   def draw_face(face_name, face_index, dx, dy, enabled = true)
  60.     bitmap = Cache.face(face_name)
  61. #  ------------------------------------------------------這裏改臉圖
  62.     fx = [(192 - item_rect(0).width + 1) / 2, 0].max
  63.     fy = face_index / 4 * 192+ 2
  64.     fw = [item_rect(0).width - 4, 191].min
  65.     rect = Rect.new(fx, fy, fw, 191)
  66.     rect = Rect.new(face_index % 4 * 192 + fx, fy, fw, 191)
  67.    
  68.     #fx = [(150 - item_rect(0).width + 1) / 2, 0].max
  69.     #fy = face_index / 4 * 150+ 2
  70.     #fw = [item_rect(0).width - 4, 148].min
  71.     #rect = Rect.new(fx, fy, fw, 148)
  72.     #rect = Rect.new(face_index % 4 * 150 + fx, fy, fw, 148)
  73. #  ---------------------------------------------------------
  74.     contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha)
  75.     bitmap.dispose
  76.   end
  77.   def draw_actor_name(actor, dx, dy, dw = 112)
  78.     reset_font_settings
  79.     contents.font.size = YEA::BATTLE::BATTLESTATUS_NAME_FONT_SIZE
  80.     change_color(hp_color(actor))
  81.     draw_text(dx+24, dy, dw-24, line_height, actor.name)
  82.   end
  83.   def draw_current_and_max_values(dx, dy, dw, current, max, color1, color2)
  84.     change_color(color1)
  85.     draw_text(dx, dy, dw, line_height, current.group, 2)
  86.   end
  87.   #def draw_actor_hp(actor, dx, dy, width = 124)
  88.   
  89.   def draw_actor_hp(actor, dx, dy, width = 124)
  90.    
  91.     draw_gauge(dx, dy, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
  92.     change_color(system_color)
  93.     cy = (Font.default_size - contents.font.size) / 2 + 1
  94.    
  95.    # draw_text(dx+2, dy+cy, 30, line_height, Vocab::hp_a)
  96.    draw_text(dx+2, dy+cy, 30, line_height, Vocab::hp_a)
  97.     draw_current_and_max_values(dx, dy+cy, width, actor.hp, actor.mhp,
  98.    
  99.     hp_color(actor), normal_color)
  100.     end
  101.   def draw_actor_mp(actor, dx, dy, width = 124)
  102.     draw_gauge(dx, dy, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
  103.     change_color(system_color)
  104.     cy = (Font.default_size - contents.font.size) / 2 + 1
  105.     draw_text(dx+2, dy+cy, 30, line_height, Vocab::mp_a)
  106.     draw_current_and_max_values(dx, dy+cy, width, actor.mp, actor.mmp,
  107.       mp_color(actor), normal_color)
  108.     end
  109.   def draw_actor_tp(actor, dx, dy, width = 124)
  110.     draw_gauge(dx, dy, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
  111.     change_color(system_color)
  112.     cy = (Font.default_size - contents.font.size) / 2 + 1
  113.     draw_text(dx+2, dy+cy, 30, line_height, Vocab::tp_a)
  114.     change_color(tp_color(actor))
  115.     draw_text(dx + width - 42, dy+cy, 42, line_height, actor.tp.to_i, 2)
  116.   end
  117. end
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-9-25 07:24

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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