本帖最后由 KB.Driver 于 2018-12-16 21:43 编辑
如何在脚本中实现 如果开关1打开则传送到地图ID4坐标10,10 [修改]
pajiman1999 发表于 2018-12-16 21:08
我想用脚本实现。。。。。
class Game_Map #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- alias cld99_refresh refresh def refresh extra_logic1 cld99_refresh end def extra_logic1 return unless $game_switches[1] map_id = 1 x = 12 y = 4 $game_player.reserve_transfer(map_id, x, y) $game_temp.fade_type = 2 $game_switches[1] = false end end
class Game_Map
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
alias cld99_refresh refresh
def refresh
extra_logic1
cld99_refresh
end
def extra_logic1
return unless $game_switches[1]
map_id = 1
x = 12
y = 4
$game_player.reserve_transfer(map_id, x, y)
$game_temp.fade_type = 2
$game_switches[1] = false
end
end
Project1.zip
(1.43 MB, 下载次数: 93)
在脚本中将map_id改为4,x和y改为10就行 |