#------------------------------------------------------------------------- class Scene_Map #------------------------------------------------------------------------- alias scene_map_added_rewrite_system_update_systems update_systems #-------------------------------------------------------------------------- # * Update Systems #-------------------------------------------------------------------------- # GM=HaLT: esse Script chama as seguintes funções quando a tecla for presionada # mas lembre-se para funcionar você tem que apertar "F5" para ocultar a tela de chat para depois apertar o botão!
def update_systems
if Input.trigger?(Input::Letters["G"])# Exemplo Quando você apertar "G" Vai Chamar a tela de GUILD if @box.active == false if $painel_adm.active == false open_guild end end end
if Input.trigger?(Input::Letters["I"])# inventario if @box.active == false if $painel_adm.active == false $equip_w.refresh; if $equip_w.active == true; $equip_w.refresh; $equip_w.visible = false; $equip_w.active = false; $item_w.visible = false; $item_w.active = false; $item_w.refresh; @janela_gold_w.visible = false; $janela_gold_w.refresh else if $equip_w.active == false; $equip_w.refresh; $equip_w.visible = true; $equip_w.active = true; $item_w.visible = true; $item_w.active = true; $item_w.refresh; @janela_gold_w.visible = true; $janela_gold_w.refresh end end end end end
if Input.trigger?(Input::Letters["S"])# status if @box.active == false if $painel_adm.active == false if $status.active == true; @status.refresh;@status.visible = false; @status.active = false else if $status.active == false; @status.refresh;@status.visible = true; @status.active = true end end end end end
if Input.trigger?(Input::Letters["H"])#Habiliade if $painel_adm.active == false if @box.active == false if $skill.active == true; $skill.refresh; $skill.visible = false; $skill.active = false else if $skill.active == false; $skill.refresh; $skill.visible = true; $skill.active = true end end end end end if Input.trigger?(Input::Letters["Q"])# Quest if $painel_adm.active == false if @box.active == false if @quest_list.active == true; @quest_list.refresh; @quest_list.visible = false; @quest_list.active = false else if @quest_list.active == false; @quest_list.refresh; @quest_list.visible = true; @quest_list.active = true end end end end end