-28%
Le deal à ne pas rater :
Brandt LVE127J – Lave-vaisselle encastrable 12 couverts – L60cm
279.99 € 390.99 €
Voir le deal

Aller en bas
Rafidelis
Rafidelis
Membre

Nombre de messages : 55
Distinction : aucune
Date d'inscription : 01/05/2008

*~ Shortcut For Scenes ~* Empty *~ Shortcut For Scenes ~*

Sam 10 Jan 2009 - 22:04
Shortcuts To Scenes
By: Rafidelis


About the script:


This script allows you to access the menu items, without having to enter the menu, it ocerre through shortcuts

Features:


• You can define the keys for shortcuts
• You can set it to enter into a Scene through the shortcut, by pressing ESC will return to the menu or the map.
• SCENE THAT YOU CAN Access through SHORTCUTS:
• Save Screen
• Screen Load Game
• Display items
• Display Skills
• Screen Equipment
• Display Status


Instructions:



First paste the script above the Main, then edit the lines 26 to 31quais the keys that will access each Scene, or leave as is defined in the script.
And let in on line 40 true or false to return to the menu, that is, when you access a scene where she may return to the menu or not, if you leave it to false, it will also modify the menu, that is, when you enter in a scene by Menu (items, skills ...) when you prescionar ESC will immediately return to the map, not the menu.
To access the Scene and just hit the shortcut key on map.


Script:


Code:
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#===============================================================================
#                 S C E N E   S H O RT C U T S 
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#   By : RAFIDELIS
#   Email: Rafa_fidelis@hotmail.com Rafa_fidelis@yahoo.com.br www.ReinoRpg.com
#-------------------------------------------------------------------------------
#   THANKS: First to Marcelo Cavaco, the handouts
# Destrinchando the RGSS Scripts and the Knowing RGSS They are me
# Helping a lot in my journey to the Dark scriptere also Chocobar, LB,
# RTH and PHCDO, msm Thanks people!
# The whole gang Maker of Brazil (of course without you I would not have reason to
# Trying to do scripts)
# And the forums of RpgMaker of Brazil, emphasis on www.ReinoRpg.com.   
#===============================================================================
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

module Rafis
#===============================================================================
|
#           C O N F I G U R A T I O N S  S T A R T
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Set lower WHAT # key will be call LIABLE FOR EACH SCENE
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# See END of script keys you can use
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
TECLA_ATALHO_ITEM = Input::F5                 # F5 in Keyboard
TECLA_ATALHO_HABILIDADES = Input::F6            # F6 in Keyboard
TECLA_ATALHO_EQUIPAMENTOS = Input::F7           # in Keyboard
TECLA_ATALHO_STATUS = Input::F8                # F8 in Keyboard
TECLA_ATALHO_SAVE = Input::L                  # Q in Keyboard
TECLA_ATALHO_LOAD = Input::R                  # W in Keyboard
end
#===============================================================================
|
#              MENU RETURN?
# = True When you access a shortcut, press ESC to return to the menu,
# This change will also be activated when you enter the menu of the game.
# = False When you access a shortcut, press ESC to return to Map
#================================================= ==============================|

RETORNAR_AO_MENU = false

#===============================================================================
#                                   START OF SCRIPT
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class Scene_Map
  alias rafidelis_atalhos_update update
  def update
   rafidelis_atalhos_update 
   rafis_atalho_item if Input.trigger?(Rafis::TECLA_ATALHO_ITEM)
   rafis_atalho_habilidades if Input.trigger?(Rafis::TECLA_ATALHO_HABILIDADES)
   rafis_atalho_equipamentos if Input.trigger?(Rafis::TECLA_ATALHO_EQUIPAMENTOS)
   rafis_atalho_status if Input.trigger?(Rafis::TECLA_ATALHO_STATUS)
   rafis_atalho_save if Input.trigger?(Rafis::TECLA_ATALHO_SAVE)
   rafis_atalho_load if Input.trigger?(Rafis::TECLA_ATALHO_LOAD)
  end
end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  def rafis_atalho_item
   Sound.play_decision   
   $scene = Scene_Item.new 
   if Input.trigger?(Input::B)
     retornar
   end
  end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
class Scene_Item
  alias retornar return_scene
  def return_scene
   retornar
   if RETORNAR_AO_MENU == true
     $scene = Scene_Menu.new(0)
   else
     $scene = Scene_Map.new
   end
  end
end

#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  def rafis_atalho_habilidades
   Sound.play_decision
   $scene = Scene_Skill.new
   if Input.trigger?(Input::B)
     retornar_1
   end
  end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 class Scene_Skill
   alias retornar_1 return_scene
   def return_scene
     retornar_1
     if RETORNAR_AO_MENU == true
     $scene = Scene_Menu.new(1)
   else
     $scene = Scene_Map.new    
   end
  end
end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  def rafis_atalho_equipamentos
   Sound.play_decision
   $scene = Scene_Equip.new
   if Input.trigger?(Input::B)
     retornar_2
   end
  end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  class Scene_Equip
   alias retornar_2 return_scene
   def return_scene
     retornar_2
     if RETORNAR_AO_MENU == true
     $scene = Scene_Menu.new(2)
   else
     $scene = Scene_Map.new
   end   
  end
end

#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  def rafis_atalho_status
   Sound.play_decision
   $scene = Scene_Status.new
   if Input.trigger?(Input::B)
     retornar_3
   end
  end
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  class Scene_Status
   alias retornar_3 return_scene
   def return_scene
     retornar_3
     if RETORNAR_AO_MENU == true
     $scene = Scene_Menu.new(3)
   else
     $scene = Scene_Map.new   
   end
  end
end

#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  def rafis_atalho_save
   Sound.play_decision
   $scene = Scene_File.new(true,false,false)
   if Input.trigger?(Input::B)
     retornar_4
   end
  end 
   
#===============================================================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def rafis_atalho_load
   Sound.play_decision
   $scene = Scene_File.new(false,false,false)
   if Input.trigger?(Input::B)
     retornar_4
   end
  end
 
  class Scene_File
   alias retornar_4 return_scene
   def return_scene
     retornar_4
     if RETORNAR_AO_MENU == true
      $scene = Scene_Menu.new(4)
     else
      $scene = Scene_Map.new
      end
     end
   end
#===============================================================================
#                   F I M  D O  S C R I P T
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=begin
#===============================================================================
#           LIST OF KEYS 
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
First I would like to thank the RTH and PHCDO it got this list in a
lessons from them ^ ^

# Keys:
    # Key DOWN
    Input:: DOWN # => Down arrow on the keyboard
   
    # Key UP
    Input: UP # => Up arrow on the keyboard
   
    # Key RIGHT
    Input:: RIGHT # => arrow to the right of the keyboard
   
    # Key LEFT
    Input:: # = LEFT> arrow to the left of the keyboard
   
    The key #
    Input:: A # => Z key on the keyboard
   
    # Key B
    Input:: B # => X key on the keyboard
   
    C # key
    Input:: C # => C key on the keyboard
   
    # Key X
    Input: X # => The key of the keyboard
   
    # Key Y
    Input: Y # => S key on the keyboard
   
    # Key Z
    Input:: # Z => D key on the keyboard
   
    # Key L
    Input: L = #> Q button on the keyboard
   
    # Key R
    Input: R # => W key on the keyboard
   
    # Key SHIFT
    Input:: SHIFT # => Shift key on the keyboard
   
    # CTRL key
    Input: CTRL # => Ctrl key on the keyboard
   
    # Key ALT
    Input: ALT # => Alt key on the keyboard
   
    # F5 key
    Input:: # F5 => F5 key on the keyboard
   
    # Key F6
    Input: F6 # => F6 key on the keyboard
   
    # F7 key
    Input:: # F7 => F7 key on the keyboard
   
    # F8 key
    Input:: # F8 => F8 key on the keyboard
   
    # Key F9
    Input:: # F9 => F9 key on the keyboard
end =

*~ Shortcut For Scenes ~* 88x31

RGSS and RGSS2 Scripts and RGSS1/2 Tutorials by Rafidelis is licensed under a
Creative Commons Atribuição-Uso Não-Comercial-Compartilhamento pela mesma Licença 2.5 Brasil License.
Permissions beyond the scope of this license may be available at ReinoRPG.com
Azaki
Azaki
Modérateur

Nombre de messages : 1742
Age : 31
Localisation : Dans ton cul(stom), t'as vu, tarba? é_è
Distinction : Commentateur sportif
Indépendantiste Breton
Chevalier de lumière
Membre du Haruhi fan-club
Membre du Tsukasa Nishino fan-club.
[Chou n°3]
Mist' Wink

Fils caché de Francis L'Alan
[Coco' Smile]
Chevalier Noir
Ex-Empereur d'Erem Vehyx (ou pas!! x) )

Date d'inscription : 14/05/2008

*~ Shortcut For Scenes ~* Empty Re: *~ Shortcut For Scenes ~*

Sam 10 Jan 2009 - 23:16
About the script:


This script allows you to access the menu items, without having to enter the menu, it ocerre through shortcuts

Features:


• You can define the keys for shortcuts
• You can set it to enter into a Scene through the shortcut, by pressing ESC will return to the menu or the map.
• SCENE THAT YOU CAN Access through SHORTCUTS:
• Save Screen
• Screen Load Game
• Display items
• Display Skills
• Screen Equipment
• Display Status


Instructions:



First paste the script above the Main, then edit the lines 26 to 31quais the keys that will access each Scene, or leave as is defined in the script.
And let in on line 40 true or false to return to the menu, that is, when you access a scene where she may return to the menu or not, if you leave it to false, it will also modify the menu, that is, when you enter in a scene by Menu (items, skills ...) when you prescionar ESC will immediately return to the map, not the menu.
To access the Scene and just hit the shortcut key on map.

Traduction:

A propos du script: Il permet d'accéder aux options sans passer par le menu (des touches raccourci si j'ai bien compris).

Ce que le script permet de faire:

• Vous pouvez définir les touches de raccourci.
• Vous pouvez entrer dans une "Scene" à partir du raccourci, en appuyant sur Echap vous retournez au menu ou sur la map.
• "Scènes" que vous pouvez accéder a partir des raccourcis:
• Ecran de sauvegarde.
• Ecran de chargement de partie.
• Montrer les objets en possession.
• Montrer les skills (= Techniques, pouvoirs, magies...)
• L'écran d'équipement.
• Montrer le Status.

Instructions:

Tout d'abord, collez le script avant Main, puis éditez aux lignes 26 à 31 les touches qui définiront les raccourcis qui accèderons à chaque "scene" (genre scene_item pour les objets, etc.), ou la quitter, suivant ce que vous indiquez dans le script.
A la ligne 40, si vous laissez true, vous vous rendrez dans le raccourcis défini, puis en ré-appuyant sur la même touche raccourcis, vous retournerez au menu.
Si vous mettez false, lorsque vous entrerez dans une des scenes choisies, en pressant Echap, vous retournerez sur la map, et pas dans le menu.

Désolé, mais j'ai eu du mal a traduire ^^"

Mist' :
Pas grave, corrigé un tantinet (j'ai compris le fonctionnement x) ).
Et, une scene, c'est les scenes comme Scene_Menu, etc., qui permettent de gèrer des données (en quelque sorte), et permet le rafraichissement et la modification de ces mêmes données (en gros hein).
Rafidelis
Rafidelis
Membre

Nombre de messages : 55
Distinction : aucune
Date d'inscription : 01/05/2008

*~ Shortcut For Scenes ~* Empty Re: *~ Shortcut For Scenes ~*

Lun 12 Jan 2009 - 16:38
Well, I have not implemented any keyboard module of
this script, but if you need me and just talk.
Thank you for your kind words and e azaki, thank you for that translate
the instructions of the script.
Contenu sponsorisé

*~ Shortcut For Scenes ~* Empty Re: *~ Shortcut For Scenes ~*

Revenir en haut
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum