[RESOLVED] I am looking for a feature to be added to Minkoff's...

Started by Calintz, January 26, 2008, 03:48:11 pm

Previous topic - Next topic

Calintz

I don't know if this is possible, because these CBS's are too advanced for me to even understand right now, however I was wondering if somebody could enhance this script in a small way. When this system is used, it eliminates the default battle pics from behind the staus of your characters...I was wondering if there was a way to keep pictures there, while stilll having the animated battlers...

This is what I mean:
Spoiler: ShowHide

Blizzard

Wouldn't it look weird to have side view enemies if you use a front view party? Anyway, you can scrap that BS, simply get my Tons of Add-ons, it has ainmated battlers. Then just put your enemies at the correct position on the screen and that's it.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Well, I want all 3...
I'm using side-view enemies and heros, but I still want the bigger pic behind their names...

Blizzard

How about using facesets in the BattleStatus windows instead?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz


Blizzard

January 26, 2008, 07:25:25 pm #5 Last Edit: January 26, 2008, 08:12:46 pm by Blizzard
Alright, here's your miniscript to allow that. Use that battle system together with this script. The facesets are named the same as the battlers, but put them into a folder called "Faces" in the Battlers folder.

Spoiler: ShowHide
#==============================================================================
# Sprite_Face
#==============================================================================

class Sprite_Face < Sprite_Battler
 
  def update
    if @battler == nil
      super
      return
    end
    if @battler.battler_name != @battler_name ||
        @battler.battler_hue != @battler_hue
      @battler_name, @battler_hue = @battler.battler_name, @battler.battler_hue
      self.bitmap = RPG::Cache.battler('Faces/' + @battler_name, @battler_hue)
      @width, @height = bitmap.width, bitmap.height
      self.ox, self.oy = @width / 2, @height
      self.opacity = 0 if @battler.dead? || @battler.hidden
    end
    super
    if $tons_version != nil && $tons_version >= 5.0 &&
        $game_system.CENTER_BATTLER
      self.x = case $game_party.actors.size
      when 1 then 320
      when 2 then 160 + 320 * @battler.index
      when 3 then 160 + 160 * @battler.index
      when 4 then 80 + 160 * @battler.index
      end
    else
      self.x = 80 + 160 * @battler.index
    end
    self.y = 464
    self.z = @battler.screen_z
  end
 
end

#==============================================================================
# Spriteset_Battle
#==============================================================================

class Spriteset_Battle
 
  alias init_calintz_faces_later initialize
  def initialize
    @face_sprites = []
    init_calintz_faces_later
    4.times {@face_sprites.push(Sprite_Face.new(@viewport2))}
    update_faces
  end
 
  alias upd_calintz_faces_later update
  def update
    upd_calintz_faces_later
    update_faces
  end
 
  def update_faces
    return if @face_sprites.size == 0
    @face_sprites[0].battler = $game_party.actors[0]
    @face_sprites[1].battler = $game_party.actors[1]
    @face_sprites[2].battler = $game_party.actors[2]
    @face_sprites[3].battler = $game_party.actors[3]
    @face_sprites.each {|sprite| sprite.update}
  end
 
  alias disp_calintz_faces_later dispose
  def dispose
    disp_calintz_faces_later
    @face_sprites.each {|sprite| sprite.dispose}
  end
 
end


Compatible with Center Battlers, BTW.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

Beatiful...I will test this right now!!
I'll edit this post in a few, letting you know how it turns out.

BTW: I'm beginning my own scripting adventure, and I am currently attempting a CMS, will be out eventually... ;D

Blizzard

Since I've acually tested it, I assume that it should work without problems.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz

I seem to have a problem...The face appears way off pt.
Spoiler: ShowHide

Blizzard

>.< My bad. I was testing it and forgot to remove the testing mods. I fixed my post above.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Calintz


Calintz

Is there anyway that you could add...
- When the enemy attacks the Heros...I can have the face grunt??

Blizzard

Eh, that would be already a bit complicated. I'd need to check all time if damage was done and then change the graphics name.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Nortos

would that be very  lagy if you had it in conjunction with minkoffs sideview?

Calintz