[RESOLVED]Need to know how to edit a core script for char status...

Started by Mixxth, December 06, 2011, 04:58:34 am

Previous topic - Next topic

Mixxth

Hey guys... I'm aware sometimes the questions I ask require to much thinking lol... >.> but in this case I don't think that's the case...

I just want to know if anyone knows what exactly I would edit to make the word "State:" appear before "[Normal]" in the status window...
I thought it was in "window_status"... if it is then I'm oblivious because I could only find "draw_actor_state(@actor, 96, 64)" which simply
is the coordinates for the "[Normal]" I figure I have to add something and that's where I'll seek advice rather then mess with scripts heh, any help as per usual would be greatly appreciated! :^_^':
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

winkio

to change the text, modify the make_battler_state_text method in Window_Base

Mixxth

Forgive me winkio... but I believe in window_base the "make_battler_state_text" simply changes the state from "[Normal]" to something else, that part of the script is fine, I like normal and then a display of state changes as they occur.. the problem I'm having is I want to "add" text before the "[Normal]" to define what it is to players so it would read something like:

State: [Normal]
Or
State: [Poisoned]

Rather then

[Normal]
Or
[Poisoned]

I want to essentially *add* the "state:" to the beginning, and for all I know... that's done in "Window_Base" -> "make_battler_state_text" or it's done in the individual's "Window_skill" & "Window_status", either way I have no idea how to "add" text that was never there in the first place lol atm I can only modify scripts haha >.<
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."

ForeverZer0

Umm, the string that says "[Normal]", change it to say "State: [Normal]'".

In the section that adds the name of states, make it so that it is "State: " + original text.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

winkio

or change line 74 from

return text


to

return "State: " + text

Mixxth

And those 2 answers are why this website is my rmxp bible >.>, thanks guys problem solved :)
Donald Knuth: "I can't go to a restaurant and order food because I keep looking at the fonts on the menu. Five minutes later I realize that it's also talking about food."