The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: The Shadow on November 08, 2007, 10:24:34 PM

Title: ZTBS Edit possible?
Post by: The Shadow on November 08, 2007, 10:24:34 PM
Has anyone heard of ZTBS? It's a tactical battle system, and it's a pretty good one.

I have for a long time thought about doing some edits on it. It looks like this with no edits.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl104%2FDennis88_2006%2Fab-30.png&hash=2071d784d64a41365e1ae7051183ed0ebbd29695)

But I want to edit it so it looks like this.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi94.photobucket.com%2Falbums%2Fl104%2FDennis88_2006%2Fab-32.png&hash=caa27e7bb68677db18dff61b20ee18af39786e3a)

It's going to be based for 3 characters. The problem is...that I have no scripting knowledge at all >_<.
I just wonder how I should edit the script, so I will be able to have like this? If you want me to post the script, I won't do it. The fact is that the script is pretty long, and It would take many posts to post everything you need.
If you want to find the script, take a look on hbgames.org or Creationasylum.

Title: Re: ZTBS Edit possible?
Post by: modern algebra on November 09, 2007, 01:53:07 AM
Well, I'd suggest you move this to Script Requests. The request is fairly easy. All that really needs to be done is write a Window and then display it upon battle start and dispose of it at the end of the battle. If you wanted a skeleton for the window, it's be something like this:


class Window_BattlePartyData < Window_Base
  def initialize
    super (40, 336, 560, 128)
    self.contents = Bitmap.new (width - 32, height - 32)
    self.opacity = 160
    refresh
  end
  def refresh
    self.contents.clear
    for i in 0...$game_party.actors.size
      draw_actor_name ($game_party.actors[i], 0, i*32)
      draw_actor_state ($game_party.actors[i], 125, i*32)
      draw_actor_hp ($game_party.actors[i], 250, i*32, 140)
      draw_actor_sp ($game_party.actors[i], 390, i*32, 140)
    end
  end
end


Maybe that would be enough. I just wrote that on the spot, so it probably would need some tweaking. Then yeah, all you would need to do is call the window at the start of the battle, refresh whenever someone on your team gets hit, and disposed at the end of battle.