另外,由于用事件做了一个很简单的选择人物的系统。因此还有必要加上分歧:
if 变量12 == 0
图片显示为 "Graphics\Pictures\000.png"
end
if 变量12 == 1
图片显示为 "Graphics\Pictures\001.png"
end
if 变量12 == 2
图片显示为 "Graphics\Pictures\002.png"
end
def draw_actor_face
case actor_id
when 1
bitmap= ""
when 2
.....
end
end作者: 奶油Da蛋糕 时间: 2009-7-18 17:18
class Windows_base
def draw_actor_face
if $game_variables[14] == 0
bitmap= "Graphics\Pictures\泪无痕.png"
end
if $game_variables[14] == 1
bitmap= "Graphics\Pictures\云无心.png"
end
if $game_variables[14] == 2
bitmap= "Graphics\Pictures\凌波燕.png"
end
if $game_variables[14] == 3
bitmap= "Graphics\Pictures\千幻碟.png"
end
end
end
我这样写了一遍,怎么没生效?
在MAIN前插入。作者: 奶油Da蛋糕 时间: 2009-7-18 17:44
class Windows_base
def draw_actor_face
case actor_id
when 1
if $game_variables[14] == 0
bitmap= "Graphics\Pictures\泪无痕.png"
end
if $game_variables[14] == 1
bitmap= "Graphics\Pictures\云无心.png"
end
if $game_variables[14] == 2
bitmap= "Graphics\Pictures\凌波燕.png"
end
if $game_variables[14] == 3
bitmap= "Graphics\Pictures\千幻碟.png"
end
when 2
bitmap= "Graphics\Pictures\淡清秋.png"
end
end
end
菜单好了,可是存档没变。
def write_save_data(file)
actor = $game_party.actors
case actor.id
when 1
if $game_variables[14] == 0
bitmap = RPG::Cache.picture("逍遥侠01.png")
end
if $game_variables[14] == 1
bitmap = RPG::Cache.picture("凌波燕01.png")
end
else
bitmap = RPG::Cache.picture("逍遥侠01.png")
end
def draw_actor_graphic(actor, x, y)
end