Hello, I'm using the following scripts
YEZ Core Fixes and Upgrades
YEZ Battle Engine Zealous
Yanfly Engine RD - Custom Battle Actions
YEZ Menu System Options .
The only thing I'm trying to do is change the color of the text of the battle menu
i.e
Attack Attack
Style into Style
Glory Glory
I know I'm just overlooking something very simple likely within the scripts. It'd be awesome to get some help, as this would GREATLY improve some design aspects. Thanks so much for your time. :)
Changing the color of the battle menu text
● ARCHIVED · READ-ONLY
-
-
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Please add links to the scripts.
A screenshot of the battle menu as-is would be helpful.
I'd say it's probably a simple matter of adding some escape codes to the text to show on the menu, to control the colours, but you might have to make it call a different 'draw text' method to interpret the escape codes correctly. -
Thanks so much for setting me straight Shaz!
The scripts attached below are all foundational to the battle system I think, so I just gave a link to all of them to give as much info as possible. I also gave pictures to the menu to see exactly what I'm talking about. Just need to color code the commands differently. Hopefully I haven't confused anyone. Thanks for you patience! :)
Yan_Core_and_upgrades.txt
Yanfly_zealous.txt
Yanfly_extra_commands.txt
Yan_menu.txt


-
When we ask you to add links to the scripts, we REALLY mean add LINKS to the scripts - not to attach them to your post. There are a number of reasons for this, which I won't go into here (you can ask me via PM if you like).
The only time attaching the script would be valid is if you've made changes and we need to see those changes to be able to help you, or if the scripts can't be found online anymore. -
That's kinda what's happening. My old links don't work anymore. A LOT of the RGSS2 support is shutting down now that Ace is out.
Here's the link, to the original sites http://yanflychannel.wordpress.com/rmvx/zealous/
http://yanflychannel.wordpress.com/rmvx/redux-engine/
The other places I frequented have shut down permanently or temporarily. The yanfly download links take me to a 509 dropbox error.
https://dl.dropboxusercontent.com/u/49701990/YERD/Custom_Battle_Actions.txt
My secondary sites are typically just links to their blogs, that no longer support RGSS2. http://rmrk.net/index.php/topic,42396.0.html
:-/
The scripts that I attached previously were modified slightly by myself, but not anything below the lines that say NOT to edit.
I'm really trying here. Hopefully I haven't overlooked anything. -
Bump. plz!
-
Bump. (hope is definitely dwindling)
-
You just want to change color on the command right? Well doing that in VXAce is not a problem for me, but wew, it's VX I don't have it and don't really know RGSS2 structure, try to PM me, maybe we can discuss it more about this issue :) .
-
Here's the error. (finally figured out a way to work with the URL images. attachments ftw :p )
https://drive.google.com/file/d/0B4VTOnahkU1Pa0VjTXRJRGdldTg/view?usp=sharing
Good night hommie!
*EDIT: OOOps, disregard. We are PMing right now, and I put this in the wrong tab :p Still wrestling it out. -
Get those pipes ready... :headshake:
https://drive.google.com/file/d/0B4VTOnahkU1PZ2dEZDdVem5mVGs/view?usp=sharing
I'm gonna try and to help with some info too. -
Well I'm sorry for that, because actually that's just a syntax error.. :p
This will not throw an error.. Soryy for this because I don't own VX and can't debug syntax error, so I need you to cover if there's a syntax error for me.
SpoilerCode:Wrong script -
:headshake: Not there yet....
https://drive.google.com/file/d/0B4VTOnahkU1PWWNWMHJHS2YtX0k/view?usp=sharing
shucks. You're a real trooper though I'll give you that! :D
EDIT: And we're in the forum post again, lol!! -
What makes this so hard is because I can't debug it, so if there's syntax error you need to let me know.. And I will fix it with guessing..
Wew this error :
That's because I paste wrong script(the earlier script), Oh God why..
SpoilerCode:module BatColor # Choose your color from the color pixel in your windowskin for the actor # command list started from the very first command, counted with number # 1,2,3 and so on as many as the command you have. # The left side number in this hash represent the command sequence from the # first command until the last command, the right side number represent the # windowskin pixel color number. If you have more than 4 commands, add # yourself. ACTOR_COMMAND = { # <= Don't touch 1 => 21, 2 => 20, 3 => 18, 4 => 23, # 5 => 22, <= example if more than 4 actor command }# <= Don't touch end # End of BatColor #==============================================================================# ** Window_Base #==============================================================================class Window_Base < Window BatColor::ACTOR_COMMAND.each do |key, pixel| define_method("actor_command_#{key}" ) { return text_color(pixel) } end end # End of Window_Base #==============================================================================# ** Window_ActorCommand #==============================================================================class Window_ActorCommand < Window_Selectable #-------------------------------------------------------------------------- # overwrite refresh #-------------------------------------------------------------------------- def refresh create_contents for i in 0...@item_max self.contents.font.color = send("actor_command_#{i+1}") draw_item(i) end end #-------------------------------------------------------------------------- # new method draw item #-------------------------------------------------------------------------- def draw_item(index, enabled = true) rect = item_rect(index) rect.x += 4 rect.width -= 8 self.contents.clear_rect(rect) cmd = @commands[index] #--- case cmd when "-Attack" text = Vocab::attack when "-Skill" if @actor.class.skill_name_valid text = @actor.class.skill_name else text = Vocab::skill end when "-Guard" text = Vocab::guard when "-Item" text = Vocab::item when "-Wait" text = YE::BATTLE::COMMANDS::WAIT_VOCAB else text = cmd if YE::BATTLE::COMMANDS::CUSTOM_COMMANDS.include?(cmd) skill = $data_skills[YE::BATTLE::COMMANDS::CUSTOM_COMMANDS[cmd]] @actor.custom_action_flag = true enabled = @actor.skill_can_use?(skill) @actor.custom_action_flag = false else enabled = false end end #--- self.contents.font.color.alpha = enabled ? 255 : 128 self.contents.draw_text(rect.x, rect.y, rect.width, WLH, text) end end # Window_ActorCommand -
slightly different Error https://drive.google.com/file/d/0B4VTOnahkU1PN3pQQ2dmaHBjakU/view?usp=sharing
This may help too, just as information http://stackoverflow.com/questions/21574/what-is-the-difference-between-ruby-1-8-and-ruby-1-9
And I'll keep an eye open as best I can for the syntax ;-) -
Please try once again, in the spoiler above, I don't know why I pasted the wrong script again. This is frustrating.
-
error. It's mad at actor 5 method
https://drive.google.com/file/d/0B4VTOnahkU1PV3JMMThWb0lNTk0/view?usp=sharing
It's all good. You're probably just tired :) -
No, that error is not bad. Right now how many command you have for actor command? Is it stay 4? Or more? Actually this come the hard part.. My script above is defining method dynamically as much as we store how many color in the module BatColor::ActorCommand,
ACTOR_COMMAND = { # <= Don't touch 1 => 21, 2 => 20, 3 => 18, 4 => 23, # 5 => 22, <= example if more than 4 actor command }# <= Don't touchSee that, it's only 4 color, so if your command consist more than 4, obviously it will throw error.. If yourcommand more than 4 you need to assign new color, look at my example, it's 5 => 22, however it won't be count because I comment it with the this symbol >>> #
-
Translation.... it works like a charm! :D ;_; :guffaw: :thumbsup-right: :thumbsup-left: :barf: :dizzy: How do the colors work. What's the numerical color scale. I figure it out, but I wanted to get an idea instead of fumbling around.
-
What's it? A video hoosiers? Still throw error huh?
Well anyway, it looks like this matter is beyond my limit, actually I'm not the type person to give up, but it's too hard for us because I can't debug easily if there's a syntax failure and anything else. It just difficult, because for your information, one wrong thing(example missed to type one semicolon, or add a comma, would cause error). I'm really sure my script above should work, but because this syntax error issue, or maybe another else, this can be somewhat very hard. For the last advice, find a RGSS2 scripter that wilingly to help, and show him/her the latest script I posted, he/she will know what to do and(hopefully guide you) I believe you can solve this issue. Good luck =)
-
No no. I was saying it works! lol!