AccueilAccueil  PortailPortail  RechercherRechercher  Dernières imagesDernières images  S'enregistrerS'enregistrer  ConnexionConnexion  



Le Deal du moment : -21%
LEGO® Icons 10329 Les Plantes Miniatures, ...
Voir le deal
39.59 €

Partagez
 

 probleme de débutant en scriptting

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
tontonjif
Poulet trizo Lv.3
Poulet trizo Lv.3
tontonjif


Masculin Age : 42
Inscrit le : 20/10/2011
Messages : 30

probleme de débutant en scriptting Empty
MessageSujet: probleme de débutant en scriptting   probleme de débutant en scriptting Icon_minitimeJeu 7 Aoû 2014 - 15:43

Je commence le scripting en rgss3.
je veut créer un script qui ouvre un menu avec certain items (livre en occurence ici)et une fois
selectionné, je vois un texte explicatif dans une autre fenetre. j'ai déja codé çà.
Code:
# une librairie des livres acquis consultable depuis le menu

#===============================================================================
class Window_Title < Window_Base
#===============================================================================
  def initialize
    super(0, 0, Graphics.width,48)
    refresh
  end
#-------------------------------------------------------------------------------
 def refresh
    self.contents.clear
    draw_text(0,0,contents_width, line_height, "Librairie", 1)
  end
  def tuto_draw
    draw_text(0,line_height,contents_width, line_height, text, 1)  
  end
end
#===============================================================================
class Window_Page < Window_Base
#===============================================================================
  def initialize
    super(160,48,385,370)
    refresh
  end
#-------------------------------------------------------------------------------  
  def refresh
    self.contents.clear
    draw_text(165,48,contents_width, line_height, @text)
  end
  def tuto_draw
    draw_text(0,line_height,contents_weidth, line_height, text)
  end
end
#===============================================================================
class Window_Livre < Window_Selectable
#===============================================================================
  def initialize
    super(0,48,160,370)
    refresh
  end
#-------------------------------------------------------------------------------  
  def refresh
    self.contents.clear
    draw_text(165,48,contents_width, line_height, @text)
  end
  def tuto_draw
    draw_text(10,10,120,20,$data_items[11].name, 1)
  end
end
#===============================================================================
class Scene_Librairie < Scene_Base
#===============================================================================
def start
  super
  create_Window_Title
  create_Window_Page
  create_Window_Livre
end
#-------------------------------------------------------------------------------
def update
  super
  if Input.trigger?(:B)
    return_scene
    Sound.play_cancel
  end
  if Input.trigger?(:C)
    end
end
#-------------------------------------------------------------------------------
def create_Window_Title
  @window_title= Window_Title.new
end
def create_Window_Page
  @window_page= Window_Page.new
end
def create_Window_Livre
  @window_livre=Window_Livre.new
  end
end
#-------------------------------------------------------------------------------
Mon probleme c'est que je ne vois pas comment afficher certain item possédé dans le menu.
Vous pourriez m'indiqué un début de code pour m'aider
Revenir en haut Aller en bas
 

probleme de débutant en scriptting

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

 Sujets similaires

-
» Apres le probleme d'event , encore un new probleme avec ABS combat réel !
» [Résolu] Problème Urgent ! Problème de test. Merci d'avance
» probléme de chez probléme ! [Faire un pokémon façon Vx]
» [Problème] Plusieur problème rencontrer avec SBS
» Aide debutant

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
RPG Maker VX :: Entraide :: Problèmes et Solutions-
Créer un forum | ©phpBB | Forum gratuit d'entraide | Signaler un abus | Forum gratuit