Ogłoszenie 

Uwaga! To forum jest w trybie offline.
Wszelką pomoc uzyskasz pod adresem
forum.ultimateam.pl


Administracja Forum


Poprzedni temat «» Następny temat
Zamknięty przez: Ayene
Sro 28 Gru, 2011 15:16
Błąd i pytanie
Autor Wiadomość
Critetus 




Preferowany:
RPG Maker VX

Dołączyła: 15 Sie 2011
Posty: 11
Wysłany: Sob 12 Lis, 2011 14:25
Błąd i pytanie
Mam dwie sprawy - mam nadzieę, że ktoś będzie w stanie pomóc.

1.Wyświetla mi się taki błąd:


Jak go rozwiązać?

2. Znacie jakąś metodę/skrypt na coś w rodzaju pamiętnika? W którym można byłoby zapisywać jakieś odczucia, przemyślenia, zapis wydarzeń?
________________________
Uśmiechnij się, jutro będzie gorzej...

Projekt: Kanashii ame
 
 
 
Tjef 




Preferowany:
RPG Maker VX

Pomógł: 12 razy
Dołączył: 21 Wrz 2010
Posty: 163
Skąd: Wolsztyn
Wysłany: Sob 12 Lis, 2011 14:29
1. Prawdopodobnie źle skonfigurowałeś skrypt, lub kłóci się z innymi.
Po kolei wycinaj jeden skrypt i spróbuj zobaczyć, o który chodzi.
2. Możesz użyć tego skryptu http://www.ultimateam.pl/...hlight=dziennik
zamiast dziennika misji na pamiętnik.

//Jeżeli pomogłem, daj pomógł :-)
________________________
SAGA TS ( ThiefStory )
Rozdział I: Same Game http://www.ultimateam.pl/viewtopic.php?t=4978
Rozdział II: Terror http://www.ultimateam.pl/...p?p=64366#64366
Pozostałe rozdziały mogą nawet nie wyjść :P
Lista elity: http://i.imgur.com/Li9fU.jpg
 
 
Critetus 




Preferowany:
RPG Maker VX

Dołączyła: 15 Sie 2011
Posty: 11
Wysłany: Sob 12 Lis, 2011 14:48
Okazało się, że to przez ten skrypt: http://www.ultimateam.pl/...light=wymagania
A mi niestety jest potrzebny :/

Mógłby ktoś coś z tym zrobić?

Lista skryptów:
- nazwa lokacji by Moghunter
- A N T I L A G V X by Andrew McKellar (Anaryu)
- Użyj / Usuń Przedmiot by Ayene
- Ikona złotej monety w Menu
- Ring Menu podczas walki
- Podświetlenie przeciwnika podczas walki
- Pauza podczas gry
- Avatary podczas walki
- Przewijanie Windows_Help
- Okno zdobytego przedmiotu znaleziony przez Vrona
- Battle Result by Blockade
- Skrypt na peta
- Rozszerzona bitmapa
- Rozszerzone okno statusu
- Thomas Edison VX
- Neo Save System V
- Advanced Text System
________________________
Uśmiechnij się, jutro będzie gorzej...

Projekt: Kanashii ame
 
 
 
tracersgta 




Preferowany:
RPG Maker VX

Pomógł: 45 razy
Dołączył: 10 Sty 2011
Posty: 612
Skąd: mam wiedzieć?
Wysłany: Sob 12 Lis, 2011 14:52
Z jakim skryptem występują problemy?
________________________
I'm a tiger! I roar. I hunt, I climb, I eat, I wash, I sleep!

Gość, jeżeli pomogłem daj "Pomógł" ;-)
 
 
 
Avara 





Pomogła: 32 razy
Dołączyła: 15 Gru 2010
Posty: 331
Skąd: Łódź
Wysłany: Sob 12 Lis, 2011 15:38
Nie wiem czy jest to na ultimie, ale tu masz skrypt na pamiętnik:

Spoiler:

Kod:
#================================================= =============================
# ** Uwaga Dziennik Skillo odbywa się na podstawy i przy wsparciu skrypt Adurna
#================================================= =============================

#================================================= =============================
# ** Moduł Ardurna Wyprodukowano przez Ardurna niniejszym zmieniony przez Skillo
#------------------------------------------------- -----------------------------
# Ten moduł jest używany do konfigurowania systemu zauważa.
#================================================= =============================
module Adurna
 
# Tutaj ustawić maksymalną liczbę znaków w nazwie uwagę
# = Liczba Nbr_carac_max_name
  Nbr_carac_max_name = 20 #(20 par défaut)
 
# Tutaj ustawić maksymalną liczbę znaków w notatce
# = Liczba Nbr_carac_max_note
  Nbr_carac_max_note = 200 # (200 par défaut)
 
# Zostaną określone tutaj, jeśli chcesz tło podczas tworzenia lub edytowania notatki.
# Fond_Inter = true / false 
  Fond_Inter = true
 
# Tutaj ustawić obraz tła, który pojawia się podczas tworzenia lub edytowania notatki jeśli Fond_Inter = true.
# Tle = "Nazwa obrazu"
  Fond = "fond.png"
 
# Tutaj ustawić przezroczystość okna podczas tworzenia lub edytowania notatki jeśli Fond_Inter = false
# = Liczba Note_Input_opacity
Note_Input_opacity = 200 # (domyślnie 200)

# Zostaną określone tutaj, jeśli chcesz tło w informacji dodatkowej do menu.
# Fond_Inter_Menu = true / false
Fond_Inter_Menu = true

# Tutaj ustawić obraz tła, które pojawią się w informacji dodatkowej do menu, jeśli Fond_Inter_ menu = true.
# Fond_Menu = "Nazwa obrazu"
Fond_Menu = "livre.png"

# Tutaj ustawić przezroczystość menu window = false, jeśli pamiętać, Fond_Inter_Menu
# = Liczba Menu_opacity
Menu_opacity = 200 # (domyślnie 200)

# Definiowane będzie nazwę notatki polecenie menu.
Note_edit_Vocab = "Edytuj"
Note_read_Vocab = "Czytaj"
Note_create_Vocab = "Utwórz"
Note_delete_Vocab = "Usuń"
Note_return_Vocab = "Powrót"

 
  end

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system-related data. Also manages vehicles and BGM, etc.
# The instance of this class is referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :notes_hash
 
  alias dudu_initialize initialize
  def initialize
    dudu_initialize
    @notes_hash = {}
  end
end

#==============================================================================
# ** Scene_Note
#   This class create or edit notes.
#==============================================================================
class Scene_Note < Scene_Base
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(name, tableau, edit = false, key = nil)
    @name = name
    @edit = edit
    @tableau = tableau
    @key = key
    @cancel = false
  end
 
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    @help_window = Window_Help.new
    if @name
      @edit_window = Window_NoteEdit.new(Adurna::Nbr_carac_max_name, @tableau)
      @help_window.set_text("Entrez le nom de la note.", 1)
    else
      @edit_window = Window_NoteEdit.new(Adurna::Nbr_carac_max_note, @tableau)
      @help_window.set_text("Entrez le contenu de votre note.", 1)
    end
    @input_window = Window_NoteInput.new
    if Adurna::Fond_Inter
      @edit_window.opacity = 0
      @input_window.opacity = 0
      @help_window.opacity = 0
      @fond = Sprite.new
      @fond.bitmap = Cache.picture(Adurna::Fond)
      @fond.x =0
      @fond.y =0
    else
      @help_window.opacity = Adurna::Note_Input_opacity
      @edit_window.opacity = Adurna::Note_Input_opacity
      @input_window.opacity = Adurna::Note_Input_opacity
    end
  end
 
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    @fond.dispose if Adurna::Fond_Inter
    @help_window.dispose
    dispose_menu_background
    @edit_window.dispose
    @input_window.dispose
  end 
 
  #--------------------------------------------------------------------------
  # * Create Note Array String
  #--------------------------------------------------------------------------
  def create_note_array_string(array)
    @note_array = []
    str = ""
    for i in 0...array.size
      if  (i+1)%20 == 0
        str += array[i] if array[i]  != nil
        @note_array.push(str)
        str = ""
      else
        str += array[i]
      end
      i += 1
    end
    @note_array.push(str)
    str = ""
    return  @note_array
  end
 
  #--------------------------------------------------------------------------
  # * Edit Notes Hash Key
  #--------------------------------------------------------------------------
  def edit_notes_hash_key(key)
    note = $game_system.notes_hash[@key]
    $game_system.notes_hash.delete(@key)
    $game_system.notes_hash[key] = note
  end
 
  #--------------------------------------------------------------------------
  # * Create Notes Hash Key
  #-------------------------------------------------------------------------- 
  def create_notes_hash_key(key)
     $game_system.notes_hash[key] = []
  end 
 
  #--------------------------------------------------------------------------
  # * Edit Notes Hash Value
  #--------------------------------------------------------------------------
   def edit_notes_hash_value(key, value)
      $game_system.notes_hash[key] = value
    end
   
  #--------------------------------------------------------------------------
  # * Create Array String
  #--------------------------------------------------------------------------
  def create_array_string( array)
    x = []
    for i in 0...array.size
      x += array[i].split(//)[0...Adurna::Nbr_carac_max_note]
    end
    return x
  end   
 
  #--------------------------------------------------------------------------
  # * Return to Original Screen
  #--------------------------------------------------------------------------
  def return_scene
    if @cancel
      $scene = Scene_MenuNote.new
    elsif @name
      note = $game_system.notes_hash[@key]
      array = create_array_string(note)
      $scene = Scene_Note.new(false, array,  @edit, @key)     
    else
      $scene = Scene_MenuNote.new
    end
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @edit_window.update
    @help_window.update
    @input_window.update
    if Input.repeat?(Input::B)
      if @edit_window.index >= 0            # Not at the left edge
        Sound.play_cancel
        @edit_window.back
      end
    elsif Input.trigger?(Input::C) or Input.repeat?(Input::C)
      if @input_window.is_decision          # If cursor is positioned on [OK]
        Sound.play_decision
        if @name
          note =  create_note_array_string(@edit_window.name_array)
          if @edit
            edit_notes_hash_key(note[0])
          else
            create_notes_hash_key(note[0])
          end
          @key = note[0]
          return_scene
        else
          note =  create_note_array_string(@edit_window.name_array)
          edit_notes_hash_value(@key, note)         
          return_scene
        end
      elsif @input_window.is_cancel          # If cursor is positioned on [OK]
        Sound.play_decision
        @cancel = true
        return_scene
      elsif @input_window.is_reset
        Sound.play_decision
        @edit_window.restore_default
      elsif @input_window.character != ""  # If text characters are not empty
        if @edit_window.index == @edit_window.max_char    # at the right edge
          Sound.play_buzzer
        else
          Sound.play_decision
          @edit_window.add(@input_window.character)      # Add text character
        end
      end
    end
  end
end

#==============================================================================
# ** Window_NoteEdit
#==============================================================================
class Window_NoteEdit < Window_Selectable

  attr_reader  :name_array                   # name
  attr_reader  :index                    # cursor position
  attr_reader  :max_char                # maximum number of characters
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #    max_char : maximum number of characters
  #   array : array
  #--------------------------------------------------------------------------
  def initialize(max_char, array)
    super(0, 56, 545, 114, 0)
    @max_char = max_char   
    @name_array = array.dup  # Fit within max length
    row_max = max_char/20
    @item_max = @max_char
    @default_name = []
    @column_max = 20
    @index = @name_array.size
    self.active = false
    create_contents
    self.contents = Bitmap.new(width - 32, [height - 32, row_max * WLH].max)
    refresh
  end

  #--------------------------------------------------------------------------
  # * Return to Default Name
  #--------------------------------------------------------------------------
  def restore_default
    @name_array = @default_name.dup
    @index = @name_array.size
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # * Add Text Character
  #    character : text character to be added
  #--------------------------------------------------------------------------
  def add(character)
    if @index < @max_char and character != ""
      if @name_array == nil
        @name_array.push(character)     
      else
        @name_array[@index] = character
      end
      @index += 1 if @index +1< @max_char
      refresh
      update_cursor
    end
  end
 
  #--------------------------------------------------------------------------
  # * Delete Text Character
  #--------------------------------------------------------------------------
  def back
    if @index >= 0
      @name_array.delete_at(@index)
      @index -= 1 if @index >= 1
      refresh
      update_cursor
    end
  end
 
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0...@max_char     
      c = @name_array[i]               
      c = '_' if c == nil
      self.contents.draw_text(item_rect(i), c, 1)
    end
  end
end

#==============================================================================
# ** Window_NoteInput
#==============================================================================
class Window_NoteInput < Window_Base
 ADURNA = [ 'A','B','C','D','E',  'a','b','c','d','e',  '/','*','-','+','=',
              'F','G','H','I','J',  'f','g','h','i','j',  '"','{','}','[',']',
              'K','L','M','N','O',  'k','l','m','n','o',  '~','(',')','@','|',
              'P','Q','R','S','T',  'p','q','r','s','t',  '?','.','/','§',',',
              'U','V','W','X','Y',  'u','v','w','x','y',  ';',':','!','&#181;','%',
              'Z',' ',' ',' ',' ',  'z',' ',' ',' ',' ',  '¤','¨','°','&#178;','^',
              'Ą','Ë','&#207;','Ö','Ü',  'ä','ë','&#239;','ö','ü',  '<','>','&#163;','$','
',
              '1','2','3','4','5',  'â','&#234;','î','ô','&#251;',  'Â','&#202;','Î','Ô','&#219;',
              '6','7','8','9','0',  '&#232;','é','&#224;','&#249;','ç',  '&',"'",'Wyczyść','Wróć','Zapisz']
  TABLE = [ADURNA]
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(0, 170, 545, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end

  #--------------------------------------------------------------------------
  # * Character
  #--------------------------------------------------------------------------
  def character
    if @index < 133   
      return TABLE[@mode][@index]
    else
      return ""
    end
  end

  #--------------------------------------------------------------------------
  # * Is Reset
  #--------------------------------------------------------------------------
  def is_reset
    return (@index == 132)
  end
 
  #--------------------------------------------------------------------------
  # * Is Cancel
  #--------------------------------------------------------------------------
  def is_cancel
    return (@index == 133)
  end
 
  #--------------------------------------------------------------------------
  # * Is Decision
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 134)
  end

  #--------------------------------------------------------------------------
  # * Iten Rect
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.x = index % 15 * 32 + index % 15 / 5 * 16
    rect.y = index / 15 * WLH
    rect.width = 32
    rect.height = WLH
    return rect
  end

  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0..134   
      rect = item_rect(i)
      rect.x += 2
      rect.width -= 4
      self.contents.draw_text(rect, TABLE[@mode][i], 1)
    end
  end

  #--------------------------------------------------------------------------
  # * Update Cursor
  #-------------------------------------------------------------------------- 
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
 
  #--------------------------------------------------------------------------
  # * Cursor Down
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index <120     
      @index += 15   
    elsif wrap
      @index -= 120   
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Up
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 15     
      @index -= 15       
    elsif wrap
      @index += 120
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Right
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 15 < 14     
      @index += 1             
    elsif wrap
      @index -= 14             
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Left
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 15 > 0         
      @index -= 1                 
    elsif wrap
      @index += 14                 
    end
  end
 
  #--------------------------------------------------------------------------
  # * Cursor To Decision
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 134       
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    last_mode = @mode
    last_index = @index
    if Input.repeat?(Input::DOWN)
      cursor_down(Input.trigger?(Input::DOWN))
    end
    if Input.repeat?(Input::UP)
      cursor_up(Input.trigger?(Input::UP))
    end
    if Input.repeat?(Input::RIGHT)
      cursor_right(Input.trigger?(Input::RIGHT))
    end
    if Input.repeat?(Input::LEFT)
      cursor_left(Input.trigger?(Input::LEFT))
    end
    if Input.trigger?(Input::A)
      cursor_to_decision
    end
    if @index != last_index or @mode != last_mode
      Sound.play_cursor
    end
    update_cursor
  end
end

#==============================================================================
# ** Scene_MenuNote
#==============================================================================

class Scene_MenuNote < Scene_Base
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
 
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @message_window = Window_Message.new
    if Adurna::Fond_Inter_Menu
      @status_window = Window_NoteStatus.new(282, 10, $game_system.notes_hash, 242, 406)
      @status_window.opacity =0
      @fond = Sprite.new
      @fond.bitmap = Cache.picture(Adurna::Fond_Menu)
      @fond.x =0
      @fond.y =0
    else
      @status_window = Window_NoteStatus.new(160, 0, $game_system.notes_hash)
      @command_window.opacity = Adurna::Menu_opacity
      @status_window.opacity = Adurna::Menu_opacity
      @message_window.opacity = Adurna::Menu_opacity     
    end
  end
 
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    @fond.dispose if Adurna::Fond_Inter_Menu
    @command_window.dispose
    @status_window.dispose
    @message_window.dispose
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @command_window.update
    @status_window.update
    @message_window.update
    unless $game_message.visible
      if @command_window.active
        update_command_selection
      elsif @status_window.active
        update_note_selection
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Adurna::Note_create_Vocab
    s2 = Adurna::Note_read_Vocab
    s3 = Adurna::Note_edit_Vocab
    s4 = Adurna::Note_delete_Vocab
    s5 = Adurna::Note_return_Vocab
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5])
    if Adurna::Fond_Inter_Menu
      @command_window.opacity = 0
      @command_window.x = 56
      @command_window.y = 112
    end
    @command_window.index = @menu_index
    if $game_system.notes_hash.empty?
      @command_window.draw_item(1, false)     
      @command_window.draw_item(2, false) 
      @command_window.draw_item(3, false) 
    end     
  end
 
  #--------------------------------------------------------------------------
  # * Update Command Selection
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_system.notes_hash.empty? and 0 < @command_window.index and @command_window.index < 4
        Sound.play_buzzer
      return
      end
      Sound.play_decision
      case @command_window.index
      when 0      # Item
        $scene = Scene_Note.new(true, [])
      when 1,2,3  # Skill, equipment, status
        start_note_selection
      when 4
        $scene = Scene_Map.new
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Start Note Selection
  #--------------------------------------------------------------------------
  def start_note_selection
    @command_window.active = false
    @status_window.active = true
    if $game_party.last_actor_index < @status_window.item_max
      @status_window.index = $game_party.last_actor_index
    else
      @status_window.index = 0
    end
  end

  #--------------------------------------------------------------------------
  # * End Note Selection
  #--------------------------------------------------------------------------
  def end_note_selection
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
  end
 
  #--------------------------------------------------------------------------
  # * Create Array String
  #--------------------------------------------------------------------------
  def create_array_string(str)
    array = str.split(//)[0...Adurna::Nbr_carac_max_name]
    return array
  end   
 
  #--------------------------------------------------------------------------
  # * Validate Enemy
  #--------------------------------------------------------------------------
  def message(text, newpage = false, position = 1, background = 0)
    $game_message.background = background
    $game_message.position = position
    $game_message.texts = text
    if newpage
      $game_message.new_page
    end
    $game_message.visible = true   
  end
  #--------------------------------------------------------------------------
  # * Update Actor Selection
  #--------------------------------------------------------------------------
  def update_note_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_note_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1 
        key = $game_system.notes_hash.keys[@status_window.index]
        if Adurna::Fond_Inter_Menu
          message($game_system.notes_hash[key], true, 1, 1)
        else
          message($game_system.notes_hash[key], true)
        end
        end_note_selection
      when 2  # edit
        key = $game_system.notes_hash.keys[@status_window.index]
        array = create_array_string(key)
        $scene = Scene_Note.new(true, array, true, key)
      when 3  # delete
        key = $game_system.notes_hash.keys[@status_window.index]
        $game_system.notes_hash.delete(key)
        @command_window.dispose
        create_command_window
        @status_window.dispose
        if Adurna::Fond_Inter_Menu
          @status_window = Window_NoteStatus.new(282, 10, $game_system.notes_hash, 242, 406)
          @status_window.opacity =0
        else
          @status_window = Window_NoteStatus.new(160, 0, $game_system.notes_hash)
        end
        end_note_selection
      end
    end
  end
end

#==============================================================================
# ** Window_NoteStatus
#==============================================================================

class Window_NoteStatus < Window_Selectable
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y, hash, width = 384, height = 416)
    super(x, y, width, height)
    @hash = hash.keys.dup
    @hash.sort!
    @column_max = 1
    @item_max = @hash.size
    refresh
    self.active = false
    self.index = -1
  end
 
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    create_contents
    for i in 0...@hash.size
      draw_item(i)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Draw Item
  #     index : item number
  #--------------------------------------------------------------------------
  def draw_item(index)
    rect = item_rect(index)
    self.contents.clear_rect(rect)
    if @hash[index] != nil
      rect.width -= 4
      self.contents.draw_text(rect, @hash[index], 1)
    end
  end
end


Nie zapomnij o czytaniu konfiguracji. Od linijki 336 Możesz te litery dowolnie zmieniać również na polskie. Już zmieniłam polecenia na nazwy polskie, bo wszystko było po francusku.
Skrypt wywołujesz:
Kod:
$scene = Scene_MenuNote.new



//Edit: Wystarczy zamienić obce litery na jakie chcesz. Nic dalej nie musisz zmieniać. Jak chcesz by był pusty kwadracik to zrób spację ;-)


//Edit 13.11.2011 8:08 :
Zapomniałam o grafikach do skryptu:
Spoiler:

Wrzuć do folderu Graphics\Pictures . Strona zmienia nazwy obrazków. Zapisz je jako:

fond.png


livre.png


Dorzucam też moją propozycję z polskimi literami.
Spoiler:

Kod:
#================================================= =============================
# ** Uwaga Dziennik Skillo odbywa się na podstawy i przy wsparciu skrypt Adurna
#================================================= =============================

#================================================= =============================
# ** Moduł Ardurna Wyprodukowano przez Ardurna niniejszym zmieniony przez Skillo
#------------------------------------------------- -----------------------------
# Ten moduł jest używany do konfigurowania systemu zauważa.
#================================================= =============================

# Tłumaczenie poleceń i zmiana liter w pisowniku na polskie przez Avara. Ultimateam.pl

module Adurna
 
# Tutaj ustawić maksymalną liczbę znaków w nazwie uwagę
# = Liczba Nbr_carac_max_name
  Nbr_carac_max_name = 20 #(20 par défaut)
 
# Tutaj ustawić maksymalną liczbę znaków w notatce
# = Liczba Nbr_carac_max_note
  Nbr_carac_max_note = 200 # (200 par défaut)
 
# Zostaną określone tutaj, jeśli chcesz tło podczas tworzenia lub edytowania notatki.
# Fond_Inter = true / false 
  Fond_Inter = true
 
# Tutaj ustawić obraz tła, który pojawia się podczas tworzenia lub edytowania notatki jeśli Fond_Inter = true.
# Tle = "Nazwa obrazu"
  Fond = "fond.png"
 
# Tutaj ustawić przezroczystość okna podczas tworzenia lub edytowania notatki jeśli Fond_Inter = false
# = Liczba Note_Input_opacity
Note_Input_opacity = 200 # (domyślnie 200)

# Zostaną określone tutaj, jeśli chcesz tło w informacji dodatkowej do menu.
# Fond_Inter_Menu = true / false
Fond_Inter_Menu = true

# Tutaj ustawić obraz tła, które pojawią się w informacji dodatkowej do menu, jeśli Fond_Inter_ menu = true.
# Fond_Menu = "Nazwa obrazu"
Fond_Menu = "livre.png"

# Tutaj ustawić przezroczystość menu window = false, jeśli pamiętać, Fond_Inter_Menu
# = Liczba Menu_opacity
Menu_opacity = 200 # (domyślnie 200)

# Definiowane będzie nazwę notatki polecenie menu.
Note_edit_Vocab = "Edytuj"
Note_read_Vocab = "Czytaj"
Note_create_Vocab = "Utwórz"
Note_delete_Vocab = "Usuń"
Note_return_Vocab = "Powrót"

 
  end

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system-related data. Also manages vehicles and BGM, etc.
# The instance of this class is referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :notes_hash
 
  alias dudu_initialize initialize
  def initialize
    dudu_initialize
    @notes_hash = {}
  end
end

#==============================================================================
# ** Scene_Note
#   This class create or edit notes.
#==============================================================================
class Scene_Note < Scene_Base
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(name, tableau, edit = false, key = nil)
    @name = name
    @edit = edit
    @tableau = tableau
    @key = key
    @cancel = false
  end
 
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    @help_window = Window_Help.new
    if @name
      @edit_window = Window_NoteEdit.new(Adurna::Nbr_carac_max_name, @tableau)
      @help_window.set_text("Entrez le nom de la note.", 1)
    else
      @edit_window = Window_NoteEdit.new(Adurna::Nbr_carac_max_note, @tableau)
      @help_window.set_text("Entrez le contenu de votre note.", 1)
    end
    @input_window = Window_NoteInput.new
    if Adurna::Fond_Inter
      @edit_window.opacity = 0
      @input_window.opacity = 0
      @help_window.opacity = 0
      @fond = Sprite.new
      @fond.bitmap = Cache.picture(Adurna::Fond)
      @fond.x =0
      @fond.y =0
    else
      @help_window.opacity = Adurna::Note_Input_opacity
      @edit_window.opacity = Adurna::Note_Input_opacity
      @input_window.opacity = Adurna::Note_Input_opacity
    end
  end
 
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    @fond.dispose if Adurna::Fond_Inter
    @help_window.dispose
    dispose_menu_background
    @edit_window.dispose
    @input_window.dispose
  end 
 
  #--------------------------------------------------------------------------
  # * Create Note Array String
  #--------------------------------------------------------------------------
  def create_note_array_string(array)
    @note_array = []
    str = ""
    for i in 0...array.size
      if  (i+1)%20 == 0
        str += array[i] if array[i]  != nil
        @note_array.push(str)
        str = ""
      else
        str += array[i]
      end
      i += 1
    end
    @note_array.push(str)
    str = ""
    return  @note_array
  end
 
  #--------------------------------------------------------------------------
  # * Edit Notes Hash Key
  #--------------------------------------------------------------------------
  def edit_notes_hash_key(key)
    note = $game_system.notes_hash[@key]
    $game_system.notes_hash.delete(@key)
    $game_system.notes_hash[key] = note
  end
 
  #--------------------------------------------------------------------------
  # * Create Notes Hash Key
  #-------------------------------------------------------------------------- 
  def create_notes_hash_key(key)
     $game_system.notes_hash[key] = []
  end 
 
  #--------------------------------------------------------------------------
  # * Edit Notes Hash Value
  #--------------------------------------------------------------------------
   def edit_notes_hash_value(key, value)
      $game_system.notes_hash[key] = value
    end
   
  #--------------------------------------------------------------------------
  # * Create Array String
  #--------------------------------------------------------------------------
  def create_array_string( array)
    x = []
    for i in 0...array.size
      x += array[i].split(//)[0...Adurna::Nbr_carac_max_note]
    end
    return x
  end   
 
  #--------------------------------------------------------------------------
  # * Return to Original Screen
  #--------------------------------------------------------------------------
  def return_scene
    if @cancel
      $scene = Scene_MenuNote.new
    elsif @name
      note = $game_system.notes_hash[@key]
      array = create_array_string(note)
      $scene = Scene_Note.new(false, array,  @edit, @key)     
    else
      $scene = Scene_MenuNote.new
    end
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @edit_window.update
    @help_window.update
    @input_window.update
    if Input.repeat?(Input::B)
      if @edit_window.index >= 0            # Not at the left edge
        Sound.play_cancel
        @edit_window.back
      end
    elsif Input.trigger?(Input::C) or Input.repeat?(Input::C)
      if @input_window.is_decision          # If cursor is positioned on [OK]
        Sound.play_decision
        if @name
          note =  create_note_array_string(@edit_window.name_array)
          if @edit
            edit_notes_hash_key(note[0])
          else
            create_notes_hash_key(note[0])
          end
          @key = note[0]
          return_scene
        else
          note =  create_note_array_string(@edit_window.name_array)
          edit_notes_hash_value(@key, note)         
          return_scene
        end
      elsif @input_window.is_cancel          # If cursor is positioned on [OK]
        Sound.play_decision
        @cancel = true
        return_scene
      elsif @input_window.is_reset
        Sound.play_decision
        @edit_window.restore_default
      elsif @input_window.character != ""  # If text characters are not empty
        if @edit_window.index == @edit_window.max_char    # at the right edge
          Sound.play_buzzer
        else
          Sound.play_decision
          @edit_window.add(@input_window.character)      # Add text character
        end
      end
    end
  end
end

#==============================================================================
# ** Window_NoteEdit
#==============================================================================
class Window_NoteEdit < Window_Selectable

  attr_reader  :name_array                   # name
  attr_reader  :index                    # cursor position
  attr_reader  :max_char                # maximum number of characters
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #    max_char : maximum number of characters
  #   array : array
  #--------------------------------------------------------------------------
  def initialize(max_char, array)
    super(0, 56, 545, 114, 0)
    @max_char = max_char   
    @name_array = array.dup  # Fit within max length
    row_max = max_char/20
    @item_max = @max_char
    @default_name = []
    @column_max = 20
    @index = @name_array.size
    self.active = false
    create_contents
    self.contents = Bitmap.new(width - 32, [height - 32, row_max * WLH].max)
    refresh
  end

  #--------------------------------------------------------------------------
  # * Return to Default Name
  #--------------------------------------------------------------------------
  def restore_default
    @name_array = @default_name.dup
    @index = @name_array.size
    refresh
    update_cursor
  end
  #--------------------------------------------------------------------------
  # * Add Text Character
  #    character : text character to be added
  #--------------------------------------------------------------------------
  def add(character)
    if @index < @max_char and character != ""
      if @name_array == nil
        @name_array.push(character)     
      else
        @name_array[@index] = character
      end
      @index += 1 if @index +1< @max_char
      refresh
      update_cursor
    end
  end
 
  #--------------------------------------------------------------------------
  # * Delete Text Character
  #--------------------------------------------------------------------------
  def back
    if @index >= 0
      @name_array.delete_at(@index)
      @index -= 1 if @index >= 1
      refresh
      update_cursor
    end
  end
 
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0...@max_char     
      c = @name_array[i]               
      c = '_' if c == nil
      self.contents.draw_text(item_rect(i), c, 1)
    end
  end
end

#==============================================================================
# ** Window_NoteInput
#==============================================================================
class Window_NoteInput < Window_Base
 ADURNA = [ 'A','B','C','D','E',  'a','b','c','d','e',  '/','*','-','+','=',
              'F','G','H','I','J',  'f','g','h','i','j',  '"','{','}','[',']',
              'K','L','M','N','O',  'k','l','m','n','o',  '~','(',')','@','|',
              'P','Q','R','S','T',  'p','q','r','s','t',  '?','.','/','§',',',
              'U','V','W','X','Y',  'u','v','w','x','y',  ';',':','!','&#181;','%',
              'Z',' ',' ',' ',' ',  'z',' ',' ',' ',' ',  '¤','¨','°','&#178;','^',
              '1','2','3','4','5',  '6','7','8','9','0',  '<','>','&#163;','$','
',
              'Ą','Ć','Ę','Ł','Ń',  'ą','ć','ę','ł','ń',  '&',"'",' ',' ',' ',
              'Ó','Ś','Ź','Ż',' ',  'ó','ś','ź','ż',' ',  ' ',' ','Wyczyść','Wróć','Zapisz']
  TABLE = [ADURNA]
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(mode = 0)
    super(0, 170, 545, 248)
    @mode = mode
    @index = 0
    refresh
    update_cursor
  end

  #--------------------------------------------------------------------------
  # * Character
  #--------------------------------------------------------------------------
  def character
    if @index < 133   
      return TABLE[@mode][@index]
    else
      return ""
    end
  end

  #--------------------------------------------------------------------------
  # * Is Reset
  #--------------------------------------------------------------------------
  def is_reset
    return (@index == 132)
  end
 
  #--------------------------------------------------------------------------
  # * Is Cancel
  #--------------------------------------------------------------------------
  def is_cancel
    return (@index == 133)
  end
 
  #--------------------------------------------------------------------------
  # * Is Decision
  #--------------------------------------------------------------------------
  def is_decision
    return (@index == 134)
  end

  #--------------------------------------------------------------------------
  # * Iten Rect
  #--------------------------------------------------------------------------
  def item_rect(index)
    rect = Rect.new(0, 0, 0, 0)
    rect.x = index % 15 * 32 + index % 15 / 5 * 16
    rect.y = index / 15 * WLH
    rect.width = 32
    rect.height = WLH
    return rect
  end

  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0..134   
      rect = item_rect(i)
      rect.x += 2
      rect.width -= 4
      self.contents.draw_text(rect, TABLE[@mode][i], 1)
    end
  end

  #--------------------------------------------------------------------------
  # * Update Cursor
  #-------------------------------------------------------------------------- 
  def update_cursor
    self.cursor_rect = item_rect(@index)
  end
 
  #--------------------------------------------------------------------------
  # * Cursor Down
  #--------------------------------------------------------------------------
  def cursor_down(wrap)
    if @index <120     
      @index += 15   
    elsif wrap
      @index -= 120   
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Up
  #--------------------------------------------------------------------------
  def cursor_up(wrap)
    if @index >= 15     
      @index -= 15       
    elsif wrap
      @index += 120
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Right
  #--------------------------------------------------------------------------
  def cursor_right(wrap)
    if @index % 15 < 14     
      @index += 1             
    elsif wrap
      @index -= 14             
    end
  end

  #--------------------------------------------------------------------------
  # * Cursor Left
  #--------------------------------------------------------------------------
  def cursor_left(wrap)
    if @index % 15 > 0         
      @index -= 1                 
    elsif wrap
      @index += 14                 
    end
  end
 
  #--------------------------------------------------------------------------
  # * Cursor To Decision
  #--------------------------------------------------------------------------
  def cursor_to_decision
    @index = 134       
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    last_mode = @mode
    last_index = @index
    if Input.repeat?(Input::DOWN)
      cursor_down(Input.trigger?(Input::DOWN))
    end
    if Input.repeat?(Input::UP)
      cursor_up(Input.trigger?(Input::UP))
    end
    if Input.repeat?(Input::RIGHT)
      cursor_right(Input.trigger?(Input::RIGHT))
    end
    if Input.repeat?(Input::LEFT)
      cursor_left(Input.trigger?(Input::LEFT))
    end
    if Input.trigger?(Input::A)
      cursor_to_decision
    end
    if @index != last_index or @mode != last_mode
      Sound.play_cursor
    end
    update_cursor
  end
end

#==============================================================================
# ** Scene_MenuNote
#==============================================================================

class Scene_MenuNote < Scene_Base
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     menu_index : command cursor's initial position
  #--------------------------------------------------------------------------
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
 
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @message_window = Window_Message.new
    if Adurna::Fond_Inter_Menu
      @status_window = Window_NoteStatus.new(282, 10, $game_system.notes_hash, 242, 406)
      @status_window.opacity =0
      @fond = Sprite.new
      @fond.bitmap = Cache.picture(Adurna::Fond_Menu)
      @fond.x =0
      @fond.y =0
    else
      @status_window = Window_NoteStatus.new(160, 0, $game_system.notes_hash)
      @command_window.opacity = Adurna::Menu_opacity
      @status_window.opacity = Adurna::Menu_opacity
      @message_window.opacity = Adurna::Menu_opacity     
    end
  end
 
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    @fond.dispose if Adurna::Fond_Inter_Menu
    @command_window.dispose
    @status_window.dispose
    @message_window.dispose
  end
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @command_window.update
    @status_window.update
    @message_window.update
    unless $game_message.visible
      if @command_window.active
        update_command_selection
      elsif @status_window.active
        update_note_selection
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = Adurna::Note_create_Vocab
    s2 = Adurna::Note_read_Vocab
    s3 = Adurna::Note_edit_Vocab
    s4 = Adurna::Note_delete_Vocab
    s5 = Adurna::Note_return_Vocab
    @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5])
    if Adurna::Fond_Inter_Menu
      @command_window.opacity = 0
      @command_window.x = 56
      @command_window.y = 112
    end
    @command_window.index = @menu_index
    if $game_system.notes_hash.empty?
      @command_window.draw_item(1, false)     
      @command_window.draw_item(2, false) 
      @command_window.draw_item(3, false) 
    end     
  end
 
  #--------------------------------------------------------------------------
  # * Update Command Selection
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      if $game_system.notes_hash.empty? and 0 < @command_window.index and @command_window.index < 4
        Sound.play_buzzer
      return
      end
      Sound.play_decision
      case @command_window.index
      when 0      # Item
        $scene = Scene_Note.new(true, [])
      when 1,2,3  # Skill, equipment, status
        start_note_selection
      when 4
        $scene = Scene_Map.new
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Start Note Selection
  #--------------------------------------------------------------------------
  def start_note_selection
    @command_window.active = false
    @status_window.active = true
    if $game_party.last_actor_index < @status_window.item_max
      @status_window.index = $game_party.last_actor_index
    else
      @status_window.index = 0
    end
  end

  #--------------------------------------------------------------------------
  # * End Note Selection
  #--------------------------------------------------------------------------
  def end_note_selection
    @command_window.active = true
    @status_window.active = false
    @status_window.index = -1
  end
 
  #--------------------------------------------------------------------------
  # * Create Array String
  #--------------------------------------------------------------------------
  def create_array_string(str)
    array = str.split(//)[0...Adurna::Nbr_carac_max_name]
    return array
  end   
 
  #--------------------------------------------------------------------------
  # * Validate Enemy
  #--------------------------------------------------------------------------
  def message(text, newpage = false, position = 1, background = 0)
    $game_message.background = background
    $game_message.position = position
    $game_message.texts = text
    if newpage
      $game_message.new_page
    end
    $game_message.visible = true   
  end
  #--------------------------------------------------------------------------
  # * Update Actor Selection
  #--------------------------------------------------------------------------
  def update_note_selection
    if Input.trigger?(Input::B)
      Sound.play_cancel
      end_note_selection
    elsif Input.trigger?(Input::C)
      $game_party.last_actor_index = @status_window.index
      Sound.play_decision
      case @command_window.index
      when 1 
        key = $game_system.notes_hash.keys[@status_window.index]
        if Adurna::Fond_Inter_Menu
          message($game_system.notes_hash[key], true, 1, 1)
        else
          message($game_system.notes_hash[key], true)
        end
        end_note_selection
      when 2  # edit
        key = $game_system.notes_hash.keys[@status_window.index]
        array = create_array_string(key)
        $scene = Scene_Note.new(true, array, true, key)
      when 3  # delete
        key = $game_system.notes_hash.keys[@status_window.index]
        $game_system.notes_hash.delete(key)
        @command_window.dispose
        create_command_window
        @status_window.dispose
        if Adurna::Fond_Inter_Menu
          @status_window = Window_NoteStatus.new(282, 10, $game_system.notes_hash, 242, 406)
          @status_window.opacity =0
        else
          @status_window = Window_NoteStatus.new(160, 0, $game_system.notes_hash)
        end
        end_note_selection
      end
    end
  end
end

#==============================================================================
# ** Window_NoteStatus
#==============================================================================

class Window_NoteStatus < Window_Selectable
 
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y, hash, width = 384, height = 416)
    super(x, y, width, height)
    @hash = hash.keys.dup
    @hash.sort!
    @column_max = 1
    @item_max = @hash.size
    refresh
    self.active = false
    self.index = -1
  end
 
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    create_contents
    for i in 0...@hash.size
      draw_item(i)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Draw Item
  #     index : item number
  #--------------------------------------------------------------------------
  def draw_item(index)
    rect = item_rect(index)
    self.contents.clear_rect(rect)
    if @hash[index] != nil
      rect.width -= 4
      self.contents.draw_text(rect, @hash[index], 1)
    end
  end
end


Ten skrypt umożliwia samodzielne pisanie notatek przez gracza ;-)
________________________


Drakensang - przeglądarkowa gra RPG online
Spoiler:

 
 
 
Finwe 




Preferowany:
RPG Maker VXAce

Pomógł: 34 razy
Dołączył: 30 Lip 2011
Posty: 322
Skąd: Rzeszów
Wysłany: Pią 18 Lis, 2011 16:52
Cóż... Podaj treść 76 linijki, może pomoże. Według mnie może się kłócić z itemkami. Np. skrypt Ayene na usunięcie przedmiotów.
 
 
 
Wyświetl posty z ostatnich:   
Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Nie możesz załączać plików na tym forum
Możesz ściągać załączniki na tym forum
Dodaj temat do Ulubionych
Wersja do druku

Skocz do:  

Powered by phpBB modified by Przemo © 2003 phpBB Group | Template Klam by Ayene