RPG Fusion
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.



 
AccueilPortailRechercherDernières imagesS'enregistrerConnexion
Le deal à ne pas rater :
Jeux, jouets et Lego : le deuxième à -50% (large sélection)
Voir le deal

 

 [VX] Battle retry

Aller en bas 
AuteurMessage
Faucheuse
Acrobate
Acrobate
Faucheuse


Masculin
Nombre de messages : 95
Age : 27
Projet(s) en cours : aucun
Niveau Rpg Maker : Moyen
Jeux Préférés : Zelda oracle of the season,final fantasy tactics,Call of duty Modern warfare 2 et 3,Dragon quest 9,World of Warcraft,StarcraftII
Date d'inscription : 15/03/2011

[VX] Battle retry Empty
MessageSujet: [VX] Battle retry   [VX] Battle retry EmptyLun 07 Nov 2011, 18:57

Bonjour,c'est la mort qui vous parle.

Créer par "sandgolem"
mettre son nom dans les crédit.

Il sert a recommencé un combat perdue.
pas besoin de Screenshots.

Comme d'habitude le mettre au dessus de
main le nom pas d'importance mais mettez "Battle Retry" par précaution


voici le script:

#==========================================================================
# * Battle Retry
#==========================================================================
# by sandgolem
# Tradução by:NaRuToMaKeR
# www.reinorpg.com
# Versão 1 [VX]
# Janeiro 26th, 2008
#==========================================================================
# INSTRUÇÕES:
#
# 1- Ponha acima do main
# 2- Edite no Battle_Retry Module
#==========================================================================

#==========================================================================
# Battle_Retry Module
#==========================================================================

module GameBaker
BattleRetryCommands = ['Retenter le combat','Ecran Titre'] # As frases que irão aparecer.
BattleRetryDisableSwitch = 0 #Switch que desativa o battle retry. 0 para nenhuma
end

#==========================================================================
# Game Interpreter
#==========================================================================

class Game_Interpreter
alias_method :gamebaker_battleretry_interp601, :command_601
def command_601
if $gamebaker_retrywon
@branch[@list[@index].indent] = 0
$gamebaker_retrywon = nil
end
return gamebaker_battleretry_interp601
end

alias_method :gamebaker_battleretry_interp602, :command_602
def command_602
if $gamebaker_retryescaped
@branch[@list[@index].indent] = 1
$gamebaker_retryescaped = nil
end
return gamebaker_battleretry_interp602
end
end

class Scene_File
def gamebaker_write_retrysave_data
file = File.open('Data/retry.gb', 'wb')
write_save_data(file)
file.close
end

def gamebaker_read_retrysave_data
file = File.open('Data/retry.gb', 'rb')
read_save_data(file)
file.close
end
end

class Scene_Battle
alias_method :gamebaker_battleretry_main, :main
def main
$gamebaker_retryescaped = nil
$gamebaker_retrywon = nil
if !$game_switches[GameBakerBattleRetryDisableSwitch]
if !$gamebaker_battleretry_inbattle & !$game_troop.can_lose
$gamebaker_battleretry_inbattle = $game_troop
gamebaker_scene_save_temp = Scene_File.new(true,true,true)
gamebaker_scene_save_temp.gamebaker_write_retrysave_data
gamebaker_scene_save_temp = nil
end
end
gamebaker_battleretry_main
if !$scene.is_a?(Scene_Gameover)
File.delete('Data/retry.gb') if FileTest.exist?('Data/retry.gb')
$gamebaker_battleretry_inbattle = nil
end
end

alias_method :gamebaker_battleretry_battleend, :battle_end
def battle_end(result)
$gamebaker_retrywon = true if result == 0
$gamebaker_retryescaped = true if result == 1
gamebaker_battleretry_battleend(result)
end
end

class Scene_Gameover
alias_method :gamebaker_battleretry_gameovermain, :main
def main
if $gamebaker_battleretry_inbattle
$data_system.gameover_me.play
@sprite = Sprite.new
@sprite.bitmap = Cache.system("GameOver")
Graphics.transition(60)
@command_window = Window_Command.new(192,GameBaker::BattleRetryCommands)
@command_window.back_opacity = 160
@command_window.x = 260 - @command_window.width / 2
@command_window.y = 248
loop do
Graphics.update
Input.update
gamebaker_retry_update
break if $scene != self
end
@command_window.dispose
Graphics.freeze
@sprite.bitmap.dispose
@sprite.dispose
Graphics.transition(30)
Graphics.freeze
else
gamebaker_battleretry_gameovermain
end
end

def gamebaker_retry_update
@command_window.update
if Input.trigger?(Input::C)
case @command_window.index
when 0
$game_system.battle_bgm.play
gamebaker_scene_save_temp = Scene_File.new(true,true,true)
gamebaker_scene_save_temp.gamebaker_read_retrysave_data
gamebaker_scene_save_temp = nil
$game_troop = $gamebaker_battleretry_inbattle
$scene = Scene_Battle.new
when 1
File.delete('Data/retry.gb') if FileTest.exist?('Data/retry.gb')
$gamebaker_battleretry_inbattle = nil
$scene = Scene_Title.new
end
end
end
end




Revenir en haut Aller en bas
 
[VX] Battle retry
Revenir en haut 
Page 1 sur 1
 Sujets similaires
-
» Battle Graphyque
» CBS 3.5 Moghunter Battle
» Statistiques post-battle
» [VX]Sideview Battle System Version 2.7 [EN]
» Combat Tactique (Tactical Battle System)

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
RPG Fusion :: BANQUE DU CODE :: Antre des Scripts :: Combat-
Sauter vers:  
Ne ratez plus aucun deal !
Abonnez-vous pour recevoir par notification une sélection des meilleurs deals chaque jour.
IgnorerAutoriser