ZLSL's Battle Portraits
#1
ZLSL's Battle Portraits
Version: 1.2



Introduction
This script allows you to display an 'extra' shot of your hero-in-action within your default battlesystem when it is his or her turn to choose what action to take. That is, you can display a large portrait of the hero or heroine when the [ Actor Command Window ] ( Attack|Skill|Item|Defend ) is visible and active.



Demo
None. This one's pretty simple in implementation.



Script
Here you go!



Instructions
Place this script below Scene_Debug and above Main. If it is in use with with a custom battle system, it must be placed below such a system.

Configure the position where the portaits will be shown. This is done in the ZLSL_Portraits module.



Compatibility
Thanks to zlsl who requested the system. I figured... I had about ten minutes to kill.



Credits and Thanks
˂If you're using graphics made or scripts written by others, or have someone to thank, do it here. This section is optional if you have no one to mention.˃



Terms and Conditions
Free for use, even in commercial games. Only due credit is required. That includes credit for zlsl as well as my own.
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 }
#2
To be honest with you, I would have define the party size method used in Spriteset_Battle as you can see in the code snippet below...

Code:
def zlslbportait_function_update_actor_party_size
    # Set current number of battlers
    return $game_party.party_size || 4
  end

And yeah, as zlsl has already noticed, you didn't include any party_size method in Game_Party...
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#3
BUMP
to version 1.1

I neglected to include recognition of a 'party_size' value within the Game_Party class. This value is typically nil and unused by the script. However, I recognize that other scripts that increase the size of the default system's party beyond 4-members uses this value.  If detected, then this new value will be used instead.

So... no. The party_size value does not define the size of the party within this script, it is a hook used by other scripts.
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 }
#4
(11-10-2019, 04:13 AM)DerVVulfman Wrote:
ZLSL's Battle Portraits
Version: 1.1



Introduction
This script allows you  to display an 'extra' shot  of your hero-in-action within your default battlesystem when it is his or her turn to choose what action to take.  That is, you can display a large portrait of the hero or heroine when the [ Actor Command Window ] ( Attack|Skill|Item|Defend )  is visible and active.



Demo
None.  This one's pretty simple in implementation.



Script
Here you go!



Instructions
Place this script below Scene_Debug and above Main.  If it is in use with with a custom battle system, it must be placed below such a system.

Configure the position where the portaits will be shown.  This is done in the ZLSL_Portraits module.



Compatibility
Thanks to zlsl who requested the system.  I figured... I had about ten minutes to kill.



Credits and Thanks
˂If you're using graphics made or scripts written by others, or have someone to thank, do it here. This section is optional if you have no one to mention.˃



Terms and Conditions
Free for use, even in commercial games.  Only due credit is required.  That includes credit for zlsl as well as my own.



Hi guys! Laughing Laughing Laughing
This script is great as an original, but if you want to add a little taste, see my post! Please understand that English is not my native language, so explanation is poor. I used a translator:->


The original script loads the same image as Battler.
I wanted to support battler and command battle portraits differently. 
The bitmap folder supported BPortrait, but the script did not recognize the BPortrait folder.  (ᵕ̣̣̣̣̣̣﹏ᵕ̣̣̣̣̣̣) 
I was troubled all night and modified this. It was actually a very simple way.





[Image: gw265iD.png]
Just modify the pink box in the picture.


first
if @battler.battler_name != @character_name or
▲ Please search and find. And,

self.oy       = @height 
Replace with the code below !!


#-------------------------------------------------------------------------------------------------  

    if @battler.battler_name != @character_name or
       @battler.battler_hue != @character_hue
      # Get and set bitmap
      @character_name = @battler.battler_name
      @character_hue  = @battler.battler_hue
 self.bitmap   = RPG::Cache.bportrait(@character_name, @character_hue)
      @width        = bitmap.width
      @height       = bitmap.height
      self.ox       = @width / 2
      self.oy       = @height

#-------------------------------------------------------------------------------------------------  

Battle and Command Battle Portraits now support different images! Put your command portrait in the BPortrait folder!
※ Battler and Battle Portrait must have the same name !!
※ Only Atoa ATB is not supported. I will be more concerned about this problem.



Thanks to DerVVulfman and kyonides for their help! Blushing + Cheery Blushing + Cheery Blushing + Cheery 
Everyone gave me help and advice until late. This made it possible to build the system I wanted.
Reply }
#5
BUMP
to version 1.2


STUPID!!! STUPID!!! STUPID!!!
Or...
BABO!!! BABO!!! BABO!!!
바보 !!! 바보 !!! 바보 !!!

I created the Cache system using tried and true methods so the BPortrait folder would properly save. But STUPID ME! I forgot to change the self.bitmap line within Sprite_BattlerProfile over from using the battler folder to the bportait folder!

Oookay. It's now fully fixed.

DerVV waves to yeodongsaeng (Little Sis)
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
   Battle Item Count kyonides 4 2,165 02-04-2024, 05:49 AM
Last Post: kyonides
   Dalissa's Battle Cry DerVVulfman 2 7,433 05-09-2023, 03:07 AM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,848 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Actor Battle Items DerVVulfman 4 6,092 11-08-2020, 12:36 PM
Last Post: Mel
   Battle Report Raziel 1 6,984 05-29-2020, 02:27 AM
Last Post: Whisper
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 255,728 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Mimi's Battle Music DerVVulfman 2 8,836 11-19-2018, 04:18 AM
Last Post: DerVVulfman
   ATOA Chanting Battle Animations DerVVulfman 9 17,863 01-12-2017, 01:46 PM
Last Post: Noctis
   Automatic Battle Actions Claihm 1 7,416 08-15-2016, 09:15 PM
Last Post: Mel
   Battle : No Battle End ME Kain Nobel 0 5,512 06-04-2016, 02:36 AM
Last Post: Kain Nobel



Users browsing this thread: 3 Guest(s)