赞 | 0 |
VIP | 1 |
好人卡 | 5 |
积分 | 1 |
经验 | 47515 |
最后登录 | 2024-9-13 |
在线时间 | 216 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 90
- 在线时间
- 216 小时
- 注册时间
- 2007-9-5
- 帖子
- 370
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
我希望主角比其余角色多两个战斗选项,所以为了整合这两个脚本,我在图标式战斗选单脚本的class Scene_Battle下面添加成下面这样,为主角多定制两个图标,结果战斗后发现:所有角色共有的图标正常消失了,但是多出来的那两个图标没有消失,依然停留在地图上,大约过几秒才消失,战败后也是这样,多余的那两个图标会停留在标题画面几秒钟,似乎是刷新的问题?
class Scene_Battle
alias scene_battle_icon_command_start_phase1 start_phase1
def start_phase1
com1 = Momo_IconCommand::ATTACK_ICON_NAME
com2 = Momo_IconCommand::SKILL_ICON_NAME
com3 = Momo_IconCommand::GUARD_ICON_NAME
com4 = Momo_IconCommand::ITEM_ICON_NAME
com5 = Momo_IconCommand::TURN_ICON_NAME
@actor_command_window = Window_CommandIcon.new(0, 0, [com1, com2, com3])
@actor_command_window.y = 160
@actor_command_window.z = 99999
@actor_command_window.back_opacity = 160
@actor_command_window.active = false
@actor_command_window.visible = false
@actor_command_window.update
# 这里修改了添加主角的战斗命令窗口选项定义
@master_command_window = Window_CommandIcon.new(0, 0, [com1, com2, com3, com4, com5])
@master_command_window.y = 130
@master_command_window.z = 99999
@master_command_window.back_opacity = 160
@master_command_window.active = false
@master_command_window.visible = false
scene_battle_icon_command_start_phase1
end
alias scene_battle_icon_command_phase3_setup_command_window phase3_setup_command_window
def phase3_setup_command_window
scene_battle_icon_command_phase3_setup_command_window
# アクターコマンドウィンドウの位置を設定
@actor_command_window.x = command_window_actor_x(@actor_index)
@actor_command_window.y = command_window_actor_y(@actor_index)
@actor_command_window.z = 99999
@actor_command_window.need_reset
@master_command_window.x = command_window_actor_x(@actor_index)
@master_command_window.y = command_window_actor_y(@actor_index)
@master_command_window.z = 99999
end
def command_window_actor_x(index)
$game_party.actors[index].screen_x + Momo_IconCommand::X_PLUS
end
def command_window_actor_y(index)
$game_party.actors[index].screen_y + Momo_IconCommand::Y_PLUS
end
end
双战斗菜单
http://rpg.blue/web/htm/news792.htm
图标式战斗菜单
http://rpg.blue/web/htm/news61.htm 版务信息:本贴由楼主自主结贴~ |
|