Ruby/RGSSx questions that don't deserve their own thread

How can I remove the MP displayed whenever I open my menu? Also, I am using Shaz's bypass of the menu and key items, where it only shows the Item and Game End. What I want next is that to remove the displaying of gold and MP. So what happens is that i only want the menu to show the actor's name and face and his HP. Is there also a way to make them placed in the center and cut the excess window it shows?

PS: Also the Level, I want to remove it.
What would i need to add to get an enemy hp and mp to update when i attack the enemy?

At the moment it shows the starting out hp/mp and never refreshes.
it updates... it's just that the script that ur using doesn't... so your question is really specific to the script that ur using...
 
okay i figured it out with some help but now it's causing my Yanfly core to error. (SOB! F%^!) 
 
It's working
but when all the enemies die I get an error (on battle exit)
 

Script 'YEA - Core Engine' line 693: NoMethodError occurred.
undefined method for 'hp' for nil:NilClass
 
 
 This is line 693 btw

def hp_color(actor) return knockout_color if actor.hp == 0 #Line 693<<<<--Here return crisis_color if actor.hp < actor.mhp * YEA::CORE::HP_CRISIS return normal_color endEverything was fine until I had to add to the scene battle RTP Script to refresh the enemy display window

#-------------------------------------------------------------------------- # * Update Frame (Basic) #-------------------------------------------------------------------------- def update_basic super $game_timer.update $game_troop.update @spriteset.update update_info_viewport update_message_open @target_window.refresh #<<<<<< Added end Was wondering if I missing one of the YF Bug Fixes or something but Archeia Nessia wasn't online at this time.
Shin, you've got two threads for this, and if you're writing your own battle hud script, it certainly doesn't come under "questions that don't deserve their own thread". Please stick with your other thread for these questions, not here.
One question, in which of the scripts should I manipulate or in what way in a script should I do in order to:

1. Lock the leveling system wherein even if my character levels up, the game engine won't raise the values of my character status.

2. Hide the Level number in my status whenever I press the Menu.
1. Lock the leveling system wherein even if my character levels up, the game engine won't raise the values of my character status.
If you don't want stats to change across levels, just set up your classes to have the same stats across each level.

2. Hide the Level number in my status whenever I press the Menu.
Window_Status.
Okay, another question. Is there a way in event script call wherein I can randomize a number from say for example range of 10-230. The afterwards, the game would give me the item with the same id of the result? It goes like this, say for example i found a chest and tried to open it. the chest would randomize from 10-230, then after getting the result of that randomization, returns me the item of the same id?
Code:
item_id = (rand(221) + 10)
Randomises a number between 0-220 then adds 10, giving you a random number between 10-230
item_id = (rand(221) + 10)Randomises a number between 0-220 then adds 10, giving you a random number between 10-230
Thanks. But doesn't that make me go branch down 10 - 220? How can I make a function that gives a random item with the same id as the number?
item_id = (rand(221) + 10) how_many = 1$game_party.gain_item($data_items[item_id], how_many)No, it will give you a value between 10-230. They key is the `+ 10`.rand(221) WILL give you a value between 0..220. That means the minimal value you can receive is 0, add 10 to that and your lowest value is 10. The maximum value you can receive is 220, but add 10 to that and now your max is 230.

Thus

(rand(221) + 10) ~ Gives you an Integer Value between 10..230
item_id = (rand(221) + 10) how_many = 1$game_party.gain_item($data_items[item_id], how_many)No, it will give you a value between 10-230. They key is the `+ 10`.rand(221) WILL give you a value between 0..220. That means the minimal value you can receive is 0, add 10 to that and your lowest value is 10. The maximum value you can receive is 220, but add 10 to that and now your max is 230.

Thus

(rand(221) + 10) ~ Gives you an Integer Value between 10..230
Thanks for the answer. By the way I was talking about the old method wherein I need to branch down conditions starting from 10 to 230 😉

I'll use this and try to make a script out of it...let's see if it works. Thanks for your time.
I have a quick question about VX ACE script commands. What script command would I use in the to force the game to redraw the battle status window with all the character's portraits and hp during battle? I figure its the refresh method in Window_battlestatus, but I have no clue on how to call it from an event.
I have a quick question about VX ACE script commands. What script command would I use in the to force the game to redraw the battle status window with all the character's portraits and hp during battle? I figure its the refresh method in Window_battlestatus, but I have no clue on how to call it from an event.
Code:
SceneManager.scene.instance_variable_get(:@the_window_name).refresh
Fill in the details and conditional checks to make sure you're actually in battle, etc.
Thanks for the answer. By the way I was talking about the old method wherein I need to branch down conditions starting from 10 to 230 😉


I'll use this and try to make a script out of it...let's see if it works. Thanks for your time.
You don't need to make a script out of it. Just put that into a Call Script command - copy and paste it. You don't have to figure anything out.
Just want to ask this question about the follower system of Ace though.

If you are going to do a jumping event and you have one or more followers, the problem that hangs me out is that they don't follow the main player when he/she jumps. By any chance, is there a way or a location in the main script to change the behavior?
Galv wrote a code snippet to allow followers to jump.
One more question: Can you copy the Airship in an event or script method where it lets you fly or mimics the airship's motion and function but you're not using the airship but just your character itself?
Can you explain why you'd want the player to be able to move and act like the airship, but NOT be using the airship? Only reason I can think of is if it's a cutscene where the player has no control, but something about your question makes me think you WANT the player to be able to control it.


Anyway - just use Change Actor Graphic to change your character (or all characters, if they can swap leader while this is happening) to the airship sprite, then another one to change back again afterwards.
He wants the player to fly.

Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/