Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
Hugedarkness

a little default script question

Question

i've started a new project and one default thing is driving me crazy: the thing that in default you see the actors char set in the manu and in the status window. how do i change it to show the battler graphic or an other picture instead?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I just tried everything i know and cant figure it out. Marked might know how, i know leon can help

if i figure it out i will let you know

Share this post


Link to post
Share on other sites
  • 0

You need a code snippet written that will draw the actor's battler instead of the sprite. Let me see what i can do.

 

Add this into your script manager in any new script:

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  Window_Base
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class Window_Base

 def draw_actor_battler(actor, x, y)
bitmap = RPG::Cache.battler(@actor.battler_name, @actor.battler_hue)
self.contents.blt(0, 0, bitmap, Rect.new(0, 0, 200, 200))
 end

end

 

Then, in the status window (Window_Status)

replace:

draw_actor_graphic(@actor, 40, 112)

with

draw_actor_battler(@actor, 40, 112)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...