I am new to scripting in ruby, and am working on a script to transfer the player to a campsite map or their room in an inn, depending on where they are in the game. They will have the option on the menu, and eventually via hotkey. Here is what I have so far:
class RPG::Map
def Map_Type
if @note =~ /<camp (.*)>/i
$game_variables[6] = $1
else
$game_variables[6] = 0
end
end
def Remember_Return_Location
$game_variables[3] = $game_map.map_id
$game_variables[4] = $game_map.display_x
$game_variables[5] = $game_map.display_y
end
def Player_Transfer
if $games_variables[6] = "Higlong"
$game_player.reserve_transfer(7, 6, 8)
elseif $games_variables[6] = "world"
$game_player.reserve_transfer(21, 14, 12, Down)
else
# cannot make camp
end
end
end
And I get this error:
Script game_interpreter line 1411 nameerror occurred: uninitialized constant game_interpreter:😛layer_transfer
I am using Galv's menu themes enigne and have my script above his. At the moment I am calling it from a common event. Any help would be appreciated.
Thanks.
class RPG::Map
def Map_Type
if @note =~ /<camp (.*)>/i
$game_variables[6] = $1
else
$game_variables[6] = 0
end
end
def Remember_Return_Location
$game_variables[3] = $game_map.map_id
$game_variables[4] = $game_map.display_x
$game_variables[5] = $game_map.display_y
end
def Player_Transfer
if $games_variables[6] = "Higlong"
$game_player.reserve_transfer(7, 6, 8)
elseif $games_variables[6] = "world"
$game_player.reserve_transfer(21, 14, 12, Down)
else
# cannot make camp
end
end
end
And I get this error:
Script game_interpreter line 1411 nameerror occurred: uninitialized constant game_interpreter:😛layer_transfer
I am using Galv's menu themes enigne and have my script above his. At the moment I am calling it from a common event. Any help would be appreciated.
Thanks.