Project1
标题:
如何让队伍里不管怎么排,地图上的人物始终显示1号角色?
[打印本页]
作者:
爆焰
时间:
2012-1-17 20:57
标题:
如何让队伍里不管怎么排,地图上的人物始终显示1号角色?
比如:队伍4个人,但是菜单里1号角色不在第一个的情况下,地图上显示的还是1号角色的行走图。请问怎么做? dsu_plus_rewardpost_czw
作者:
orzfly
时间:
2012-1-18 00:37
插件式脚本。内有设置及帮助。
class Game_Player < Game_Character
attr_reader :force_default_actor
alias initialize_force_default_actor initialize
def initialize
initialize_force_default_actor
@force_default_actor = 2#强制排第一的角色ID
# 游戏中可通过事件脚本“$game_player.force_default_actor = 3”更改为三号角色
end
def force_default_actor=(value)
@force_default_actor = value
refresh
end
def refresh
if $game_party.actors.size == 0
@character_name = ""
@character_hue = 0
return
end
if $game_party.actors.include?($game_actors[@force_default_actor])
actor = $game_actors[@force_default_actor]
else
actor = $game_party.actors[0]
end
@character_name = actor.character_name
@character_hue = actor.character_hue
@opacity = 255
@blend_type = 0
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1