Changing colours of increasing/decreasing Parameters

RaZzi

My Peculiar Brother
Veteran
Joined
Jul 19, 2013
Messages
423
Reaction score
206
First Language
Finnish
Primarily Uses
How to change color of the NEW value of the parameter in the Equip menu? The one that shows if the weapon/armor/etc that you are going to equip has positive or negative effect to the current value.



As you can see, if the new value is negative the color it uses is imho not clear enough and I want to change that.

I'm using Yanfly's Equip Engine https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/ace-equip-engine/

It has def draw_new_param but I just can't figure it out since I'm not a scripter.

Code:
  def draw_new_param(dx, dy, param_id)    contents.font.size = YEA::EQUIP::STATUS_FONT_SIZE    new_value = @temp_actor.param(param_id)    change_color(param_change_color(new_value - @actor.param(param_id)))    draw_text(0, dy, contents.width-4, line_height, new_value.group, 2)    reset_font_settings  end 
 
Last edited by a moderator:

Tarsus

Veteran
Veteran
Joined
Aug 4, 2014
Messages
226
Reaction score
128
First Language
English
Primarily Uses
Just going of that code I would suggest looking in the param_change_color code.

Alternatively you could alter the colour in the system folders graphics thing.
 

RaZzi

My Peculiar Brother
Veteran
Joined
Jul 19, 2013
Messages
423
Reaction score
206
First Language
Finnish
Primarily Uses
Just going of that code I would suggest looking in the param_change_color code.

Alternatively you could alter the colour in the system folders graphics thing.
I figured out that much but I think I'm just too tired to figure it out :D And changing the graphics color is not an option since I have lots of other scripts that would be affected by that.
 

Tarsus

Veteran
Veteran
Joined
Aug 4, 2014
Messages
226
Reaction score
128
First Language
English
Primarily Uses
As another idea, you could remove the change_color command all together and create 2 new icons to show positive and negative growth of stats.

then add

if new_value > @actor.param(param_id)

   draw_icon( # id of positive icon 

if new_value < @actor.param(param_id)

   draw_icon( # id of negative icon

 

with the icon id's and the x/y to appear directly besides the new value.
 

RaZzi

My Peculiar Brother
Veteran
Joined
Jul 19, 2013
Messages
423
Reaction score
206
First Language
Finnish
Primarily Uses
Can't get my head around that parameter colour. I just can't do it and I don't find anything related to param_change_color in google. Also adding that draw_icon with the changing color would be cool but can I do that? Nope. 

Tried with different values etc. It shows nothing. Draw icon wants 3 values. Could someone walk me through these, I hate when I don't understand something!

Code:
  if new_value > @actor.param(param_id)     draw_icon(200, 200, 957)  end  if new_value < @actor.param(param_id)     draw_icon(x , y, 958)  end
 

Tarsus

Veteran
Veteran
Joined
Aug 4, 2014
Messages
226
Reaction score
128
First Language
English
Primarily Uses
Looking at that code I would go with -

draw_icon(dx-15, dy, 957)

First argument is x coord, second is Y and third is the ID of the icon.

Statt at about dx-15 then increase or decrease based on your preference. I'm on my phone right now so I can check to see what that actually looks like.
 

modern algebra

Veteran
Veteran
Joined
Sep 28, 2012
Messages
59
Reaction score
49
First Language
English
Primarily Uses
Changing the colour of the text does not require a script; you can do it in an image editor. In the windowskin (file named "Window" in Graphics\System\), there is a palette of 32 colours in the lower righthand corner. The power up colour is the first colour in the fourth row, and the power down colour is the second colour in the fourth row. All you have to do is change those two squares to the colour that you want.
 

RaZzi

My Peculiar Brother
Veteran
Joined
Jul 19, 2013
Messages
423
Reaction score
206
First Language
Finnish
Primarily Uses
Changing the colour of the text does not require a script; you can do it in an image editor. In the windowskin (file named "Window" in Graphics\System\), there is a palette of 32 colours in the lower righthand corner. The power up colour is the first colour in the fourth row, and the power down colour is the second colour in the fourth row. All you have to do is change those two squares to the colour that you want.
True but that would broke my other scripts that rely on those same colours.
 
Last edited by a moderator:

modern algebra

Veteran
Veteran
Joined
Sep 28, 2012
Messages
59
Reaction score
49
First Language
English
Primarily Uses
Sorry. I expected that if the colour was unclear against that windowskin for one script it would be unclear for any other too, but I guess I was wrong. Insert the following code into a new slot in the Script Editor above Materials and below Main:

class Window_EquipStatus  def power_up_color;    text_color(24);  end;    # Equipment power up  def power_down_color;  text_color(25);  end;    # Equipment power downendChange the 24 and 25 to the index of whichever colour in the windowskin palette that you want to use. The indices start at 0 in the top left-hand corner and progress through the first row, then the second, etc... In other words:

0   1   2   3   4   5   6   7

8   9   10 11 12 13 14 15

16 17 18 19 20 21 22 23

24 25 26 27 28 29 30 31
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top