赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 14813 |
最后登录 | 2016-11-13 |
在线时间 | 135 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 52
- 在线时间
- 135 小时
- 注册时间
- 2011-11-5
- 帖子
- 83
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 ji3rul4coco 于 2013-9-23 23:45 编辑
2013/09/23更新
因為我覺得自己之前的敘述好像太簡單了
詳細形況就是,我希望能夠用鼠標點選粉紅色↓的選項,讓它像橙光文字游戏制作工具的選項一樣
我想要的是那樣的效果
之前也有人問過相同的問題,不過因為上面的腳本不知為何不能用,所以才重新又問了一次
網址如下↓
http://rpg.blue/forum.php?mod=viewthread&tid=329853
為了,變量顯示的問題算是解決了,不過我想將在菜單中顯示的功能消掉,還有想把數值改成兩排(像圖片藍框中顯示的那樣),請各位幫個忙,謝謝
#============================================================================== # ■ Game_Player #------------------------------------------------------------------------------ # 處理玩家人物的類。擁有事件啟動的判定、地圖的卷動等功能。 # 本類的實例請參考 $game_player 。 #============================================================================== class Game_Player < Game_Character def getX @x end def getY @y end end #============================================================================== # ■ Scene_Menu #------------------------------------------------------------------------------ # 菜單畫面 #============================================================================== class Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # ● 生成窗口 #-------------------------------------------------------------------------- def create_gold_window @gold_window = Window_Gold.new @gold_window.x = 0 @gold_window.y = Graphics.height - @gold_window.height # 生成地圖信息窗口 @mapinfos_window = Window_MapInfo.new @mapinfos_window.x = 0 @mapinfos_window.y = Graphics.height - @mapinfos_window.height - @gold_window.height end end #============================================================================== # ■ Window_MapInfo #------------------------------------------------------------------------------ # 顯示當前信息的窗口。 By SkyZH #============================================================================== class Window_MapInfo < Window_Base #-------------------------------------------------------------------------- # ● 初始化對像 #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, 264) self.opacity = 255 refresh end #-------------------------------------------------------------------------- # ● 獲取窗口的寬度 #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh self.contents.clear self.contents.font.color = normal_color @a=$game_map.width @b=$game_map.height draw_text(0, 0, window_width-24, line_height,"智慧 " + $game_variables[1].to_s) draw_text(0, line_height, window_width-24, line_height,"魅力 " + $game_variables[2].to_s) draw_text(0, line_height*2, window_width-24, line_height,"修養 " + $game_variables[3].to_s) draw_text(0, line_height*3, window_width-24, line_height,"體貼 " + $game_variables[4].to_s) draw_text(0, line_height*4, window_width-24, line_height,"道德 " + $game_variables[5].to_s) draw_text(0, line_height*5, window_width-24, line_height,"自尊 " + $game_variables[6].to_s) draw_text(0, line_height*6, window_width-24, line_height,"勇氣 " + $game_variables[7].to_s) draw_text(0, line_height*7, window_width-24, line_height,"聲望 " + $game_variables[8].to_s) end end class Spriteset_Map #-------------------------------------------------------------------------- # ● 初始化對象 #-------------------------------------------------------------------------- def initialize create_viewports create_tilemap create_parallax create_characters create_shadow create_weather create_pictures create_timer @MapInfoWin=Window_MapInfo.new update end def dispose dispose_tilemap dispose_parallax dispose_characters dispose_shadow dispose_weather dispose_pictures dispose_timer dispose_viewports @MapInfoWin.dispose end def update update_tileset update_tilemap update_parallax update_characters update_shadow update_weather update_pictures update_timer update_viewports if $game_switches[1]==false then #通過1號開關控制信息窗口是否顯示 @MapInfoWin.visible=false else @MapInfoWin.visible=true end @MapInfoWin.refresh end end
#==============================================================================
# ■ Game_Player
#------------------------------------------------------------------------------
# 處理玩家人物的類。擁有事件啟動的判定、地圖的卷動等功能。
# 本類的實例請參考 $game_player 。
#==============================================================================
class Game_Player < Game_Character
def getX
@x
end
def getY
@y
end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# 菜單畫面
#==============================================================================
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 生成窗口
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = Graphics.height - @gold_window.height
# 生成地圖信息窗口
@mapinfos_window = Window_MapInfo.new
@mapinfos_window.x = 0
@mapinfos_window.y = Graphics.height - @mapinfos_window.height - @gold_window.height
end
end
#==============================================================================
# ■ Window_MapInfo
#------------------------------------------------------------------------------
# 顯示當前信息的窗口。 By SkyZH
#==============================================================================
class Window_MapInfo < Window_Base
#--------------------------------------------------------------------------
# ● 初始化對像
#--------------------------------------------------------------------------
def initialize
super(0, 0, window_width, 264)
self.opacity = 255
refresh
end
#--------------------------------------------------------------------------
# ● 獲取窗口的寬度
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = normal_color
@a=$game_map.width
@b=$game_map.height
draw_text(0, 0, window_width-24, line_height,"智慧 " + $game_variables[1].to_s)
draw_text(0, line_height, window_width-24, line_height,"魅力 " + $game_variables[2].to_s)
draw_text(0, line_height*2, window_width-24, line_height,"修養 " + $game_variables[3].to_s)
draw_text(0, line_height*3, window_width-24, line_height,"體貼 " + $game_variables[4].to_s)
draw_text(0, line_height*4, window_width-24, line_height,"道德 " + $game_variables[5].to_s)
draw_text(0, line_height*5, window_width-24, line_height,"自尊 " + $game_variables[6].to_s)
draw_text(0, line_height*6, window_width-24, line_height,"勇氣 " + $game_variables[7].to_s)
draw_text(0, line_height*7, window_width-24, line_height,"聲望 " + $game_variables[8].to_s)
end
end
class Spriteset_Map
#--------------------------------------------------------------------------
# ● 初始化對象
#--------------------------------------------------------------------------
def initialize
create_viewports
create_tilemap
create_parallax
create_characters
create_shadow
create_weather
create_pictures
create_timer
@MapInfoWin=Window_MapInfo.new
update
end
def dispose
dispose_tilemap
dispose_parallax
dispose_characters
dispose_shadow
dispose_weather
dispose_pictures
dispose_timer
dispose_viewports
@MapInfoWin.dispose
end
def update
update_tileset
update_tilemap
update_parallax
update_characters
update_shadow
update_weather
update_pictures
update_timer
update_viewports
if $game_switches[1]==false then #通過1號開關控制信息窗口是否顯示
@MapInfoWin.visible=false
else
@MapInfoWin.visible=true
end
@MapInfoWin.refresh
end
end
想找一個模擬養成的腳本
其效果如下
我有用滑鼠操作的腳本(來自90個超級腳本)
|
|