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

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: 迷糊的安安

[已经解决] 求VA默认战斗改进脚本:选人物行动时显示头像和播放声效

[复制链接]

Lv2.观梦者

梦石
0
星屑
589
在线时间
332 小时
注册时间
2011-11-19
帖子
194
发表于 2012-5-5 20:24:23 | 显示全部楼层
本帖最后由 q854240045 于 2012-5-5 20:25 编辑

这样改进
$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")#xyj为音效名称,是固定的,可以自己换
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height + @actor_command_window.height - 25
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end

图像会在左下方,紧贴状态栏
角色的脸谱名称必须为 face角色ID.ogg



‘‘──q854240045于2012-5-5 20:26补充以下内容

$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height + @actor_command_window.height - 25
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end

这样改进
图像就不会飘了
改进脚本中 xyj 为音效名称 可以自己换
’’


‘‘──q854240045于2012-5-5 21:10补充以下内容

不想飘起来就这样  注:xyj为一音效,是固定的,自己改

$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base
        alias start_actor_command_selection_old start_actor_command_selection
        def start_actor_command_selection
    start_actor_command_selection_old
                Audio.se_play("Audio/SE/xyj")
                @actorface = Sprite.new
                @actorface.bitmap = Bitmap.new("Graphics/Faces/face" + BattleManager.actor.id.to_s + ".png")
                @actorface.y = Graphics.height - @actor_command_window.height - @actorface.bitmap.height + @actor_command_window.height - 25
        end
        alias prior_command_old prior_command
        def prior_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                prior_command_old
        end
        alias next_command_old next_command
        def next_command
                @actorface.dispose if @actorface != nil && @actorface.disposed? != true
                next_command_old
        end
end
’’
支持《彼岸之光》系列!加油!
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
71 小时
注册时间
2012-4-4
帖子
22
发表于 2012-5-6 05:35:26 | 显示全部楼层
q854240045 发表于 2012-5-5 20:24
这样改进
$se名 = [*"A".."E"]
class Scene_Battle < Scene_Base

啊!成功了,多谢多谢
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
27 小时
注册时间
2012-1-21
帖子
15
发表于 2012-5-17 23:22:31 | 显示全部楼层
好东西。
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
95
在线时间
440 小时
注册时间
2012-6-5
帖子
96
发表于 2012-7-22 02:39:32 | 显示全部楼层
撤退以后图会残留@q854240045
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
59 小时
注册时间
2005-10-26
帖子
54
发表于 2012-12-13 04:22:23 | 显示全部楼层
同上啊,结束会残留怎么办啊?
动漫就是我的生命~我愿做一辈子没出息的人!
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
687 小时
注册时间
2012-10-29
帖子
1543
发表于 2012-12-13 06:26:46 | 显示全部楼层
有没有试过 LNX11 XPstylebattle for RPG Maker VX Ace 这个战斗系统脚本?
修改劇本中,仔細審查原來的劇情大綱,覺得有點不太滿意,嘗試編寫不同主角不同主線的劇情,希望能寫得出來。
回复

使用道具 举报

Lv2.观梦者 (暗夜天使)

梦石
0
星屑
266
在线时间
2355 小时
注册时间
2009-3-13
帖子
2309

贵宾

发表于 2012-12-13 09:46:36 | 显示全部楼层
本帖最后由 Sion 于 2012-12-13 11:09 编辑

这个贴出来的脚本怎么复制老出错……脚本我放到附件里好了
这个音效脚本挺强大,技能物品的音效都可以自己添加的。
图像显示效果如图,坐标可以自己设置。
两个脚本的使用方法我已经让谷哥帮大家翻译好了……
范例下载 http://www.atelier-rgss.com/RGSS/Demos/ACE_Master_Demo.zip   
范例里有很多其他脚本,大家不需要的话无视就好了        
QQ截图20121213110731.png
QQ截图20121213110751.png

MOG_Actor_Picture_CM.rar

2.21 KB, 下载次数: 141

显示图像

MOG_Battle_Cry.rar

3.34 KB, 下载次数: 132

战斗音效

评分

参与人数 1梦石 +1 收起 理由
迷糊的安安 + 1 你是一个好人

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-3-29 06:51

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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