Help - Search - Members - Calendar
Full Version: Change the menu's class to the current status instead?
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
MeganHunter
I'm not a programmer. I'm a stupid artist that can only drawrr. I'm very content with using the basic VX options, since I care a lot more about using my own art and I'd rather spend my free time on that. I used to use 95 a ton, 2000 a bit, and have started playing around with VX this week, so I think I know what it can handle and always err on the safe simple side just in case.

There is one thing that I'd like to change though, something I thought would be easy only because I thought I saw it in the event screen. Turns out I was wrong, and this may be complicated...maybe even too complicated for me to do. Which would be fine, but if it's at all possible I wanted to see what would be involved.

Can the menu screen list the character's status instead of their class?

Don't look at me like that! I wasn't trying to make something complicated, just the opposite. I thought I saw in the events screen the option to change a character's class name, without actually changing the class. Just like you could change their character name or sprite. But I was wrong, or at least I can't find it again. Since my game only has four characters, and you can only ever have one status at a time including "healthy," I thought this would be really easy. Just set some common events so when Megan got posioned, her class name changed to poisoned. Her picture will also change to a poisoned expression, but status plays a big part of my idea and if I can't show the actual word I will probably come up with a completely different idea. If there is a way to make it this easy, please let me know!

The engine of course wants me to change their actual class, which I'm not going to do. With the amount of status ailments I want to have it would be a nightmare. So then I thought, wait a minute, these characters don't have official class names anyway. What if I made their NAME the status, and their CLASS the character name? Then I could use the change name function as it is and I'd be golden. I don't care if their name's on the right side instead of the left. But I (eventually...slowly) realized that would completely mess up the combat screens, so that's not an option either.

There's also the other easy way, but I'm trying to avoid it and it might be a deal breaker anyway. Since I'm making seperate faces for the different status ailments, I could just type "poisoned" at the bottom of the picture (in the picture itself.) Certainly easy. But I have so little screen real estate for those menu pictures already, I really don't want to cover up any of it with words. The resolution already has to be way smaller than I'd like.

Is there an easy way for a stupid artist to show a member's status on the menu screen? Either something the equivilent of the "change actor name" event, or a piece of paste-able script so simple even I could do it?*

~Megan

*If you hadn't heard, I'm kinda stupid.

Omezo
I am sorry but i cant do that... sad.gif i have not learned enough about menus
Jabbar Blackcat
I think you can do it with script. But if status list maybe you need a larger status_window because if actor being poisoned, paraliz, silence and etc in the same time. The status window not enough to display it all...
MeganHunter
Thanks guys, the good news is that I'm definitely making it so you can only have one status at a time. I would love to have it in there but in the efforts to get the game done in two months I'm probably going to go with the poor man's way of just putting the ailment name on the actual character graphic. That's something I know I can change even with my low skill. In that case I would just leave the class names blank; in this story it doesn't really make sense to have them.

If anyone does know how to do this, though, please let me know since I would much rather change the class name instead of taking up so much space on the face graphics!
jens009
CODE
Is there an easy way for a stupid artist to show a member's status on the menu screen? Either something the equivilent of the "change actor name" event, or a piece of paste-able script so simple even I could do it?*

If you're talking about Status Ailements and put it in the menu screen,
Of course. This takes like 5-20 lines of code.

Paste below Materials.

CODE
# Jens009's Quick Edit: Replace Class with State Name
# Requested by Megan Hunter 5/2/2010
class Window_Base < Window
  def draw_actor_class(actor, x, y)
    self.contents.font.color = normal_color
    for state in actor.states
      self.contents.draw_text(x, y, 120, WLH , state.name)
    end
  end
end


EDIT:
Or if you want to keep the class:
CODE
# Jens009's Quick Edit: Replace Class with State Name
# Requested by Megan Hunter 5/2/2010
class Window_Base < Window
  def draw_actor_state_name(actor, x, y)
    self.contents.font.color = normal_color
    for state in actor.states
      self.contents.draw_text(x, y, 120, WLH , state.name)
    end
  end
end

class Window_MenuStatus < Window_Selectable
  alias jens009_menu_include_state_name_refresh refresh
  def refresh
    jens009_menu_include_state_name_refresh
    for actor in $game_party.members
      x = 104
      draw_actor_state_name(actor, x+120, y-2)
    end
  end
end


If you want to move around the Status name, just change the x+120 and y-2 in this line with a different constant.
CODE
      draw_actor_state_name(actor, x+120, y-2)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.