I found a tales of battlestystem for RMVX at a japanse site and need help
#1
Hi, I found a Tales of Battle System for RMVX at a japanese site. The only problem is I cannot
figure out how to use skills and items or call a battle with a monster without the script command. If I don't use $scene = TABattle_Scene.new(1) it just calls the default battle system and I want to know if anyone could help me figure out how to call the tales of battle system without having to do that because I want victory and defeat handlers and I do not want the player to be able to escape from a boss battle. Also like I said I also need help figureing out how to use skills and items please. Thank you in advance. Here is a link to the demo. If it doesn't link you directly to the download look towards the bottum for ActBattle and only ActBattle. If you are still confused I'll upload the demo.

http://hikimoki.web.infoseek.co.jp/
Reply }
#2
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:
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
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?
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.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#3
Why don't you use the Blizz-ABS?
Reply }
#4
Thank you, DerVVulfman, by the way I cannot use F5 on my computer because I have Windows 7 so is there away to change the key for escape without causing any errors? I want to make sure it works okay.

Also:
(12-29-2010, 02:00 PM)MetalRenard Wrote: Why don't you use the Blizz-ABS?

I cannot use Blizz-ABS in RMVX and I am not switching to XP.
Reply }
#5
Change
Code:
if Input.trigger?(Input::F5)[code]
to something like...
[code]if Input.trigger?(Input::A)

That'll change the button to the SHIFT key for escapes.

For your general list of keys, run your game and hit F1. Then you'll see a popup for the game's properties. Click on the Keyboard tab. There, you can see the default keys. As you'll notice, the 'C' input button (aka select) is set to work on 'Space', 'Enter' and 'Z' . [/i] Why Z ??? [/i] And the 'A' input button is set for the 'Shift' key. I also look at the 'gamepad buttons' since I don't want to single anyone out.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   I found a message script and cannot figure out how to use it Rose Guardian 3 7,059 05-14-2011, 06:31 PM
Last Post: Rose Guardian



Users browsing this thread: 1 Guest(s)