Sora-Master Posted March 30, 2008 Share Posted March 30, 2008 serve per mettere dei trukki nel gioco ciau #============================================================================== # 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 衩l 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 Per attivarlo usare il chiama script:$scene = Scene_Cheats.newMettete l'icona nella cartella apposita:http://img315.imageshack.us/img315/4831/cheat5tl1ca.pngMetti l'immaggine in ICONE e chiamala 'cheat'.. http://dragcave.net/image/VqHI.gifhttp://dragcave.net/image/5thF.gifhttp://dragcave.net/image/7cb8.gifhttp://dragcave.net/image/WPrD.gifhttp://dragcave.net/image/DxRI.gifhttp://dragcave.net/image/JAV2.gifhttp://dragcave.net/image/aiDE.gifclicca sull'uovoFrom Wikipidia:Makeritus vulgaris(Makeritus Enpatologium Catostum) Malattia che si sviluppa nel mekeratore.si manifesta con status alterati di noia e svogliatezza.Malattia grave poiche puo guarire solo con il tempo e impedisce il Maker al soggetto che ne è infetto.Attualmente gli scenziati della Ryu-soft stanno cercando rimedio a questa malattia Ryu-Soft VISITA LA MIA BOTTEGA http://r5.fodey.com/19cf30d77a0fd435cb06407ab7023508e.1.gif ouyang_keba@hotmail.it ha inviato 15/03/2009 15.24:yaDiosba S.O.J. 4ever!!!!! scrive:who's fat??ouyang_keba@hotmail.it ha inviato 15/03/2009 15.25:eccomi mi sono appena connessoouyang_keba@hotmail.it ha inviato 15/03/2009 15.26:wath?Diosba S.O.J. 4ever!!!!! scrive:O.ODiosba S.O.J. 4ever!!!!! scrive:si scrive whatouyang_keba@hotmail.it ha inviato 15/03/2009 15.26:mi sono connesso clandestinamente xD me manca un es di italiano e poi ho finito i compitiouyang_keba@hotmail.it ha inviato 15/03/2009 15.27:seDiosba S.O.J. 4ever!!!!! scrive:O.ODiosba S.O.J. 4ever!!!!! scrive:addiritturingouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:e giaouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:che me raccontiDiosba S.O.J. 4ever!!!!! scrive:mmmmhDiosba S.O.J. 4ever!!!!! scrive:qlcsa che ti farà feliceDiosba S.O.J. 4ever!!!!! scrive:indovining...Diosba S.O.J. 4ever!!!!! scrive:http://www.youtube.com/watch?v=p9Zt8mn14hY...feature=relatedouyang_keba@hotmail.it ha inviato 15/03/2009 15.28:mmmmmmmmmmmmmmmouyang_keba@hotmail.it ha inviato 15/03/2009 15.29:caghi a spruzzo xEDiosba S.O.J. 4ever!!!!! scrive:O.O ri iniziamo a giocare a D&D Diosba S.O.J. 4ever!!!!! scrive::xouyang_keba@hotmail.it ha inviato 15/03/2009 15.30:yeees!!Diosba S.O.J. 4ever!!!!! scrive: Link to comment Share on other sites More sharing options...
Timisci Posted March 30, 2008 Share Posted March 30, 2008 Script già postato (poco più sotto).Chiudo. Progetto in corso: "Hero Walking: Toward Another Life" Video Old Intro su Youtube Visite: 11.896! http://img212.imageshack.us/img212/1060/logheryb0.jpg *Posizioni raggiunte nei contest* http://www.rpg2s.net/awards/bestuser1.jpghttp://www.rpg2s.net/awards/beststaff1.jpg http://www.rpg2s.net/awards/bestmaker3.jpghttp://www.rpg2s.net/awards/bestcritical1.jpghttp://www.rpg2s.net/awards/mostcharismatic2.jpg http://www.rpg2s.net/awards/mosthelpful1.jpghttp://www.rpg2s.net/awards/mostpolite1.jpghttp://www.rpg2s.net/awards/mostpresent1.jpg http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif http://img230.imageshack.us/img230/1273/sccontest1batio5.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img103.imageshack.us/img103/1496/sccontest2octou1.gif http://img143.imageshack.us/img143/3755/destroyae4.png http://img141.imageshack.us/img141/3081/comics3od3.gif http://img118.imageshack.us/img118/181/sccontest1octdt9.gif SE VUOI AVERE RENS PER RISORSE, TUTORIAL, DEMO, ECC... LEGGI QUI Link to comment Share on other sites More sharing options...
Recommended Posts