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
> Actor name color, Very short script.
Paper PokéMaste...
post Jul 8 2009, 03:51 PM
Post #1


Gotta catch 'em all!
Group Icon

Group: Revolutionary
Posts: 633
Type: Event Designer
RM Skill: Skilled




Here is my first ever script! ^^

What it does: Changes the color of an actor's name when viewed in the menu.


CODE
class Window_Base < Window
#--------------------------------------------------------------------------
  # * Get Actor Name Color
  #--------------------------------------------------------------------------
  def actor_color
    return text_color(28)
  end
end



This is a Plug and Play script.
But, if you want it to do anything, then go to line 244 of Window_Base, and change the
contents.font.color to actor_color.

Where to put it:
You can put this script between the Equip Screen Power Down and Draw Icon parts of Window_Base.

Compatibility:
Works with any script.

This post has been edited by Paper PokéMaster: Jul 9 2009, 03:41 PM


__________________________
CONGRATULATIONS!
You have been selected out of OVER 9000 for a -FREE- spamwich!!
Just click this link to claim your prize!
Go to the top of the page
 
+Quote Post
   
wltr3565
post Jul 9 2009, 03:33 AM
Post #2


Laugh with Neuro
Group Icon

Group: Revolutionary
Posts: 184
Type: Event Designer
RM Skill: Intermediate




Yet simple, but can't you make it that the color differs for each actors?


__________________________
Come on, I really need to revive this site:
Script Haven: Go!!!
Aren't good at making sigs though T-T




My simple scripting tutorial:


[Show/Hide] Don't forget:

Laugh with Neuro
Go to the top of the page
 
+Quote Post
   
Khev
post Jul 9 2009, 10:20 AM
Post #3


I'm sorry.. What?
Group Icon

Group: Revolutionary
Posts: 217
Type: Event Designer
RM Skill: Skilled




Pretty simple, though good work wink.gif

It's always good to see new people scripting. Hope you can show us more scripts!

Try working on a big script that no one has done yet ;D


__________________________

Go to the top of the page
 
+Quote Post
   
Paper PokéMaste...
post Jul 9 2009, 12:18 PM
Post #4


Gotta catch 'em all!
Group Icon

Group: Revolutionary
Posts: 633
Type: Event Designer
RM Skill: Skilled




QUOTE (wltr3565 @ Jul 9 2009, 06:33 AM) *
Yet simple, but can't you make it that the color differs for each actors?


That's what I'm going to try next.


__________________________
CONGRATULATIONS!
You have been selected out of OVER 9000 for a -FREE- spamwich!!
Just click this link to claim your prize!
Go to the top of the page
 
+Quote Post
   
Shanghai
post Jul 9 2009, 01:27 PM
Post #5


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




This is not plug and play. You're missing the following at the top:

CODE
class Window_Base < Window


And make sure you end it properly, too.

CODE
end


__________________________
Go to the top of the page
 
+Quote Post
   
Paper PokéMaste...
post Jul 9 2009, 03:26 PM
Post #6


Gotta catch 'em all!
Group Icon

Group: Revolutionary
Posts: 633
Type: Event Designer
RM Skill: Skilled




>.< d'oh!

OK, I'll edit it.


__________________________
CONGRATULATIONS!
You have been selected out of OVER 9000 for a -FREE- spamwich!!
Just click this link to claim your prize!
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: 23rd May 2013 - 07:32 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker