Cerca nel Forum
Showing results for tags 'Debug In Battaglia'.
Trovato 1 risultato
-
Nome Script: Debug In Battaglia Versione: 1.00 Autore/i: kingartur2 Informazioni: Se si sta testando un nemico, a volte può risultare difficile perchè dovete fare varie prove, far evitare la sconfitta, e dovete far abbassare il livello del nemico per vedere la sua forza giusta... Questo Script è proprio un Maker Tool, e giustamente funziona solo se si è in Test Battaglia o Modalità Test. Potrete sottrarre o aggiungere Hp ed Mp ai nemici e agli eroi, e modificare le loro statistiche (Attacco, difesa....). Features: - Questo Script funziona solo in modalità Test Battaglia (che si avvia da Test Battaglia nella scheda Truppe/Gruppi Nemici del database) o in modalità Test, quella che si avvia da RPG Maker VX. - Ha la funzionalità di cambiare le Statistiche (Attacco, Difesa, Velocità ed Intelligenza) dei nemici e degli eroi. - Ha la funzionalità di sotrarre e far recuperare HP ed MP a Nemici ed Eroi. Screenshots: Non badate a quel mezzo viso al posto del nome, riguarda un altro script che poi posterò tradotto. Istruzioni: Creare una nuova voce sopra Main e sotto Materials ed inserire lo script. E' assolutamente sconsigliato modificare lo script, dato che non necessita di configurazioni Script: #=============================================================================== # Debug In Battaglia #=============================================================================== # Autore : kingartur2 # Versione : 1.00 #=============================================================================== # Istruzioni # Premere F7 in battaglia per aprire il menu. # Una volta terminato premere ESC per uscire #=============================================================================== class Scene_Battle alias fujdosikpla update def update if ($TEST or $BTEST) and (Input.trigger?(Input::F7)) create_debug_window end if ($TEST or $BTEST) and (@debug_window != nil) loop do update_debug_window if @debug_window.nil? break end end Input.update end fujdosikpla end def create_debug_window commands = ["Modifica Hp Eroi", "Modifica Hp Nemici", "Modifica Mp Eroi", "Modifica MP Nemici", "Cambia Stat Eroi", "Cambia Stat Nemici"] @debug_window = Window_Command.new(250, commands) @debug_window.active = true @debug_window.z = 9999 @debug_window.x = (Graphics.width / 2) - (@debug_window.width / 2) @debug_window.y = Graphics.height - (128 + @debug_window.height) commands_0 = [] for i in $game_party.members commands_0.push(i.name) end @d_actor_window = Window_Command.new(120, commands_0) @d_actor_window.z = 9999 @d_actor_window.x = (@debug_window.x + @debug_window.width) @d_actor_window.y = (@debug_window.y / 2) + (@d_actor_window.height / 2) @d_actor_window.visible = false @d_actor_window.active = false commands_1 = [] for i in $game_troop.members commands_1.push(i.name) end @d_enemy_window = Window_Command.new(120, commands_1) @d_enemy_window.z = 9999 @d_enemy_window.x = (@debug_window.x + @debug_window.width) @d_enemy_window.y = (@debug_window.y / 2) + (@d_enemy_window.height / 2) @d_enemy_window.visible = false @d_enemy_window.active = false @change_variable_window = Window_Base.new(0, 0, @debug_window.width, 64) @change_variable_window.x = @debug_window.x @change_variable_window.y = (@debug_window.y - @change_variable_window.height) @change_variable_window.z = 9999 @change_variable_window.visible = false commands_2 = ["Hp Max", "Mp Max", "Attacco", "Difesa", "Intelligenza", "Agilità"] stat_width = Graphics.width - (Graphics.width - @debug_window.<img src='http://rpgmkr.net/forum/public/style_emoticons/<#EMO_DIR#>/sourirex.gif' class='bbc_emoticon' alt='X)' /> @stat_window = Window_Command.new(stat_width, commands_2) @stat_window.active = true @stat_window.z = 9999 @stat_window.x = 0 @stat_window.y = @debug_window.y @stat_window.active = false @stat_window.visible = false @text_to_add = "" @variable_to_change = "" end def update_debug_window Graphics.update Input.update if @debug_window.active @debug_window.update if Input.trigger?(Input::C) case @debug_window.index when 0, 2, 4 @debug_window.active = false @d_actor_window.visible = true @d_actor_window.active = true when 1, 3, 5 @debug_window.active = false @d_enemy_window.visible = true @d_enemy_window.active = true end elsif Input.trigger?(Input:: @d_enemy_window.dispose @d_actor_window.dispose @change_variable_window.dispose @debug_window.dispose @debug_window = nil for i in $game_party.members if i.hp <= 0 i.add_state(1) end end for i in $game_troop.members if i.hp <= 0 i.add_state(1) i.perform_collapse end end end elsif @d_actor_window.active @d_actor_window.update if Input.trigger?(Input::C) if @debug_window.index == 0 @variable_to_change = "$game_party.members[#{@d_actor_window.index}].hp" @text_to_add = "Hp #{$game_party.members[@d_actor_window.index].name} :" @change_variable_window.visible = true @change_variable_window.active = true @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @d_actor_window.active = false elsif @debug_window.index == 2 @variable_to_change = "$game_party.members[#{@d_actor_window.index}].mp" @text_to_add = "Mp #{$game_party.members[@d_actor_window.index].name} :" @change_variable_window.visible = true @change_variable_window.active = true @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @d_actor_window.active = false elsif @debug_window.index == 4 @stat_window.visible = true @stat_window.active = true @d_actor_window.active = false end elsif Input.trigger?(Input:: @d_actor_window.active = false @d_actor_window.visible = false @debug_window.active = true end elsif @d_enemy_window.active @d_enemy_window.update if Input.trigger?(Input::C) if @debug_window.index == 1 @variable_to_change = "$game_troop.members[#{@d_enemy_window.index}].hp" @text_to_add = "Hp #{$game_troop.members[@d_enemy_window.index].name} :" @change_variable_window.visible = true @change_variable_window.active = true @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @d_enemy_window.active = false elsif @debug_window.index == 3 @variable_to_change = "$game_troop.members[#{@d_enemy_window.index}].mp" @text_to_add = "Mp #{$game_troop.members[@d_enemy_window.index].name} :" @change_variable_window.visible = true @change_variable_window.active = true @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @d_enemy_window.active = false elsif @debug_window.index == 5 @stat_window.visible = true @stat_window.active = true @d_enemy_window.active = false end elsif Input.trigger?(Input:: @d_enemy_window.active = false @d_enemy_window.visible = false @debug_window.active = true end elsif @variable_to_change != "" @change_variable_window.update if Input.repeat?(Input::LEFT) eval(@variable_to_change + " -= 1") @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @status_window.refresh elsif Input.repeat?(Input::RIGHT) eval(@variable_to_change + " += 1") @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @status_window.refresh elsif Input.repeat?(Input::UP) eval(@variable_to_change + " += 10") @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @status_window.refresh elsif Input.repeat?(Input::DOWN) eval(@variable_to_change + " -= 10") @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @status_window.refresh elsif Input.trigger?(Input:: or Input.trigger?(Input::C) @variable_to_change = "" @text_to_add = "" @change_variable_window.visible = false @change_variable_window.active = false if @stat_window.visible @stat_window.active = true elsif @d_actor_window.visible @d_actor_window.active = true elsif @d_enemy_window.visible @d_enemy_window.active = true end end elsif @stat_window.active @stat_window.update if Input.trigger?(Input::C) if @d_actor_window.visible asd = "$game_party.members[#{@d_actor_window.index}]" else asd = "$game_troop.members[#{@d_enemy_window.index}]" end case @stat_window.index when 0 @variable_to_change = asd + ".maxhp" @text_to_add = (eval((asd + ".name")) + " Hp Max :") when 1 @variable_to_change = asd + ".maxmp" @text_to_add = (eval((asd + ".name")) + " Mp Max :") when 2 @variable_to_change = asd + ".atk" @text_to_add = (eval((asd + ".name")) + " Attacco :") when 3 @variable_to_change = asd + ".def" @text_to_add = (eval((asd + ".name")) + " Difesa :") when 4 @variable_to_change = asd + ".spi" @text_to_add = (eval((asd + ".name")) + " Intelligenza :") when 5 @variable_to_change = asd + ".agi" @text_to_add = (eval((asd + ".name")) + " Agilità :") end @change_variable_window.visible = true @change_variable_window.active = true @change_variable_window.contents.clear @change_variable_window.contents.draw_text(0, 0, @debug_window.width - 32, 32, (@text_to_add + eval(@variable_to_change).to_s), 1) @stat_window.active = false elsif Input.trigger?(Input:: @stat_window.visible = false @stat_window.active = false if @d_actor_window.visible @d_actor_window.active = true elsif @d_enemy_window.visible @d_enemy_window.active = true end end end end end Demo:N/A Incompatibilità: Non dovrebbe andare in conflitto con nessuno script. Note dell'autore: kingartur2 (no, a me no, non ho fatto niente, questo scripter è italiano.)