Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Script for changing Battle colour Text?
Laconia
post Feb 24 2010, 08:47 AM
Post #1



Group Icon

Group: Member
Posts: 1
Type: Developer
RM Skill: Skilled





I've been making an RPG game using RPGMaker XP. Everything going well except for one small problem. During a battle the text clashes with the players so it's difficult to see how much HP you have left.

My question is - Has anyone produced a script or found a way to edit the existing scirpt so it's possible to change the colour of the in-battle text?

You're help is really appreciated!

Many thanks! smile.gif
Go to the top of the page
 
+Quote Post
   
Callista
post Feb 24 2010, 09:26 AM
Post #2



Group Icon

Group: Revolutionary
Posts: 130
Type: None
RM Skill: Undisclosed




CODE
#==============================================================================
# ** Window_BattleStatus
#------------------------------------------------------------------------------
#  This window displays the status of all party members on the battle screen.
#==============================================================================
class Window_BattleStatus < Window_Base
#---------------------------------------#
# Change values here, in (R, G, B).     #
#---------------------------------------#  
HP_AND_SP_TEXT_COLOUR = Color.new(125,0,125)
REGULAR_BATTLE_TEXT_COLOUR = Color.new(255,255,0)
#-----------------------------------------
#-----------------------------------------
  def normal_color
    return REGULAR_BATTLE_TEXT_COLOUR
  end
  def system_color
    return HP_AND_SP_TEXT_COLOUR
  end
end


Paste before main, change colours where indicated in the script. Colours come in (R, G, B).

This post has been edited by Callista: Feb 24 2010, 09:27 AM


__________________________

"The tragedy of life is what dies inside a man while he lives."

~~~
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 09:48 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker