赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-10-29 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3185
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
首先,先把你要整合的脚本插在XAS脚本前面。(试试看吧)
因为你要整合的是直接修改,XAS脚本则用了alias,
如果插在XAS脚本后面,则将XAS的部分脚本覆盖了。
(参照我的XAS 3.91版本为例)
然后将XAS - Sprite的这一段(super下面,end前面)去掉。- def initialize
- super
- @actor = $game_party.actors[0]
- hud_size_x = XAS_HUD::CT_SIZE_X
- hud_size_y = XAS_HUD::CT_SIZE_Y
- @oc_range_x = hud_size_x + XAS_HUD::WINDOW_CT_X
- @oc_range_y = hud_size_y + XAS_HUD::WINDOW_CT_Y
- #Action Meter--------------------------------------
- @meter_flow = 0
- @meter_image = RPG::Cache.windowskin("CT_Meter")
- @meter_bitmap = Bitmap.new(@meter_image.width,@meter_image.height)
- @meter_range = @meter_image.width / 3
- @meter_width = @meter_range * $game_system.action_meter / 100
- @meter_height = @meter_image.height / 4
- @meter_width_old = @meter_width
- @meter_src_rect = Rect.new(@meter_range, 0, @meter_width, @meter_height)
- @meter_bitmap.blt(0,0, @meter_image, @meter_src_rect)
- @meter_sprite = Sprite.new
- @meter_sprite.bitmap = @meter_bitmap
- @meter_sprite.z = 5008
- @meter_sprite.x = XAS_HUD::WINDOW_CT_X
- @meter_sprite.y = XAS_HUD::WINDOW_CT_Y
- meter_flow_update
- #Number --------------------------------------
- @number_image = RPG::Cache.windowskin("CT_Number")
- @number_bitmap = Bitmap.new(@number_image.width, @number_image.height)
- @number_sprite = Sprite.new
- @number_sprite.bitmap = @number_bitmap
- @number_sprite.z = 5009
- @number_sprite.x = XAS_HUD::WINDOW_CT_X
- @number_sprite.y = XAS_HUD::WINDOW_CT_Y
- @number_cw = @number_image.width / 10
- @number_ch = @number_image.height / 7
- if $game_temp.cast_time > 0
- number = $game_temp.cast_time / 10
- number_y = @number_ch * 2
- number_sup_y = @number_ch * 4
- elsif $game_temp.xas_charge_time > 5
- number = $game_temp.xas_charge_time.truncate
- number_y = @number_ch * 2
- number_sup_y = @number_ch * 3
- else
- number = $game_system.action_meter
- if $game_system.action_meter <= XAS::DASH_ACTIVE_PERC
- number_y = @number_ch * 1
- else
- number_y = @number_ch * 0
- end
- number_sup_y = @number_ch * 5
- end
- @number_text = number.abs.to_s.split(//)
- for r in 0..@number_text.size - 1
- @number_abs = @number_text[r].to_i
- @number_src_rect = Rect.new(@number_cw * @number_abs, number_y, @number_cw, @number_ch)
- @number_bitmap.blt(((@number_cw - 10) * r), 0, @number_image, @number_src_rect)
- @number_src_rect = Rect.new(0, number_sup_y, @number_image.width, @number_ch)
- @number_bitmap.blt(-55, -2, @number_image, @number_src_rect)
- end
- #HUD Visible----------------------------------------------------------------
- visible_update
- end
复制代码 |
|