Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Necessário Dax Core
- module Password
- Keys = {
- # ponha aqui na primeira parte a password, depois o id do mapa em que o
- # personagem irá aparecer e depois as coord. x e y do mapa. Separe com vírgula
- "tExTAds" => [5, 12, 8],
- "oKod489$$@" => [1, 5, 5],
- "151" => [2, 10, 10],
- }
- end
- class Scene_Password < Scene_MenuBase
- include Password
- def start
- super
- @w = Window_Base.new(0, 0, 256, 64)
- @w.position :center
- @t = Sprite_Text.new(0, 0, Graphics.width, 24, "Pressione ENTER para confirmar!", 1)
- @t.position 5
- @t.y -= 8
- end
- def terminate
- super
- @w.dispose
- end
- def update
- super
- Key.keysString?
- @w.contents.clear
- @w.contents.draw_text_rect(Key._cacheText, 1)
- trigger?(:ENTER) {
- return if Keys.get(Key._cacheText).nil?
- $game_player.reserve_transfer(*Keys.get(Key._cacheText))
- SceneManager.call(Scene_Map)
- }
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement