Thanks for you help lavra works like a charm. 😀
(that moment though when I forget to look at one of the help files lol)
I am calling a number input processing on the command window, but I don't know why it keeps saying there's no such thing as digits max method in it when in fact it has. Here's how I'd set it up:
@number_window = Window_NumberInput.new(@command_window) @number_window.digits_max = 3 @number_window.startHowever it says error. What I want to achieve is rather simple I just don't know how. When I select a command from my command window, a number input pops out with say digits max of 7 and then starts me inputting the values, then when confirmed, saves that value in a variable (accessor) created on the scene. Any inputs?
Because @digits_max is a private member of Window_NumberInput. If you take a look at the start method:
def start @digits_max = $game_message.num_input_digits_max @number = $game_variables[$game_message.num_input_variable_id] @number = [[@number, 0].max, 10 ** @digits_max - 1].min @index = 0 update_placement create_contents refresh open activate endYou can see that it's fetched from $game_message.num_input_digits_max, which has an attr_accessor and is writable.
Well that's exactly my problem. I want to call a Window_NumberInput on command, make a maximum digit and store the values being inputted on a variable.
I hope this doesn't warrant its own thread, but I was wondering how I could change distance of the cursor on the title screen when going from New Game, to Continue, etc.?
Thanks!
Are you using a script to display a cursor in the first place? I saw the screenshot of your title some time ago, so i have an idea of what you mean, but my title screen has no cursor by default.
What is padding, spacing, and how to measure the space between content and window border?
Padding is the size of the borders of a window. Spacing is used in Window_Selectable classes and is the size between the elements in your window.
You can for example just use contents.rect to get the rect where you can draw in your window.
Note that Spacing is the horizontal space between elements. Vertical spacing is defined by line_height and the position of elements in each line.
You could post the script, so other people do that for you. That's what this forum is for 😉
Try to put your code into an 'unless self.is_a?(Game_Actor)' conditional check.
I don't know exactly why, but this works and the image pops up if the enemy takes damage! XD
I changed it to 'unless !self.is_a?(Game_Actor)' and now the image pops up if the player takes damage. ^^
thank you!!
Whoops, forgot the exclamation mark. I thought I typed that in too. 😀
A simple 'if self.is_a?(Game_Actor)' check should work too. I used many unless conditions a few minutes ago in a script, that is why I wrote (or rather wanted to) the unless version.
Hahaha, I think I change it into the if version, it is more difficutl to read "if you are not not an actor" instead of "if you are an actor" XD
main thing is it works! =)
thank for asnwered my question. I want to make a set of text below and beside an image (item image with explanation beside and below it). So, to make rect of item inside a help window? I just know rect is like an area to write something, so if the item is too big, it will be resized.