12-29-2010, 08:46 AM
The person who crafted this script did not put in any code for items or skills. All I found was a method named 'attack_special' which runs a specially defined attack for each character.
So, you have the following:
DOWN=Guard
LEFT/RIGHT = Movement
SELECT = Attack
ESC = Special Attack (Esc is Esc no more @_@)
and
F5 = Escape
The escape routine he has in TABattle_Scene was written as this:
I guess, you could make a value called $ta_escape and keep it set to true all the time and do this:
So, if you make your call event to bring up the battle, pass $ta_escape = false to prevent escape.
Likewise, do you see the section above that looks like this?
Well, if you want the player to be able to survive a losing game, try adding a $ta_loser value (like the $ta_escape ^_- ) and do this instead:
Actually, that's not all you need to do. It'll let you survive a battle, but you cannot start a new one (gotta re-add the guys), so...
Within TABattle_Scene, tack this on at the end of the initialize method, right under $game_system.battle_bgm_play
And add this to the end of the start method, right below the @game_end = 0 statement
Now, you can let the player survive losing battles. And those last two things lets the guy restart after losing a battle... and it can check to see if you have a dead party trying to fight.
Afraid I cannot do anything for skills or items. They would have to be created altogether.
So, you have the following:
DOWN=Guard
LEFT/RIGHT = Movement
SELECT = Attack
ESC = Special Attack (Esc is Esc no more @_@)
and
F5 = Escape
The escape routine he has in TABattle_Scene was written as this:
Code:
if Input.trigger?(Input::F5) # F5強制終了
$scene = Scene_Map.new
return
end
I guess, you could make a value called $ta_escape and keep it set to true all the time and do this:
Code:
if $ta_escape == true
if Input.trigger?(Input::F5) # F5強制終了
$scene = Scene_Map.new
return
end
end
Likewise, do you see the section above that looks like this?
Code:
else
$scene = Scene_Gameover.new if @game_end == 1
$scene = Scene_Map.new if @game_end == 2
return
end
Well, if you want the player to be able to survive a losing game, try adding a $ta_loser value (like the $ta_escape ^_- ) and do this instead:
Code:
else
if @game_end == 1
if $ta_loser == true
$scene = Scene_Map.new
else
$scene = Scene_Gameover.new
end
end
$scene = Scene_Map.new if @game_end == 2
return
end
Actually, that's not all you need to do. It'll let you survive a battle, but you cannot start a new one (gotta re-add the guys), so...
Within TABattle_Scene, tack this on at the end of the initialize method, right under $game_system.battle_bgm_play
Code:
@player = 0
And add this to the end of the start method, right below the @game_end = 0 statement
Code:
actor_all_dead?
Now, you can let the player survive losing battles. And those last two things lets the guy restart after losing a battle... and it can check to see if you have a dead party trying to fight.
Afraid I cannot do anything for skills or items. They would have to be created altogether.