Xemnas Posted November 15, 2009 Share Posted November 15, 2009 (edited) Buon Giorno a tutti arrivo con un'altra novità (Sperando che nessuno l'abbia già postato)Catalogazione dei strumenti Autore=YanXieTraduttore=IoBug e conflitti noti=nessunoInstallazione=da copiare sotto materials Ecco lo script: #============================================================= ================= # ** Scene Item Enhanced #------------------------------------------------- ----------------------------- # Autore: puppeto4 # Version: 0.2 Revisione 1 # Data: 17 / 06 / 2008 # NOTA: Ordine Pizza Hut, sostenere la ribellione. # Check RPG RPG Revolution per il sostegno #------------------------------------------------- ----------------------------- # Funzione: # Questo script aggiunge la funzione di filtro al punto dello schermo. Per ora solo "tutto", # "Item", "Weapon", "Armor", "Key" categorie disponibili. Almeno per ora ... # Feature Prossimi: # - Possibilità di lanciare articolo dall'inventario # ... I'll aggiungere più tardi: P # # Change Log: # (24 / 06 / 2008) # Versione 0.2: - Rimosso "numero di voce" per la voce chiave. # - Modifica out elemento chiave in modo che sarebbe # Ordinato dopo le armi e armature. # - Aggiunto help descrizione finestra. #================================================= ============================= # ** SceneItemEnhanced: Configurazione #================================================= ============================= # ** Puppeto #------------------------------------------------- ----------------------------- # Questo modulo gestisce il programma di installazione per qualsiasi script scritto da me ^ ^. #================================================= ============================= module Puppeto #================================================= ============================= # ** ItemEnhance #------------------------------------------------- ----------------------------- # Questo modulo gestisce il programma di installazione per la voce di scena script migliorato. #================================================= ============================= module ItemEnhance #------------------------------------------------- ----------------------- # * Misc. Testo #------------------------------------------------- ----------------------- # Testo per il campo nota voce Key_Note = "*KEY" # Casella tutti All_Text = "Tutti" # casella oggetti Item_Text = "Oggetti" # Casella armi Weapon_Text = "Armi" # Casella Accessori = Scudi Anelli elmetti... Armor_Text = "Accessori" # Casella oggetti Chiave Key_Text = "Oggetti Chiave" #------------------------------------------------------------------------ # * Help Text #------------------------------------------------------------------------ # All item description All_Desc = "Mostra tutti i tipi di oggetti" # Item description Item_Desc = "Mostra solo oggetti normali" # Weapon description Weapon_Desc = "Mostra solo le armi" # Armor description Armor_Desc = "Mostra solo gli accessori" # Key item description Key_Desc = "Mostra solo gli oggetti chiave" #================================================= ============================= # ** Fine del modulo ItemEnhance #------------------------------------------------- ----------------------------- end #================================================= ============================= # ** Fine del modulo Puppeto #------------------------------------------------- ----------------------------- end #================================================= ============================= # ** Fine: Configurazione #================================================= ============================= # ** SceneItemEnhanced: Script #------------------------------------------------- ----------------------------- # ** Classe Alias #================================================= ============================= # * Alias classe (i): Game_Temp, Window_Item, Scene_Item, Game_Party #================================================= ============================= # ** Game_Temp #------------------------------------------------- ----------------------------- # Questa classe gestisce i dati temporanei che non è incluso con il salvataggio dei dati. # L'istanza di questa classe è referenziato da $ game_temp. #================================================= ============================= # * Metodo alias (s): inizializzare #------------------------------------------------- ----------------------------- class Game_Temp #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias puppet_item_enhance_initialize initialize #------------------------------------------------- ------------------------- # * Public variabili di istanza #------------------------------------------------- ------------------------- attr_accessor :show_items # Mostra solo oggetti normali attr_accessor :show_weapons # Mostra solo le armi attr_accessor :show_armors # Mostra solo gli accessori attr_accessor :show_keys # Mostra solo gli oggetti chiave #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize puppet_item_enhance_initialize # Il solito @show_items = false # show item flag @show_weapons = false # show weapon flag @show_armors = false # show armor flag @show_keys = false # show key item flag end end #================================================= ============================= # ** Game_Party #------------------------------------------------- ----------------------------- # Questa classe gestisce il party. Esso contiene informazioni sulla quantità di oro # E oggetti. L'istanza di questa classe è referenziato da $ game_party. #================================================= ============================= # * Metodo alias (s): articoli #------------------------------------------------- ----------------------------- class Game_Party < Game_Unit #------------------------------------------------- ------------------------- # * Get Articolo Object Array (comprese le armi e armature) #------------------------------------------------- ------------------------- def items result = [] for i in @items.keys.sort item = $data_items[i] unless item.note.include?("*KEY") result.push($data_items[i]) if @items[i] > 0 end end for i in @weapons.keys.sort result.push($data_weapons[i]) if @weapons[i] > 0 end for i in @armors.keys.sort result.push($data_armors[i]) if @armors[i] > 0 end for i in @items.keys.sort item = $data_items[i] if @items[i] > 0 and item.note.include?("*KEY") result.push($data_items[i]) end end return result end end #================================================= ============================= # ** Window_Item #------------------------------------------------- ----------------------------- # Questa finestra visualizza un elenco di voci di inventario per lo schermo voce, ecc #================================================= ============================= # Alias Method (s): include? # Rewrite Method (s): draw_item #------------------------------------------------- ---------------------------- class Window_Item < Window_Selectable #-------------------------------------------------------------------------- # * Include Puppeto::ItemEnhance moduli #-------------------------------------------------------------------------- include Puppeto::ItemEnhance #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias puppet_enhance_item_include? include? #-------------------------------------------------------------------------- # * Whether or not to include in item list # item : item #-------------------------------------------------------------------------- def include?(item) puppet_enhance_item_include?(item) return false if item == nil if $game_temp.show_items # Don't show item with Key_Note text return false if item.note.include?(Key_Note) # Only show items return false unless item.is_a?(RPG::Item) elsif $game_temp.show_weapons # Only show weapons return false unless item.is_a?(RPG::Weapon) elsif $game_temp.show_armors # Only show armors return false unless item.is_a?(RPG::Armor) elsif $game_temp.show_keys # Only show item with Key_Note text return false unless item.note.include?(Key_Note) end if $game_temp.in_battle return false unless item.is_a?(RPG::Item) end return true end #-------------------------------------------------------------------------- # * Draw Item # index : item number #-------------------------------------------------------------------------- def draw_item(index) rect = item_rect(index) self.contents.clear_rect(rect) item = @data[index] if item != nil number = $game_party.item_number(item) enabled = enable?(item) rect.width -= 4 draw_item_name(item, rect.x, rect.y, enabled) unless item.note.include?("*KEY") self.contents.draw_text(rect, sprintf(":%2d", number), 2) end end end end ##================================================= ============================= # ** Scene_Item #------------------------------------------------- ----------------------------- # Questa classe esegue il trattamento schermo elemento. #================================================= ============================= # Aliased Method(s) : start, terminate, update, return_scene # New Method(s) : update_input_filter, create_filter_window, # set_filter, update_help_window #------------------------------------------------------------------------------ class Scene_Item < Scene_Base #-------------------------------------------------------------------------- # * Include Puppeto::ItemEnhance moduli #-------------------------------------------------------------------------- include Puppeto::ItemEnhance #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias puppet_item_enhance_start start alias puppet_item_enhance_terminate terminate alias puppet_item_enhance_return_scene return_scene alias puppet_item_enhance_update update #-------------------------------------------------------------------------- # * Start processing #-------------------------------------------------------------------------- def start puppet_item_enhance_start create_filter_window @help_window.y = 56 @item_window.y = 112 @item_window.height = 304 end #-------------------------------------------------------------------------- # * Termination Processing #-------------------------------------------------------------------------- def terminate puppet_item_enhance_terminate @filter_window.dispose end #-------------------------------------------------------------------------- # * Return to Original Screen #-------------------------------------------------------------------------- def return_scene set_filter(0) puppet_item_enhance_return_scene end #-------------------------------------------------------------------------- # * Update Frame #-------------------------------------------------------------------------- def update puppet_item_enhance_update @filter_window.update update_input_filter update_help_window end #-------------------------------------------------------------------------- # * Update Input Filter #-------------------------------------------------------------------------- def update_input_filter if @item_window.active if Input.trigger?(Input::Y) Sound.play_decision @item_window.active = false @filter_window.active = true @item_window.index = 0 end elsif @filter_window.active if Input.trigger?(Input::B) Sound.play_cancel @filter_window.active = false @item_window.active = true elsif Input.trigger?(Input::C) case @filter_window.index when 0; set_filter(0) when 1; set_filter(1) when 2; set_filter(2) when 3; set_filter(3) when 4; set_filter(4) end end end end #-------------------------------------------------------------------------- # * Update Help Window #-------------------------------------------------------------------------- def update_help_window if @filter_window.active case @filter_window.index when 0; @help_window.set_text(All_Desc, 1) when 1; @help_window.set_text(Item_Desc, 1) when 2; @help_window.set_text(Weapon_Desc, 1) when 3; @help_window.set_text(Armor_Desc, 1) when 4; @help_window.set_text(Key_Desc, 1) end end end #-------------------------------------------------------------------------- # * Create Filter Window #-------------------------------------------------------------------------- def create_filter_window s1 = All_Text s2 = Item_Text s3 = Weapon_Text s4 = Armor_Text s5 = Key_Text @filter_window = Window_Command.new(544, [s1, s2, s3, s4, s5], 5) @filter_window.y = 0 @filter_window.viewport = @viewport @filter_window.active = false @filter_window.contents.font.size = 20 @filter_window.draw_item(0, true, 1) @filter_window.draw_item(1, true, 1) @filter_window.draw_item(2, true, 1) @filter_window.draw_item(3, true, 1) @filter_window.draw_item(4, true, 1) end #-------------------------------------------------------------------------- # * Set Filter Type # filter : type of item showed #-------------------------------------------------------------------------- def set_filter(filter = 0) Sound.play_decision @filter = filter if @filter == 1 $game_temp.show_items = true else $game_temp.show_items = false end if @filter == 2 $game_temp.show_weapons = true else $game_temp.show_weapons = false end if @filter == 3 $game_temp.show_armors = true else $game_temp.show_armors = false end if @filter == 4 $game_temp.show_keys = true else $game_temp.show_keys = false end @item_window.refresh end end #================================================= ============================= # ** Fine della classe Alias #------------------------------------------------- ----------------------------- # ** Classe di riscrittura #================================================= ============================= # ** Window_Command #------------------------------------------------- ----------------------------- # La presente finestra con le scelte di comando generale. #================================================= ============================= # * Rewrite Method (s): draw_item (Aggiunta la funzione di allineamento) #------------------------------------------------- ----------------------------- class Window_Command < Window_Selectable #------------------------------------------------- ------------------------- # * Draw Voce # Indice: numero di item # Abilitato: bandiera abilitato. Se false, disegnare semi-trasparente. # Align: flag di allineamento. #------------------------------------------------- ------------------------- def draw_item(index, enabled = true, align = 0) rect = item_rect(index) rect.x += 4 rect.width -= 8 @align = align self.contents.clear_rect(rect) self.contents.font.color = normal_color self.contents.font.color.alpha = enabled ? 255 : 128 self.contents.draw_text(rect, @commands[index], @align) end end #================================================= ============================= # ** Fine della classe di riscrittura #------------------------------------------------- ----------------------------- # ** End of SceneItemEnhanced: Script #================================================= ============================ per aggiungere un oggetto alla classe Key bisogna fare così: http://i84.servimg.com/u/f84/14/44/79/04/yyuyhf10.pngossia aggiungendo *KEY come nota Edited November 15, 2009 by Xemnas Cliccate sullo spoiler per vedere la mia firma...^_^: http://i84.servimg.com/u/f84/14/44/79/04/graffi11.gifVenite a trovarmi nel mio nuovo Sito:The Word of the New Game Ecco la Mia firma fatta da me!!!:http://img11.imageshack.us/img11/1676/firmaol.png Ecco il Banner del mio sito!http://searchfile.altervista.org/Immagini/Bannepng.png http://img692.imageshack.us/img692/1655/pywrightsyte.gifBasnners by Me^_^ Link to comment Share on other sites More sharing options...
giver Posted November 15, 2009 Share Posted November 15, 2009 Già postato e tradotto da Eikichi: Filtro Oggetti puppeto4 tradotto da Eikichi @ Rpg2S SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]http://www.rpg2s.net/forum/index.php/topic/21892-vintagevisualsrewrite-enhanced-revised-victory-screen-v-35-da-autori-vari-a-giver/ http://www.rpg2s.net/forum/index.php/topic/21868-eventing-utility-simple-last-battle-events-fix-v-30-by-giver/ http://www.rpg2s.net/forum/index.php/topic/21853-vintagerewrite-constance-menu-per-4-personaggi-da-team-constance-a-giver/ http://www.rpg2s.net/forum/index.php/topic/22126-vintagedoveroso-necroedit-dummy-title-22u-update-per-crearlo-ad-eventi-su-mappa-by-giver/ http://www.rpg2s.net/forum/index.php/topic/22127-vintagevisuals-tale-chapters-save-system-20-by-giver/ Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !! http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gifNon riesco a smettere di essere affascinato da immagini come questa . . .http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpgAlcuni wallpapers che faccio ruotare sul mio vecchio PC . . .http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpghttp://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpghttp://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpghttp://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . . BBCode TestingTypeface & Size Link to comment Share on other sites More sharing options...
Xemnas Posted November 15, 2009 Author Share Posted November 15, 2009 (edited) Già postato e tradotto da Eikichi: Filtro Oggetti puppeto4 tradotto da Eikichi @ Rpg2Sper quanto mi dispiaccia mandate questo topic in off topic Edited November 15, 2009 by Xemnas Cliccate sullo spoiler per vedere la mia firma...^_^: http://i84.servimg.com/u/f84/14/44/79/04/graffi11.gifVenite a trovarmi nel mio nuovo Sito:The Word of the New Game Ecco la Mia firma fatta da me!!!:http://img11.imageshack.us/img11/1676/firmaol.png Ecco il Banner del mio sito!http://searchfile.altervista.org/Immagini/Bannepng.png http://img692.imageshack.us/img692/1655/pywrightsyte.gifBasnners by Me^_^ Link to comment Share on other sites More sharing options...
Eikichi Posted November 15, 2009 Share Posted November 15, 2009 no perchè offtopic? :) può succedere di non accorgersi, alla fine ci sono parecchi script in questa sezione....ottimo lavoro comunque! Finrod, GDR PBF2PV e 1PAEquip: - faretra con 20 frecce- arco lungo- pugnale comune- Armatura di cuoio- Torcia- CappuccioMi sa che è ora di vincere qualche premio per rinnovare questa firma! :3Posizioni raggiunte nei contesthttp://rpg2s.net/gif/SCContest3Oct.gifhttp://www.rpg2s.net/awards/bestresourCSist3.jpghttp://www.rpg2s.net/awards/mosthelpful2.jpghttp://www.rpg2s.net/awards/mostpresent2.jpg Link to comment Share on other sites More sharing options...
Xemnas Posted November 20, 2009 Author Share Posted November 20, 2009 no perchè offtopic? :) può succedere di non accorgersi, alla fine ci sono parecchi script in questa sezione....ottimo lavoro comunque!lo sò però sarebbe inutile tenerne un 'altro aperto se esiste il tuo poi... fai come desideri :smile: :rovatfl: Xemnas :rovatfl: Cliccate sullo spoiler per vedere la mia firma...^_^: http://i84.servimg.com/u/f84/14/44/79/04/graffi11.gifVenite a trovarmi nel mio nuovo Sito:The Word of the New Game Ecco la Mia firma fatta da me!!!:http://img11.imageshack.us/img11/1676/firmaol.png Ecco il Banner del mio sito!http://searchfile.altervista.org/Immagini/Bannepng.png http://img692.imageshack.us/img692/1655/pywrightsyte.gifBasnners by Me^_^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now