Original Source
- Original title: Need help updating my menu!
- Original author: squaddle
- Original date: June 27, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/need-help-updating-my-menu.41642/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support
Summary
(Using rpg maker vx ace, yanfly engine) Hi everybody, I've got myself a little stumped in regards to how to update the player's menu I'm making a game where there's only one 'main' party member, who is accompanied by a single follower, who can be swapped out. Basically what I've done is I've rebranded the main player's subclass to act as a sort of jury rigged follower system... Selecting a subclass (using Yanfly's Class system) runs a common event script that also changes whatever party member is currently following the main...
Archived First Post
Hi everybody, I've got myself a little stumped in regards to how to update the player's menu
I'm making a game where there's only one 'main' party member, who is accompanied by a single follower, who can be swapped out. Basically what I've done is I've rebranded the main player's subclass to act as a sort of jury rigged follower system... Selecting a subclass (using Yanfly's Class system) runs a common event script that also changes whatever party member is currently following the main character and unlocks a new set of skills specific to that follower that the player can now use.
Specifically, the main menu screen doesn't update the new ally characteristics whenever they're switched out. I need to exit the menu and re-open it before the visual representation of the player's stats change to their correct values, which is kind of bad.
I assume its because Yanfly's menu doesn't really have a refresh method, so it only truly updates when it's closed and reopens. Problem is I don't really know how to do this!
------------------------------------------------------------------------------------------------------------------------
EDIT: Here's a video showing what I'm talking about (please turn annotations on!)
------------------------------------------------------------------------------------------------------------------------
Scripts used:
slightly modified Yanfly Menu (original YEA menu file is found here)
#-------------------------------------------------------------------------- # on_class_ok #-------------------------------------------------------------------------- def on_class_ok Sound.play_equip class_id = @item_window.item.id maintain = YEA::CLASS_SYSTEM::MAINTAIN_LEVELS hp = @actor.hp * 1.0 / @actor.mhp mp = @actor.mp * 1.0 / [@actor.mmp, 1].max case @command_window.current_symbol when :primary @actor.change_class(class_id, maintain) when :subclass @actor.change_subclass(class_id) #this calls a common event that changes the party member following us #and lets the player use a new set of secondary skills. $game_temp.reserve_common_event(class_id) else @item_window.activate return end @actor.hp = (@actor.mhp * hp).to_i @actor.mp = (@actor.mmp * mp).to_i @status_window.refresh @item_window.update_class end
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...