[Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 1:28
Bonsoir, j'aurais besoin que quelqu'un me modifie mon scene_menu pour y rajouter le nombre de pas du héros.
Car quand on l'ouvre, on à un trou, et je voudrais le remplir avec ça
Type de script: Menu
Spécificités: Qu'il remplise totalement le trou. (voir photo)
Ressources supplémentaires: One person menu
Merci d'avance à la personne voulant bien m'aider
Car quand on l'ouvre, on à un trou, et je voudrais le remplir avec ça
Type de script: Menu
Spécificités: Qu'il remplise totalement le trou. (voir photo)
Ressources supplémentaires: One person menu
- Spoiler:
- Code:
#===============================================================================
#
# DT's One Person Menu
# Author: DoctorTodd
# Date (02/19/2012)
# Type: (Menu)
# Version: (1.0.0) (VXA)
# Level: (Simple)
# Email: BeaconGames2011@gmail.com
#
#===============================================================================
#
# NOTES: 1)This script will only work with ace, you may find my VX version on
# RMRK.net and the rpg maker web forums.
#
#===============================================================================
#
# Description: A menu that is modified to work as if you are only using one
# actor.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Contact me for commercial use, other wise just credit me and don't repost
# without my permission.
#
#===============================================================================
#
# Editing begins 40 and ends on 59.
#
#===============================================================================
module DTOPM
#Window skin to use, place in system.
WINDOW = ('Window')
#Status Window X
SX = 200
#Status Window Y
SY = 75
#Gold window X
GX = 40
#Gold Window Y
GY = 242
#Command Window X
CX = 40
#Command Window Y
CY = 75
end
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_background
create_command_window
create_status_window
create_gold_window
end
#--------------------------------------------------------------------------
# * Create Gold Window
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = (DTOPM::GX)
@gold_window.y = (DTOPM::GY)
@gold_window.windowskin = Cache.system(DTOPM::WINDOW)
@gold_window.height = 55
end
#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_MenuInfo.new((DTOPM::SX), (DTOPM::SY))
@status_window.windowskin = Cache.system(DTOPM::WINDOW)
end
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:equip, method(:command_equip))
@command_window.set_handler(:status, method(:command_status))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
@command_window.x = (DTOPM::CX)
@command_window.y = (DTOPM::CY)
end
end
#--------------------------------------------------------------------------
# * [Item] Command
#--------------------------------------------------------------------------
def command_item
SceneManager.call(Scene_Item)
end
#--------------------------------------------------------------------------
# * [Equipment] Command
#--------------------------------------------------------------------------
def command_equip
@actor = $game_party.members[0]
SceneManager.call(Scene_Equip)
end
#--------------------------------------------------------------------------
# * [Status] Command
#--------------------------------------------------------------------------
def command_status
@actor = $game_party.members[0]
SceneManager.call(Scene_Status)
end
#--------------------------------------------------------------------------
# * [Exit Game] Command
#--------------------------------------------------------------------------
def command_game_end
SceneManager.call(Scene_End)
end
#===================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays the characters status on the menu screen.
#==============================================================================
class Window_MenuInfo < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 300, 221)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@actor = $game_party.members[0]
draw_actor_face(@actor, 0, 0)
draw_actor_name(@actor, 110, 5)
draw_actor_level(@actor, 190, 5)
draw_actor_hp(@actor, 110 ,40)
draw_actor_mp(@actor, 110 , 65)
draw_actor_param(@actor, 0, 100, 0)
draw_actor_param(@actor, 0, 124, 1)
draw_actor_param(@actor, 0, 148, 2)
draw_actor_param(@actor, 0, 172, 3)
draw_actor_graphic(@actor, 220, 160)
draw_actor_icons(@actor, 190, 180, width = 96)
end
end
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
# This command window appears on the menu screen.
#==============================================================================
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Initialize Command Selection Position (Class Method)
#--------------------------------------------------------------------------
def self.init_command_position
@@last_command_symbol = nil
end
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0)
select_last
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Get Number of Lines to Show
#--------------------------------------------------------------------------
def visible_line_number
item_max
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_original_commands
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
add_command(Vocab::equip, :equip, main_commands_enabled)
add_command(Vocab::status, :status, main_commands_enabled)
end
#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
end
#--------------------------------------------------------------------------
# * Add Exit Game to Command List
#--------------------------------------------------------------------------
def add_game_end_command
add_command(Vocab::game_end, :game_end)
end
#--------------------------------------------------------------------------
# * Get Activation State of Main Commands
#--------------------------------------------------------------------------
def main_commands_enabled
$game_party.exists
end
#--------------------------------------------------------------------------
# * Processing When OK Button Is Pressed
#--------------------------------------------------------------------------
def process_ok
@@last_command_symbol = current_symbol
super
end
#--------------------------------------------------------------------------
# * Restore Previous Selection Position
#--------------------------------------------------------------------------
def select_last
select_symbol(@@last_command_symbol)
end
end
Merci d'avance à la personne voulant bien m'aider
- Fichiers joints
- Shadow of LifeMembre
- Nombre de messages : 870
Age : 27
Localisation : Joyeux. Comment ça c'est pas la bonne case ?
Distinction : Artiste de la flagornerie.
Porte parole du Ô grand Voilà voilà.
Président du club des masochistes du forum
Fake Gentleman
Soumis ^^
Date d'inscription : 13/09/2009
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 11:40
Je te fais ça !
Ou du moins j'essaye ! :3
EDIT > je sais pas comment tu as bidouiller ton menu mais c'est pas de la manière la plus simple en tout cas.
Donc j'arrive pas à piger ton script de menu et j'ai pas envie de le trafiquer à l'aveuglette !
Ou du moins j'essaye ! :3
EDIT > je sais pas comment tu as bidouiller ton menu mais c'est pas de la manière la plus simple en tout cas.
Donc j'arrive pas à piger ton script de menu et j'ai pas envie de le trafiquer à l'aveuglette !
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 12:49
Et bien j'ai juste modifier le menu pour que l'on ait que
"Objets", "Équipements", "Statut" et "Quitter".
Après, je ne suis pas un expert, je n'ai fait que me servir des commentaires
Merci à toi
"Objets", "Équipements", "Statut" et "Quitter".
Après, je ne suis pas un expert, je n'ai fait que me servir des commentaires
Merci à toi
- Shadow of LifeMembre
- Nombre de messages : 870
Age : 27
Localisation : Joyeux. Comment ça c'est pas la bonne case ?
Distinction : Artiste de la flagornerie.
Porte parole du Ô grand Voilà voilà.
Président du club des masochistes du forum
Fake Gentleman
Soumis ^^
Date d'inscription : 13/09/2009
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 12:51
C'est sous VX Ace ?!
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 13:44
Oui, d'ailleurs j'ai oublié de poster le script "One person menu", désolé...
- Spoiler:
- Code:
#===============================================================================
#
# DT's One Person Menu
# Author: DoctorTodd
# Date (02/19/2012)
# Type: (Menu)
# Version: (1.0.0) (VXA)
# Level: (Simple)
# Email: BeaconGames2011@gmail.com
#
#===============================================================================
#
# NOTES: 1)This script will only work with ace, you may find my VX version on
# RMRK.net and the rpg maker web forums.
#
#===============================================================================
#
# Description: A menu that is modified to work as if you are only using one
# actor.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Contact me for commercial use, other wise just credit me and don't repost
# without my permission.
#
#===============================================================================
#
# Editing begins 40 and ends on 59.
#
#===============================================================================
module DTOPM
#Window skin to use, place in system.
WINDOW = ('Window')
#Status Window X
SX = 200
#Status Window Y
SY = 75
#Gold window X
GX = 40
#Gold Window Y
GY = 242
#Command Window X
CX = 40
#Command Window Y
CY = 75
end
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def start
super
create_background
create_command_window
create_status_window
create_gold_window
end
#--------------------------------------------------------------------------
# * Create Gold Window
#--------------------------------------------------------------------------
def create_gold_window
@gold_window = Window_Gold.new
@gold_window.x = (DTOPM::GX)
@gold_window.y = (DTOPM::GY)
@gold_window.windowskin = Cache.system(DTOPM::WINDOW)
@gold_window.height = 55
end
#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_MenuInfo.new((DTOPM::SX), (DTOPM::SY))
@status_window.windowskin = Cache.system(DTOPM::WINDOW)
end
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:equip, method(:command_equip))
@command_window.set_handler(:status, method(:command_status))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
@command_window.x = (DTOPM::CX)
@command_window.y = (DTOPM::CY)
end
end
#--------------------------------------------------------------------------
# * [Item] Command
#--------------------------------------------------------------------------
def command_item
SceneManager.call(Scene_Item)
end
#--------------------------------------------------------------------------
# * [Equipment] Command
#--------------------------------------------------------------------------
def command_equip
@actor = $game_party.members[0]
SceneManager.call(Scene_Equip)
end
#--------------------------------------------------------------------------
# * [Status] Command
#--------------------------------------------------------------------------
def command_status
@actor = $game_party.members[0]
SceneManager.call(Scene_Status)
end
#--------------------------------------------------------------------------
# * [Exit Game] Command
#--------------------------------------------------------------------------
def command_game_end
SceneManager.call(Scene_End)
end
#===================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
# This window displays the characters status on the menu screen.
#==============================================================================
class Window_MenuInfo < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 300, 221)
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@actor = $game_party.members[0]
draw_actor_face(@actor, 0, 0)
draw_actor_name(@actor, 110, 5)
draw_actor_level(@actor, 190, 5)
draw_actor_hp(@actor, 110 ,40)
draw_actor_mp(@actor, 110 , 65)
draw_actor_param(@actor, 0, 100, 0)
draw_actor_param(@actor, 0, 124, 1)
draw_actor_param(@actor, 0, 148, 2)
draw_actor_param(@actor, 0, 172, 3)
draw_actor_graphic(@actor, 220, 160)
draw_actor_icons(@actor, 190, 180, width = 96)
end
end
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
# This command window appears on the menu screen.
#==============================================================================
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Initialize Command Selection Position (Class Method)
#--------------------------------------------------------------------------
def self.init_command_position
@@last_command_symbol = nil
end
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0)
select_last
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Get Number of Lines to Show
#--------------------------------------------------------------------------
def visible_line_number
item_max
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_original_commands
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
add_command(Vocab::equip, :equip, main_commands_enabled)
add_command(Vocab::status, :status, main_commands_enabled)
end
#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
end
#--------------------------------------------------------------------------
# * Add Exit Game to Command List
#--------------------------------------------------------------------------
def add_game_end_command
add_command(Vocab::game_end, :game_end)
end
#--------------------------------------------------------------------------
# * Get Activation State of Main Commands
#--------------------------------------------------------------------------
def main_commands_enabled
$game_party.exists
end
#--------------------------------------------------------------------------
# * Processing When OK Button Is Pressed
#--------------------------------------------------------------------------
def process_ok
@@last_command_symbol = current_symbol
super
end
#--------------------------------------------------------------------------
# * Restore Previous Selection Position
#--------------------------------------------------------------------------
def select_last
select_symbol(@@last_command_symbol)
end
end
- Shadow of LifeMembre
- Nombre de messages : 870
Age : 27
Localisation : Joyeux. Comment ça c'est pas la bonne case ?
Distinction : Artiste de la flagornerie.
Porte parole du Ô grand Voilà voilà.
Président du club des masochistes du forum
Fake Gentleman
Soumis ^^
Date d'inscription : 13/09/2009
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 14:13
Ah ! Je code pas en RGSS3 désolé ... :X
J'ai juste appris le RGSS2 et encore !
J'ai juste appris le RGSS2 et encore !
Re: [Résolu]Ajout du nombre de pas sur menu
Mer 25 Juil 2012 - 15:16
Ah d'accord, pas grave, merci quand même
Je voulais essayer de rajouter une commande, mais j'ai vu aucun script de menu sur ace avec ça.
Sinon, au pire, y aurait-il moyen d'afficher une variable, ça serait plus simple je pense ? (et évidemment rajouter "pas" juste à côté)
Je voulais essayer de rajouter une commande, mais j'ai vu aucun script de menu sur ace avec ça.
Sinon, au pire, y aurait-il moyen d'afficher une variable, ça serait plus simple je pense ? (et évidemment rajouter "pas" juste à côté)
- driccMembre
- Nombre de messages : 2760
Localisation : Lille
Distinction : Altruiste - Incarnation de la Patience [Mist']
Date d'inscription : 10/08/2009
Re: [Résolu]Ajout du nombre de pas sur menu
Jeu 26 Juil 2012 - 10:15
Niveau script tout fait , j'ai cherché un peu ...
ceux de yanfly sont ne général largement parametrables , il est donc possible qu'on puisse le faire meme si on le ne voit pas sur les screenshots qu'il donne :
http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-menu-engine/
En voila un en ... italien . Mais je vois bien le nombre de pas écrit en bas :
http://www.rpgmakervxace.net/topic/729-msx-scene-menu-mod/
Et ... bingo :
http://www.rpgmakervxace.net/topic/815-steps-window/
celui là est spécialement pour les pas !
PS : pour la prochaine fois , voici ma source :
http://rmvxace.wikia.com/wiki/RPG_Maker_VX_Ace_Master_Script_List
Sur ce wiki, il y a des liens vers une multitude de forums , c'est la plus grosse bibliotheque de script qu'on puisse trouver .
ceux de yanfly sont ne général largement parametrables , il est donc possible qu'on puisse le faire meme si on le ne voit pas sur les screenshots qu'il donne :
http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-menu-engine/
En voila un en ... italien . Mais je vois bien le nombre de pas écrit en bas :
http://www.rpgmakervxace.net/topic/729-msx-scene-menu-mod/
Et ... bingo :
http://www.rpgmakervxace.net/topic/815-steps-window/
celui là est spécialement pour les pas !
PS : pour la prochaine fois , voici ma source :
http://rmvxace.wikia.com/wiki/RPG_Maker_VX_Ace_Master_Script_List
Sur ce wiki, il y a des liens vers une multitude de forums , c'est la plus grosse bibliotheque de script qu'on puisse trouver .
Re: [Résolu]Ajout du nombre de pas sur menu
Jeu 26 Juil 2012 - 16:11
Ah, c'est steps, je cherchais avec walk :boulet:
Merci à toi Dricc, j'ai pris le 3eme et ça fonctionne bien, juste fallu que je règle la position
Si quelqu'un a pris le one person menu que j'ai éditer et poster en haut et qu'il veux aussi rajouter les nombre de pas dans le trou voici les valeurs à modifier :
Ligne 83 et 84 :
@steps_window.x = 40
@steps_window.y = (Graphics.height - @steps_window.height) - 173
Merci à toi Dricc, j'ai pris le 3eme et ça fonctionne bien, juste fallu que je règle la position
Si quelqu'un a pris le one person menu que j'ai éditer et poster en haut et qu'il veux aussi rajouter les nombre de pas dans le trou voici les valeurs à modifier :
Ligne 83 et 84 :
@steps_window.x = 40
@steps_window.y = (Graphics.height - @steps_window.height) - 173
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|