If my game doesn't differentiate between types of skills, how can I alter the game menu's Skills page to reflect that? By default, the Skills page has four windows: the skill description at the top, then below that a window on the left listing skill types and a window on the right showing the character's status. Then there's the bottom window listing all skills of the selected type that the character knows. For a game that only has one skill type, how could I get rid of that middle-left window and just have the skill description, the character's status, and the full list of their known skills? Is there a simple fix for that, or would I need a script of some kind?
How can I change the menu if my game has only one skill type?
RGSS3 Script Requestsyou'll need a script for that, there are already several available on the master script list.
I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
I've moved this thread to Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
I've been searching since before starting the topic, but all of the potentially relevant scripts I can find seem to be devoted to making the skill system more complex rather than less complex. Would it be possible to remove skill types with Yanfly's Ace Skill Menu script (since I'm already using several other Yanfly scripts)? I'm looking at it, but maybe I don't understand how to use it.
You can try this script I wrote:
But note that this will most likely not work with any other scripts dealing with the skill menu, because I literally removed that skill type selection window, like you wanted.
If you don't use any other scripts modifying the skill menu, you should be safe to use this, I guess.
class Scene_Skill < Scene_ItemBase
def create_command_window
# Removed!
end
def create_status_window
y = @help_window.height
@status_window = Window_SkillStatus.new(0, y)
@status_window.viewport = @viewport
@status_window.actor = @actor
end
def create_item_window
wx = 0
wy = @status_window.y + @status_window.height
ww = Graphics.width
wh = Graphics.height - wy
@item_window = Window_SkillList.new(wx, wy, ww, wh)
@item_window.actor = @actor
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.set_handler🙂ok, method🙂on_item_ok))
@item_window.set_handler🙂cancel, method🙂on_item_cancel))
@item_window.set_handler🙂pagedown, method🙂next_actor))
@item_window.set_handler🙂pageup, method🙂prev_actor))
@item_window.select_last
@item_window.activate
end
def on_item_cancel
return_scene
end
def on_actor_change
@status_window.actor = @actor
@item_window.actor = @actor
@item_window.select(0)
@item_window.activate
end
end
class Window_SkillList < Window_Selectable
def include?(item)
item
end
end
class Window_SkillStatus < Window_Base
def window_width
Graphics.width
end
end
def create_command_window
# Removed!
end
def create_status_window
y = @help_window.height
@status_window = Window_SkillStatus.new(0, y)
@status_window.viewport = @viewport
@status_window.actor = @actor
end
def create_item_window
wx = 0
wy = @status_window.y + @status_window.height
ww = Graphics.width
wh = Graphics.height - wy
@item_window = Window_SkillList.new(wx, wy, ww, wh)
@item_window.actor = @actor
@item_window.viewport = @viewport
@item_window.help_window = @help_window
@item_window.set_handler🙂ok, method🙂on_item_ok))
@item_window.set_handler🙂cancel, method🙂on_item_cancel))
@item_window.set_handler🙂pagedown, method🙂next_actor))
@item_window.set_handler🙂pageup, method🙂prev_actor))
@item_window.select_last
@item_window.activate
end
def on_item_cancel
return_scene
end
def on_actor_change
@status_window.actor = @actor
@item_window.actor = @actor
@item_window.select(0)
@item_window.activate
end
end
class Window_SkillList < Window_Selectable
def include?(item)
item
end
end
class Window_SkillStatus < Window_Base
def window_width
Graphics.width
end
end
But note that this will most likely not work with any other scripts dealing with the skill menu, because I literally removed that skill type selection window, like you wanted.
If you don't use any other scripts modifying the skill menu, you should be safe to use this, I guess.
Thank you! I'll give it a shot. What page does it go on?
You mean, where to put it on the script list?
Putting it immediately below the default scripts should be the best. So, below the default scripts, but above other custom scripts.
Putting it immediately below the default scripts should be the best. So, below the default scripts, but above other custom scripts.
Okay, I've just tried it, but opening the skill menu I got an error apparently having to do with Yanfly's menu engine. Here's the relevant section of that script (the error specifically referred to line 503: "@command_window.y = @help_window.height").
Any ideas on how to fix this? Actually, it might be possible to achieve what I'm trying to do by modifying the Yanfly script alone.
Any ideas on how to fix this? Actually, it might be possible to achieve what I'm trying to do by modifying the Yanfly script alone.
Just comment out any lines which include @command_window. You don't have a command window now, so it can't be re-positioned, that's why you get the error.
That seems to work. Thank you very much!
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-menu-if-my-game-has-only-one-skill-type.61709/