Project1
标题:
求助一个地图显示等级的问题
[打印本页]
作者:
calvin0703
时间:
2011-4-2 21:02
标题:
求助一个地图显示等级的问题
#==============================================================================
# ■ Window_Actorlevel
#------------------------------------------------------------------------------
# 显示角色等级的窗口。
#==============================================================================
class Window_Actorlevel < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对像
# actor : 角色
#--------------------------------------------------------------------------
def initialize
super(80, -9, 640, 100)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
actor_x = i * 160
draw_actor_level(actor, actor_x, 10)
end
end
end
class Scene_Map
alias old_main main
def main
@Window_Actorlevel = Window_Actorlevel.new
@Window_Actorlevel.visible = false
old_main
@Window_Actorlevel.dispose
end
alias old_update update
def update
@Window_Actorlevel.visible = $game_switches[5]
old_update
end
end
复制代码
这是个忧雪の伤大大给的地图上显示等级的脚本(好吧我第3次为这个脚本问问题了)
如果有4个角色在队伍中 就会有4个人的等级出现在地图上
我想要它只显示一号人物的等级 该怎么弄??? dsu_plus_rewardpost_czw
作者:
darkten
时间:
2011-4-3 15:55
for i in 0...$game_party.actors.size
actor = $game_party.actors[i]
actor_x = i * 160
draw_actor_level(actor, actor_x, 10)
end
复制代码
这一段改成
actor = $game_party.actors[0]
actor_x = 160
draw_actor_level(actor, actor_x, 10)
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1