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

i'm having some trouble with rpg maker vx ace scripts status menu.
for status menu i keep getting an error that says....
Script " line 1062:type error occurred.
super classmismatch for class scene_status and this is the line that was in the script
Line1062: class Scene_Status < Scene_Base

and the hospital the one like disgaea im not sure how to get it to work is says put in under advanced in script call_hospital but idk what to do after that and im trying to make a game that uses disgaea like features alot of help would be appreciated if some one could point me to the direction of working scripts that work together and not cause a bunch of problems im literally not smart ever since i started having seizures when i was 10 years old and having seizures causes brain damage and stuff my point being you know im not smart so i really have a hard time learning things for EX scripting trying to fix them and stuff like that so yea....
$game_self_switches = Game_SelfSwitches.new should reset all self switches across the entire game, yes?
That would do it, yeah. It'll re-initialise the hash.
Okay, thank you very much 🙂
Not sure if this actually calls for it's own topic or not.

I had an issue with using Coelocanth's Crafting Script with Victory Engine Item Command Script.

It seems to be a note-tag issue, but instead of correcting and implementing syntax, I decided to go with Yanfly's Ace Item Menu and Battle Command List.

Okay, next issue; certain items in Inventory are tied to Skills that are only accessible when that skill type is usable.

Oh yes, once again, my Throwing Items are under the red light trouble spotlight.

The issue now is that without VE's Item Command, all the items go back into Inventory, and are readily accessible in battle, including the Throwing Items.

Okay, so with Ace Item Menu, using <category: Throw> as a note tag in the note boxes for throwing items, one would think that this would carry over to battle commands, but it doesn't, and that's going to ruin the experience.

I had figured that Battle Command would help, but it only allows for a specific item, NOT an item type, to be selected as a command.

Spoiler: This is what it should look like
Code:
Item Category: Potions
Item Category: Foods
Item Category: 3
...
#Item Category: Throw
But, it doesn't do that, and I don't know enough to modify it to use Categories...

I'm very frustrated. Here I am, this bloody close to magical fields of happiness, and up goes an infinitely high, infinitely wide barricade.

I have a fever of ~102; I'm doing my best here but I need some help. Thank you. :ysad:
So basically you're looking for the functionality of Ace Item Menu in battle so you can choose different categories of items in battle?
@Trihan Yes; I cannot fathom as to how Yanfly themselves hadn't implemented this.

Thank you, lots for responding as quickly as you did.
Can you provide the raw code for the script in question? I can't access mass storage sites from work and most scripters put their stuff on Dropbox or Pastebin.
@Trihan By pasting the raw code even into a spoiler, I ended up getting a 413 error.

So, attachments instead.

I attached the original scripts setup, the ones I had before switching to Yanfly's Ace Item Menu and Battle Command List, as well as the two Yanfly scripts.

Dropbox, I hate and I've never used Pastebin. Likely won't either.

Most of my uploading is to MEGA (can't really beat 50GB free storage just for signing up).
Thanks. How exactly do you want the commands/flow to go in battle for throwing items?
@Trihan Part of the functionality of the throwing items involves Yanfly's Skill Cost Manager.

Another part involves the skill being present when certain equipment is used, in this case, VE Materia is the script with this function.

Basically, I have a weapon or armor, an equip, with slots for Materia (it's not called Materia in game but let us use Materia for reference); okay, now I have a Materia that adds the Skill Type 'Throw'. Bingo. All the throwable items are listed as the appropriate skills that are tied to the items with Yanfly's Skill Cost Manager.

So, all I really am after, is to disable the throwing items as selectable items from the inventory; with VE Item Command, this was simple, but since it conflicts with Coelocanth's Crafting Script, I had to go another direction, unless you can fix the problem with VE and Coelocanth's scripts.

With Yanfly's Battle Command, it only (currently) allows for a specific item to be used as a command, rather than a set item type or category. It does allow for disabling of commands such as Item, but then what? That's where replacing 'Item' with 'Item Types set by Ace Item Menu' comes in.

Thanks for your help with this, means a lot and I can rest easier.
Do you know what's causing the conflict with VE and the crafting script?

So you either need that conflict fixed, or Yanfly's Battle Command edited to allow item types as commands, correct?
@Trihan Well, the syntax error it gives is the following:

Script 'Victor Engine - Item Commands' line 186: No Method Error occurred.
undefined method '[]' for nil:NilClass

Now, here's where it happens.

I have the crafting script set up to where it does not appear as menu commands, so I use the script calls provided (2).

So, I use an interacting event, and have it set up as a choice (Craft, Break), each choice conforming to the script call needed to perform either action. It is when these script calls are performed the error occurs (same error for either script call).

Yeah, either fix the conflict, or edit Yanfly's scripts. Or heck, both, if it pleases ya (I'm sure it does). lol :ywink:
Will I have to set up the VE script in a particular way to be able to reproduce the bug?
@Trihan It does require VE Basic Module in order to do anything.

I forgot to give you that one.

Other than that, I don't believe that the script will need to be set up in any particular way.

However, I also uploaded the modified script just in case.
Okay, that should be all the info I need. I'll take a look when I have time.
@Trihan Thank you. Send me some Whizzy Mail when you figure out something (lol a PM). 🤣
PMing you.
Hi guys, quick question. I'm making a custom menu system and on the main menu screen, I want status icons to be sort of animated. So each actor has a bubble that rotates between all current status icons (rather than being a row as in the vanilla menu). I've knocked up some pseudo-code I think will work but I'm not sure how I would time the animations. I know I could just set up a basic counter that will progress the icon on display once it reaches a certain limit but that would be an artibrary number of clock cycles and I'd rather do it so it's like, every 2 seconds, or something. Can I use $game_timer to time the frames? I could I just take a time reading from the OS and then advance it once two seconds has expired?
If you want it to change every two seconds add 1 to a variable in the window's update method, then check whether it's equal to 120 and if so change the icon graphic and reset the variable to 0.

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