friday666 Posted March 29, 2008 Share Posted March 29, 2008 (edited) DescrizioneInserire i cheats nel gameAutoreby BudsieBuds Modificato da Alex'94 & mew2Istruzioni per l'usoCreare una classe sopra main e inserire: #============================================================================== # Cheats Input Script - v1.05 - by BudsieBuds Modificato da Alex'94 & mew2 #============================================================================== #============================================================================== # Scene_Cheats #------------------------------------------------------------------------------ # by BudsieBuds #============================================================================== class Scene_Cheats #-------------------------------------------------------------------------- # def main #-------------------------------------------------------------------------- def main @edit_window = Window_CheatsEdit.new @input_window = Window_CheatsInput.new Graphics.transition loop do Graphics.update Input.update update if $scene != self break end end Graphics.freeze @edit_window.dispose @input_window.dispose end #-------------------------------------------------------------------------- # def update #-------------------------------------------------------------------------- def update @edit_window.update @input_window.update if Input.repeat?(Input::B) if @edit_window.index == 0 return end $game_system.se_play($data_system.cancel_se) @edit_window.back return end if Input.trigger?(Input::C) if @input_window.character == nil @cheat_word = @edit_window.cheat.downcase # START EDITING // #=============================================================================== #=========================== # # elsif @cheat_word == "Per iniziare a mettere nuovi trucchi nel gioco." #Queste sono le combinazioni # $game_party.gain_item(Item ID, How many) #per inserire altri oggetti # $game_party.gain_gold(How many) # Per inserire altro oro # $game_party.gain_weapon(Weapon ID, How many) #Per inserire nuove armi # $game_party.gain_armor(Armor ID, How many) # Per inserire nuove armature # $game_party.actors[Actor ID].learn_skill(Skill ID) # Per inserire nuove magie # $game_system.se_play($data_system.decision_se) # Questo è il suono di verifica # # Il primo codice deve iniziare con 'if' invece che con 'elsif'! # #=============================================================================== #=========================== if @cheat_word == "everythingismine" $game_party.gain_gold(20) # 20 Gold $game_party.gain_item(17, 3) # 3x Seed of Life $game_system.se_play($data_system.decision_se) elsif @cheat_word == "iamarealfighter" $game_party.gain_weapon(1, 2) # 2x Bronze Sword $game_party.gain_armor(21, 1) # 1x Cotton Robe $game_system.se_play($data_system.decision_se) # STOP EDITING \ else $game_system.se_play($data_system.buzzer_se) end $scene = Scene_Map.new return end if @input_window.character == "" $game_system.se_play($data_system.buzzer_se) return end $game_system.se_play($data_system.decision_se) @edit_window.add(@input_window.character) return end end end #============================================================================== # Window_Base #------------------------------------------------------------------------------ # by BudsieBuds Modificato da Alex'94 & mew2 #============================================================================== class Window_Base < Window def draw_icon_graphic(icon, x, y) bitmap = RPG::Cache.icon(icon) cw = bitmap.width ch = bitmap.height src_rect = Rect.new(0, 0, cw, ch) self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect) end end #============================================================================== # Window_CheatsEdit #------------------------------------------------------------------------------ # by BudsieBuds Modificato da Alex'94 & mew2 #============================================================================== class Window_CheatsEdit < Window_Base #-------------------------------------------------------------------------- # def ?! #-------------------------------------------------------------------------- attr_reader :cheat attr_reader :index #-------------------------------------------------------------------------- # def initialize #-------------------------------------------------------------------------- def initialize super(0, 0, 640, 128) self.contents = Bitmap.new(width - 32, height - 32) $fontsize == nil ? self.contents.font.size = $defualtfontsize : self.contents.font.size = $fontsize $fontface == nil ? self.contents.font.name = $defualtfonttype : self.contents.font.name = $fontface @max_char = 17 @index = 0 @cheat = "" refresh update_cursor_rect end #-------------------------------------------------------------------------- # def add(character) #-------------------------------------------------------------------------- def add(character) if @index < @max_char and character != "" @cheat += character @index += 1 refresh update_cursor_rect end end #-------------------------------------------------------------------------- # def back #-------------------------------------------------------------------------- def back if @index > 0 name_array = @cheat.split(//) @cheat = "" for i in 0...name_array.size-1 @cheat += name_array[i] end @index -= 1 refresh update_cursor_rect end end #-------------------------------------------------------------------------- # def refresh #-------------------------------------------------------------------------- def refresh self.contents.clear name_array = @cheat.split(//) for i in 0...@max_char c = name_array[i] if c == nil c = "_" end x = (i + 1) * 32 self.contents.draw_text(x, 32, 28, 32, c, 1) end draw_icon_graphic("cheat", 16, 60) end #-------------------------------------------------------------------------- # def update_cursor_rect #-------------------------------------------------------------------------- def update_cursor_rect x = (@index + 1) * 32 self.cursor_rect.set(x, 32, 28, 32) end #-------------------------------------------------------------------------- # def update #-------------------------------------------------------------------------- def update super update_cursor_rect end end #============================================================================== # Window_CheatsInput #------------------------------------------------------------------------------ # by BudsieBuds Modificato da Alex'94 & mew2 #============================================================================== class Window_CheatsInput < Window_Base CHARACTER_TABLE = [ "A","B","C","D","E", "F","G","H","I","J", "K","L","M","N","O", "P","Q","R","S","T", "U","V","W","X","Y", "Z"," "," "," "," ", "+","-","*","/","!", "1","2","3","4","5", "" ,"" ,"" ,"" ,"" , "a","b","c","d","e", "f","g","h","i","j", "k","l","m","n","o", "p","q","r","s","t", "u","v","w","x","y", "z"," "," "," "," ", "#","$","%","&","@", "6","7","8","9","0", "" ,"" ,"" ,"" ,"" , ] #-------------------------------------------------------------------------- # def initialize #-------------------------------------------------------------------------- def initialize super(0, 128, 640, 352) self.contents = Bitmap.new(width - 32, height - 32) $fontsize == nil ? self.contents.font.size = $defualtfontsize : self.contents.font.size = $fontsize $fontface == nil ? self.contents.font.name = $defualtfonttype : self.contents.font.name = $fontface @index = 0 refresh update_cursor_rect end #-------------------------------------------------------------------------- # def character #-------------------------------------------------------------------------- def character return CHARACTER_TABLE[@index] end #-------------------------------------------------------------------------- # def refresh #-------------------------------------------------------------------------- def refresh self.contents.clear for i in 0...90 x = 140 + i / 5 / 9 * 180 + i % 5 * 32 y = i / 5 % 9 * 32 self.contents.draw_text(x, y, 32, 32, CHARACTER_TABLE[i], 1) end self.contents.draw_text(428, 9 * 32, 48, 32, "OK", 1) end #-------------------------------------------------------------------------- # def update_cursor_rect #-------------------------------------------------------------------------- def update_cursor_rect if @index >= 90 self.cursor_rect.set(428, 9 * 32, 48, 32) else x = 140 + @index / 5 / 9 * 180 + @index % 5 * 32 y = @index / 5 % 9 * 32 self.cursor_rect.set(x, y, 32, 32) end end #-------------------------------------------------------------------------- # def update #-------------------------------------------------------------------------- def update super if @index >= 90 if Input.trigger?(Input::DOWN) $game_system.se_play($data_system.cursor_se) @index -= 90 end if Input.repeat?(Input::UP) $game_system.se_play($data_system.cursor_se) @index -= 90 - 40 end else if Input.repeat?(Input::RIGHT) if Input.trigger?(Input::RIGHT) or @index / 45 < 3 or @index % 5 < 4 $game_system.se_play($data_system.cursor_se) if @index % 5 < 4 @index += 1 else @index += 45 - 4 end if @index >= 90 @index -= 90 end end end if Input.repeat?(Input::LEFT) if Input.trigger?(Input::LEFT) or @index / 45 > 0 or @index % 5 > 0 $game_system.se_play($data_system.cursor_se) if @index % 5 > 0 @index -= 1 else @index -= 45 - 4 end if @index < 0 @index += 90 end end end if Input.repeat?(Input::DOWN) $game_system.se_play($data_system.cursor_se) if @index % 45 < 40 @index += 5 else @index += 90 - 40 end end if Input.repeat?(Input::UP) if Input.trigger?(Input::UP) or @index % 45 >= 5 $game_system.se_play($data_system.cursor_se) if @index % 45 >= 5 @index -= 5 else @index += 90 end end end if Input.repeat?(Input::L) or Input.repeat?(Input::R) $game_system.se_play($data_system.cursor_se) if @index < 45 @index += 45 else @index -= 45 end end end update_cursor_rect end end Par attivare usate il comando "Chiama script" $scene = Scene_Cheats.new Mettete questa icona nella cartella apposita e chiamatela "cheats"http://img315.imageshack.us/img315/4831/cheat5tl1ca.pngRicordatevi che da dentro lo script si possono modificare i codici! ;) Edited August 12, 2013 by Flame (\__/)(='.'=)(")_(")Questo è Bunny. Ho deciso di aiutarlo nella sua missione di conquista del mondo.Compagni di Bunny unitevi a me! http://img170.imageshack.us/img170/1858/pizzelartzzennm9.pngI chara da me postati: CLICCA QUI! PER XP - CLICCA QUI! PER XP(2) - CLICCA QUI! PER VX - CLICCA QUI! PER 2K/2K3!I tileset da me postati:CLICCA QUI! PER XPI Personaggi Completi da me postati: CLICCA QUI! PER XP I Face da me postati: CLICCA QUI! PER XPI Battlers da me postati: CLICCA QUI! PER XP!Le Windowskin da me postate: CLICCA QUI! PER XP!Risorse sonore da me postate: CLICCA QUI! PER SCARICARLE!Guida al Ruby: CLICCA QUI! PER SCARICARLA!Vi prego di inserirmi nei crediti...Grazie! Link to comment Share on other sites More sharing options...
pennaverde Posted April 27, 2009 Share Posted April 27, 2009 mi dice errore riga 133 :( Link to comment Share on other sites More sharing options...
giver Posted April 28, 2009 Share Posted April 28, 2009 (edited) mi dice errore riga 133 :(Prova con questa versione corretta . . . #==============================================================================# Cheats Input Script - v1.05 - by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================??#==============================================================================# Scene_Cheats#------------------------------------------------------------------------------# by BudsieBuds#==============================================================================?class Scene_Cheats#--------------------------------------------------------------------------# def main#--------------------------------------------------------------------------def main@edit_window = Window_CheatsEdit.new@input_window = Window_CheatsInput.newGraphics.transitionloop doGraphics.updateInput.updateupdateif $scene != selfbreakendendGraphics.freeze@edit_window.dispose@input_window.disposeend#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def update@edit_window.update@input_window.updateif Input.repeat?(Input::B)if @edit_window.index == 0returnend$game_system.se_play($data_system.cancel_se)@edit_window.backreturnendif Input.trigger?(Input::C)if @input_window.character == nil@cheat_word = @edit_window.cheat.downcase?# START EDITING //?#===============================================================================#===========================## elsif @cheat_word == "Per iniziare a mettere nuovi trucchi nel gioco." #Queste sono le combinazioni# $game_party.gain_item(Item ID, How many) #per inserire altri oggetti# $game_party.gain_gold(How many) # Per inserire altro oro# $game_party.gain_weapon(Weapon ID, How many) #Per inserire nuove armi# $game_party.gain_armor(Armor ID, How many) # Per inserire nuove armature# $game_party.actors[Actor ID].learn_skill(Skill ID) # Per inserire nuove magie# $game_system.se_play($data_system.decision_se) # Questo ? il suono di verifica## Il primo codice deve iniziare con 'if' invece che con 'elsif'!##===============================================================================#===========================??if @cheat_word == "everythingismine"$game_party.gain_gold(20) # 20 Gold$game_party.gain_item(17, 3) # 3x Seed of Life$game_system.se_play($data_system.decision_se)?elsif @cheat_word == "iamarealfighter"$game_party.gain_weapon(1, 2) # 2x Bronze Sword$game_party.gain_armor(21, 1) # 1x Cotton Robe$game_system.se_play($data_system.decision_se)??# STOP EDITING?else$game_system.se_play($data_system.buzzer_se)end$scene = Scene_Map.newreturnendif @input_window.character == ""$game_system.se_play($data_system.buzzer_se)returnend$game_system.se_play($data_system.decision_se)@edit_window.add(@input_window.character)returnendendend?#==============================================================================# Window_Base#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_Base < Windowdef draw_icon_graphic(icon, x, y)bitmap = RPG::Cache.icon(icon)cw = bitmap.widthch = bitmap.heightsrc_rect = Rect.new(0, 0, cw, ch)self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)endend?#==============================================================================# Window_CheatsEdit#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_CheatsEdit < Window_Base#--------------------------------------------------------------------------# def ?!#--------------------------------------------------------------------------attr_reader :cheatattr_reader :index#--------------------------------------------------------------------------# def initialize#--------------------------------------------------------------------------def initializesuper(0, 0, 640, 128)self.contents = Bitmap.new(width - 32, height - 32)self.contents.font.size = 22self.contents.font.name = "Arial"@max_char = 17@index = 0@cheat = ""refreshupdate_cursor_rectend#--------------------------------------------------------------------------# def add(character)#--------------------------------------------------------------------------def add(character)if @index < @max_char and character != ""@cheat += character@index += 1refreshupdate_cursor_rectendend#--------------------------------------------------------------------------# def back#--------------------------------------------------------------------------def backif @index > 0name_array = @cheat.split(//)@cheat = ""for i in 0...name_array.size-1@cheat += name_arrayend@index -= 1refreshupdate_cursor_rectendend#--------------------------------------------------------------------------# def refresh#--------------------------------------------------------------------------def refreshself.contents.clearname_array = @cheat.split(//)for i in 0...@max_charc = name_arrayif c == nilc = "?"endx = (i + 1) * 32self.contents.draw_text(x, 32, 28, 32, c, 1)enddraw_icon_graphic("cheat", 16, 60)end#--------------------------------------------------------------------------# def update_cursor_rect#--------------------------------------------------------------------------def update_cursor_rectx = (@index + 1) * 32self.cursor_rect.set(x, 32, 28, 32)end#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def updatesuperupdate_cursor_rectendend??#==============================================================================# Window_CheatsInput#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_CheatsInput < Window_BaseCHARACTER_TABLE =["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "," "," "," ","+","-","*","/","!","1","2","3","4","5","" ,"" ,"" ,"" ,"" ,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "," "," "," ","#","$","%","&","@","6","7","8","9","0","" ,"" ,"" ,"" ,"" ,]#--------------------------------------------------------------------------# def initialize#--------------------------------------------------------------------------def initializesuper(0, 128, 640, 352)self.contents = Bitmap.new(width - 32, height - 32)self.contents.font.size = 22self.contents.font.name = "Arial"@index = 0refreshupdate_cursor_rectend#--------------------------------------------------------------------------# def character#--------------------------------------------------------------------------def characterreturn CHARACTER_TABLE[@index]end#--------------------------------------------------------------------------# def refresh#--------------------------------------------------------------------------def refreshself.contents.clearfor i in 0...90x = 140 + i / 5 / 9 * 180 + i % 5 * 32y = i / 5 % 9 * 32self.contents.draw_text(x, y, 32, 32, CHARACTER_TABLE, 1)endself.contents.draw_text(428, 9 * 32, 48, 32, "OK", 1)end#--------------------------------------------------------------------------# def update_cursor_rect#--------------------------------------------------------------------------def update_cursor_rectif @index >= 90self.cursor_rect.set(428, 9 * 32, 48, 32)elsex = 140 + @index / 5 / 9 * 180 + @index % 5 * 32y = @index / 5 % 9 * 32self.cursor_rect.set(x, y, 32, 32)endend#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def updatesuperif @index >= 90if Input.trigger?(Input::DOWN)$game_system.se_play($data_system.cursor_se)@index -= 90endif Input.repeat?(Input::UP)$game_system.se_play($data_system.cursor_se)@index -= 90 - 40endelseif Input.repeat?(Input::RIGHT)if Input.trigger?(Input::RIGHT) or@index / 45 < 3 or @index % 5 < 4$game_system.se_play($data_system.cursor_se)if @index % 5 < 4@index += 1else@index += 45 - 4endif @index >= 90@index -= 90endendendif Input.repeat?(Input::LEFT)if Input.trigger?(Input::LEFT) or@index / 45 > 0 or @index % 5 > 0$game_system.se_play($data_system.cursor_se)if @index % 5 > 0@index -= 1else@index -= 45 - 4endif @index < 0@index += 90endendendif Input.repeat?(Input::DOWN)$game_system.se_play($data_system.cursor_se)if @index % 45 < 40@index += 5else@index += 90 - 40endendif Input.repeat?(Input::UP)if Input.trigger?(Input::UP) or @index % 45 >= 5$game_system.se_play($data_system.cursor_se)if @index % 45 >= 5@index -= 5else@index += 90endendendif Input.repeat?(Input::L) or Input.repeat?(Input::R)$game_system.se_play($data_system.cursor_se)if @index < 45@index += 45else@index -= 45endendendupdate_cursor_rectendend Edited August 12, 2013 by Flame 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...
FenriX` Posted April 29, 2009 Share Posted April 29, 2009 maaa... una spiegazione dello script? cioè, a cosa serve in definitiva? puoi inserire dei codici segreti per sbloccare roba? (come nei CW-Cheats per PSP, o come il GameShark per PSX... oppure cos'altro? detto così non hai spiegato niente o_o http://img48.imageshack.us/img48/7195/65408586.png«NEWS!!» http://img123.imageshack.us/img123/24/89057157.pnghttp://img115.imageshack.us/img115/5350/19481487.pnghttp://img407.imageshack.us/img407/2696/45573607.pnghttp://img185.imageshack.us/img185/373/70775921.png Membro # 8-8-8 [Hachi] della:http://img3.imageshack.us/img3/9636/bannergm.png Link to comment Share on other sites More sharing options...
giver Posted April 29, 2009 Share Posted April 29, 2009 (edited) Io lo script mi sono limitato a correggerlo. Lo ha postato Friday666, se stavi "parlando" con me . . .Comunque, le cheat, s?, attivano dei benefici tipo il "god mode" in certi FPS o possono sbloccare delle features, come l'accesso ad una scene particolare, comandi nel men?, attivare uno switch legato a delle quest segrete (o la aggiunge direttamente in un eventuale quest log), ecc.Nello script ci sono indicazioni di alcuni dei benefici che possono essere associati ad una cheat e due esempi di cheat (a partire dalla riga 69 della versione che ho corretto io). Riposto la parte personalizzabile. # START EDITING //?#===============================================================================#===========================## elsif @cheat_word == "Per iniziare a mettere nuovi trucchi nel gioco." #Queste sono le combinazioni# $game_party.gain_item(Item ID, How many) #per inserire altri oggetti# $game_party.gain_gold(How many) # Per inserire altro oro# $game_party.gain_weapon(Weapon ID, How many) #Per inserire nuove armi# $game_party.gain_armor(Armor ID, How many) # Per inserire nuove armature# $game_party.actors[Actor ID].learn_skill(Skill ID) # Per inserire nuove magie# $game_system.se_play($data_system.decision_se) # Questo ? il suono di verifica## Il primo codice deve iniziare con 'if' invece che con 'elsif'!##===============================================================================#===========================??if @cheat_word == "everythingismine"$game_party.gain_gold(20) # 20 Gold$game_party.gain_item(17, 3) # 3x Seed of Life$game_system.se_play($data_system.decision_se)?elsif @cheat_word == "iamarealfighter"$game_party.gain_weapon(1, 2) # 2x Bronze Sword$game_party.gain_armor(21, 1) # 1x Cotton Robe$game_system.se_play($data_system.decision_se)??# STOP EDITING \?else$game_system.se_play($data_system.buzzer_se)end$scene = Scene_Map.newLo script usa una serie di if/elsif (ma poteva usare anche un case/when) per valutare il contenuto di @cheat_word, ed in caso corrisponda ad una delle cheat programmate ne attiva i benefici. Ogni volta che il giocatore prova ad inserire una cheat, il gioco torna alla mappa eseguendo un suono differente a seconda che la cheat sia presente o meno quando il giocatore d? l'OK a ci? che ha inserito . . .Per aggiungere una cheat basta inserire un blocco di codice tra le cheat gi? esistenti e "# STOP EDITING \", del tipo elsif @cheat_word == "codicedellacheat_max17caratteri"# benefici ottenuti attivando la cheat, in qualunque quantit? e# di qualunque natura, non solo quelli indicati dall'autore dello scriptPer cancellare un carattere indesiderato mentre si cerca di attivare una cheat bisogna premere ESC, e si ritorna al gioco solo dando l'OK al codice inserito, anche se non si ? inserito nulla . . .Spero che questo chiarisca un po' le cose . . . Edited August 12, 2013 by Flame 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...
pennaverde Posted May 2, 2009 Share Posted May 2, 2009 grazie 1000 giver, mi funziona tutto ...solo non ho capito ancora una cosa, a riguardo del suono se il cheat è stato attivato...non capisco cosa bisogna scrivere per scegliere il suono :rolleyes: Link to comment Share on other sites More sharing options...
giver Posted May 2, 2009 Share Posted May 2, 2009 grazie 1000 giver, mi funziona tutto :Ok: ...solo non ho capito ancora una cosa, a riguardo del suono se il cheat ? stato attivato...non capisco cosa bisogna scrivere per scegliere il suono Non so se ci sei arrivato da solo, ma ? semplicemente l'ultima istruzione di ciascuna cheat, dopo i benefici che ne derivano, ossia questa: $game_system.se_play($data_system.decision_se) 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...
pennaverde Posted May 3, 2009 Share Posted May 3, 2009 Non so se ci sei arrivato da solo, ma ? semplicemente l'ultima istruzione di ciascuna cheat, dopo i benefici che ne derivano, ossia questa: $game_system.se_play($data_system.decision_se)si, fin qua c'ero arrivato anch'io...solo non ho capito cosa devo scrivere e cosa devo sostituire in questa istruzione, visto che ho gi? provato e mi da errore per ogni cosa... Link to comment Share on other sites More sharing options...
giver Posted May 3, 2009 Share Posted May 3, 2009 si, fin qua c'ero arrivato anch'io...solo non ho capito cosa devo scrivere e cosa devo sostituire in questa istruzione, visto che ho già provato e mi da errore per ogni cosa...Non devi modificare nulla di quella istruzione: è già a posto così. Non dovrebbe essere quella che ti dà errore . . . Magari posta il codice che hai messo nella parte da personalizzare . . . 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...
pennaverde Posted May 3, 2009 Share Posted May 3, 2009 Non devi modificare nulla di quella istruzione: è già a posto così. Non dovrebbe essere quella che ti dà errore . . . Magari posta il codice che hai messo nella parte da personalizzare . . . e come faccio allora per cambiare suono quando viene attivata la cheat?questo non avevo capito Link to comment Share on other sites More sharing options...
giver Posted May 3, 2009 Share Posted May 3, 2009 (edited) e come faccio allora per cambiare suono quando viene attivata la cheat?questo non avevo capito Scusa, ho capito male cosa volevi.Basta sostituire quella istruzione con un'altra che includa il nome del file del suono tra virgolette, che deve far parte della cartella SE del tuo gioco.Es. Vuoi usare un suono che tra gli SE disponibili si chiama CheatOK, dovresti scrivere Audio.se_play("Audio/SE/CheatOK")EDIT - Mi sono accorto di aver chiamato la sottocartella nell'istruzione ME invece di SE, e l'ho corretta . . . Edited August 12, 2013 by Flame 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...
pennaverde Posted May 4, 2009 Share Posted May 4, 2009 ok ho capito, grazie mille giver!!!! :D Link to comment Share on other sites More sharing options...
Andre4e Posted September 3, 2009 Share Posted September 3, 2009 Molto utile!In un gioco ci vogliono sempre dei cheats http://files.nireblog.com/blogs4/narutozorro9kolas/files/firma-naruto-y-yondaime.gif Link to comment Share on other sites More sharing options...
Johnny 97 Posted October 21, 2009 Share Posted October 21, 2009 Prova con questa versione corretta . . . #==============================================================================# Cheats Input Script - v1.05 - by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================??#==============================================================================# Scene_Cheats#------------------------------------------------------------------------------# by BudsieBuds#==============================================================================?class Scene_Cheats#--------------------------------------------------------------------------# def main#--------------------------------------------------------------------------def main@edit_window = Window_CheatsEdit.new@input_window = Window_CheatsInput.newGraphics.transitionloop doGraphics.updateInput.updateupdateif $scene != selfbreakendendGraphics.freeze@edit_window.dispose@input_window.disposeend#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def update@edit_window.update@input_window.updateif Input.repeat?(Input::B)if @edit_window.index == 0returnend$game_system.se_play($data_system.cancel_se)@edit_window.backreturnendif Input.trigger?(Input::C)if @input_window.character == nil@cheat_word = @edit_window.cheat.downcase?# START EDITING //?#===============================================================================#===========================## elsif @cheat_word == "Per iniziare a mettere nuovi trucchi nel gioco." #Queste sono le combinazioni# $game_party.gain_item(Item ID, How many) #per inserire altri oggetti# $game_party.gain_gold(How many) # Per inserire altro oro# $game_party.gain_weapon(Weapon ID, How many) #Per inserire nuove armi# $game_party.gain_armor(Armor ID, How many) # Per inserire nuove armature# $game_party.actors[Actor ID].learn_skill(Skill ID) # Per inserire nuove magie# $game_system.se_play($data_system.decision_se) # Questo ? il suono di verifica## Il primo codice deve iniziare con 'if' invece che con 'elsif'!##===============================================================================#===========================??if @cheat_word == "everythingismine"$game_party.gain_gold(20) # 20 Gold$game_party.gain_item(17, 3) # 3x Seed of Life$game_system.se_play($data_system.decision_se)?elsif @cheat_word == "iamarealfighter"$game_party.gain_weapon(1, 2) # 2x Bronze Sword$game_party.gain_armor(21, 1) # 1x Cotton Robe$game_system.se_play($data_system.decision_se)??# STOP EDITING \?else$game_system.se_play($data_system.buzzer_se)end$scene = Scene_Map.newreturnendif @input_window.character == ""$game_system.se_play($data_system.buzzer_se)returnend$game_system.se_play($data_system.decision_se)@edit_window.add(@input_window.character)returnendendend?#==============================================================================# Window_Base#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_Base < Windowdef draw_icon_graphic(icon, x, y)bitmap = RPG::Cache.icon(icon)cw = bitmap.widthch = bitmap.heightsrc_rect = Rect.new(0, 0, cw, ch)self.contents.blt(x - cw / 2, y - ch, bitmap, src_rect)endend?#==============================================================================# Window_CheatsEdit#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_CheatsEdit < Window_Base#--------------------------------------------------------------------------# def ?!#--------------------------------------------------------------------------attr_reader :cheatattr_reader :index#--------------------------------------------------------------------------# def initialize#--------------------------------------------------------------------------def initializesuper(0, 0, 640, 128)self.contents = Bitmap.new(width - 32, height - 32)self.contents.font.size = $fontsize == nil ? Font.default_size : $fontsizeself.contents.font.name = $fontface == nil ? Font.default_name : $fontface@max_char = 17@index = 0@cheat = ""refreshupdate_cursor_rectend#--------------------------------------------------------------------------# def add(character)#--------------------------------------------------------------------------def add(character)if @index < @max_char and character != ""@cheat += character@index += 1refreshupdate_cursor_rectendend#--------------------------------------------------------------------------# def back#--------------------------------------------------------------------------def backif @index > 0name_array = @cheat.split(//)@cheat = ""for i in 0...name_array.size-1@cheat += name_array[i]end@index -= 1refreshupdate_cursor_rectendend#--------------------------------------------------------------------------# def refresh#--------------------------------------------------------------------------def refreshself.contents.clearname_array = @cheat.split(//)for i in 0...@max_charc = name_array[i]if c == nilc = "?"endx = (i + 1) * 32self.contents.draw_text(x, 32, 28, 32, c, 1)enddraw_icon_graphic("cheat", 16, 60)end#--------------------------------------------------------------------------# def update_cursor_rect#--------------------------------------------------------------------------def update_cursor_rectx = (@index + 1) * 32self.cursor_rect.set(x, 32, 28, 32)end#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def updatesuperupdate_cursor_rectendend??#==============================================================================# Window_CheatsInput#------------------------------------------------------------------------------# by BudsieBuds Modificato da Alex'94 & mew2#==============================================================================?class Window_CheatsInput < Window_BaseCHARACTER_TABLE =["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," "," "," "," ","+","-","*","/","!","1","2","3","4","5","" ,"" ,"" ,"" ,"" ,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "," "," "," ","#","$","%","&","@","6","7","8","9","0","" ,"" ,"" ,"" ,"" ,]#--------------------------------------------------------------------------# def initialize#--------------------------------------------------------------------------def initializesuper(0, 128, 640, 352)self.contents = Bitmap.new(width - 32, height - 32)self.contents.font.size = $fontsize == nil ? Font.default_size : $fontsizeself.contents.font.name = $fontface == nil ? Font.default_name : $fontface@index = 0refreshupdate_cursor_rectend#--------------------------------------------------------------------------# def character#--------------------------------------------------------------------------def characterreturn CHARACTER_TABLE[@index]end#--------------------------------------------------------------------------# def refresh#--------------------------------------------------------------------------def refreshself.contents.clearfor i in 0...90x = 140 + i / 5 / 9 * 180 + i % 5 * 32y = i / 5 % 9 * 32self.contents.draw_text(x, y, 32, 32, CHARACTER_TABLE[i], 1)endself.contents.draw_text(428, 9 * 32, 48, 32, "OK", 1)end#--------------------------------------------------------------------------# def update_cursor_rect#--------------------------------------------------------------------------def update_cursor_rectif @index >= 90self.cursor_rect.set(428, 9 * 32, 48, 32)elsex = 140 + @index / 5 / 9 * 180 + @index % 5 * 32y = @index / 5 % 9 * 32self.cursor_rect.set(x, y, 32, 32)endend#--------------------------------------------------------------------------# def update#--------------------------------------------------------------------------def updatesuperif @index >= 90if Input.trigger?(Input::DOWN)$game_system.se_play($data_system.cursor_se)@index -= 90endif Input.repeat?(Input::UP)$game_system.se_play($data_system.cursor_se)@index -= 90 - 40endelseif Input.repeat?(Input::RIGHT)if Input.trigger?(Input::RIGHT) or@index / 45 < 3 or @index % 5 < 4$game_system.se_play($data_system.cursor_se)if @index % 5 < 4@index += 1else@index += 45 - 4endif @index >= 90@index -= 90endendendif Input.repeat?(Input::LEFT)if Input.trigger?(Input::LEFT) or@index / 45 > 0 or @index % 5 > 0$game_system.se_play($data_system.cursor_se)if @index % 5 > 0@index -= 1else@index -= 45 - 4endif @index < 0@index += 90endendendif Input.repeat?(Input::DOWN)$game_system.se_play($data_system.cursor_se)if @index % 45 < 40@index += 5else@index += 90 - 40endendif Input.repeat?(Input::UP)if Input.trigger?(Input::UP) or @index % 45 >= 5$game_system.se_play($data_system.cursor_se)if @index % 45 >= 5@index -= 5else@index += 90endendendif Input.repeat?(Input::L) or Input.repeat?(Input::R)$game_system.se_play($data_system.cursor_se)if @index < 45@index += 45else@index -= 45endendendupdate_cursor_rectendendCome prima cosa, mi copia tutto in una riga e seconda cosa mi d? errore...Essendo tutto in una riga (e penso sia qsta la causa dell'errore...) nn riesco a capire ci? ke ? sbagliato........ Link to comment Share on other sites More sharing options...
giver Posted October 21, 2009 Share Posted October 21, 2009 A me lo copia-incolla correttamente, sia nel notepad che nello script editor . . . Comunque, te l'ho uppato come file di testo su mediafire . . .http://www.mediafire.com/file/ulzlh0ddm35/...heats_fixed.txt 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...
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