Hello everyone,
Is it possible to highlight an option in a menu? For example, when a character is evolving, is it possible to highlight an option to give the player a clue which should be the best choice for him the chose?
Thanks in advance.
yes, it is possible by scripting - for example there are scripts available that add a "new" symbol to items that weren't used before.
However, indicating best choice is a lot more work in scripting than just checking if an item was used before - you need to provide a list of which equipment would be better than others, and that means that you have to adapt any such script specifically to your game (which requires you to have at least a basic understanding of scripts, even if someone else writes the difficult parts of the script for you).
Thanks a lot. Actually I'm making a game for my masters thesis in computer enginering so scripting dificult things would not be a problem ;-). I just wanted to know if it this was possible or not because I must decide which engine I will be using.
Thanks for the quick aswer.
the entire engine is part of the scripts (RGSS is a Ruby-Variant), which means that theoretically you can do anything in RM, if you're willing to put in the work.
There are scripts available that turn RM into a side-scrolling platform game or into an action-RPG with on-map-battles like Diable...
This is really cool. Can you point me to some good begginer and advance tutorials for scripting in RM? That would be a huge help.
Hello again,
Currently I'm doing something different but I want the same result as before. I have a window with multiple commands (this will be answers for a survey that I'm making before the game starts) and I'm extending my class from Window_Command. When the user selects on option I want that option to be highlighted (in yellow for example). The part that I'm having difficulty with is drawing a rectangle around the option the user has selected. I know this is weird for a game but this is part of my masters thesis and if I could make the survey inside the game that will make my life easier later on since I need that information inside the game.
Can someone point me in the right direction on how to do this? I'm new to Ruby and RPGMaker so sorry if this is a very newbie question 🙂
Thanks
Looks like draw_selection_border is not defined 🙁 and yes I'm extending from Window_Command.
Is there any place where I can learn to do this? Is this ruby specific or it's RGSS?
By the way thanks for the help 😉
Ah yes, draw_selection_border is a dummy method. You'll want to use your own method to draw the border. Also that is just something I throw quickly, bound to be some errors. Window class is a RGSS object, it is not defined in standard Ruby library... there is a documentation in the RPG Maker help file.
def draw_item(index) super return if index == @last_selected_index rect = item_rect(index) draw_selection_border(rect) @last_selected_index = indexendAs for draw_selection_border,
def draw_selection_border(rect) bitmap = Bitmap.new(rect.width, rect.height) draw_rect = Rect.new(0, 0, rect.width, rect.height) bitmap.fill_rect(0, 0, rect.width, rect.height, normal_color) bitmap.clear_rect(2, 2, rect.width - 2, rect.height - 2) contents.blt(rect.x, rect.y, bitmap, draw_rect) bitmap.disposeendThis will draw a 2 pixel border inside the selection using normal text color (usually white).
You can also read more usable methods for your window in Window_Base.
It worked thanks 😉
you just need to change the line
bitmap.clear_rect(2, 2, rect.width - 2, rect.height - 2) to
bitmap.clear_rect(2, 2, rect.width - 4, rect.height - 4) so that the bottom and right lines of the box appear 🙂
Thanks a lot for your help. Where can I find the documentation for this functions, like the bitmap? Is this pure Ruby or is part of RGSS?
The bitmap is a part of RGSS, the documentation exists in the help file....
On RGSS Reference Manual -> Game Library
I'm so sorry coming with this again but is there any way to delete the box, for example, if the user selects another option after selecting one previously?
Sorry if I'm being a pain, but I'm having a really hard time googling something useful :s
I figured it out 😛 sorry about that.
For anyone also searching for this just do a
refreshif you are using the window class or you can do
contents.clearand redraw everything again