Thanks for your help Venka. Everything seems to be working now.
Ruby/RGSSx questions that don't deserve their own thread
RGSSx Script SupportI'm working with Yanfly's Party System script. I want to have 10 actors in battle, but I only want the first 5 of them displayed on the bottom. However, if I set the maximum to 10, the actor's faces are scrunched down to half the size. I've tried editing the script myself, but I don't really know what I'm doing.
Please start a new thread in RGSSx Script Support. This thread is for generic questions, not for assistance with custom scripts.
Also include a link to the script.
Also include a link to the script.
Does anyone know how to make it so the music set to play in a sub menu can change back to the last music playing upon exiting the sub-menu and returning to the menu?
I managed to make it change upon returning to the game map, but not the game menu (so the sub-menu music keeps playing even after I exited it and returned to the menu, but ends upon entering the map).
I managed to make it change upon returning to the game map, but not the game menu (so the sub-menu music keeps playing even after I exited it and returned to the menu, but ends upon entering the map).
Please don't post the same question in multiple topics. It just makes it hard for people to help you because there are TWO places where help is being offered, and it gets confusing.
Is there any way to move the commands in a command window down somehow?
I miraculously managed to make my first popup command window, fully functional.
But I want to show a general text above the commands, and the commands themselves would come below the general text.
I want both the general text and the commands to be in the same window.
So, is this possible somehow? Can anyone show me the way to do it? Or just give some directions? *-*
Edit:
Managed to find it, yay! 🙂
It was in the 'item_rect(index)' definition.
I miraculously managed to make my first popup command window, fully functional.
But I want to show a general text above the commands, and the commands themselves would come below the general text.
I want both the general text and the commands to be in the same window.
So, is this possible somehow? Can anyone show me the way to do it? Or just give some directions? *-*
Edit:
Managed to find it, yay! 🙂
It was in the 'item_rect(index)' definition.
Does RGSS support Ruby's exception handling?
what do you mean exception handling? Like doing your own things upon error?
RGSS has a begin rescue clause which works same as Visual Basic's Try Catch clause
RGSS has a begin rescue clause which works same as Visual Basic's Try Catch clause
I'm not familiar with Visual Basic at all, but what you're saying is that RGSS supports the raise-rescue, and all the exception classes?
Not sure about all the exception classes but at the very least it supports begin-rescue (it uses begin rescue)
What gets called when you ALT+F4 or click on the 'X' to close the game window? Trying to close an open file handle before the program exits, but can't quite figure out where I should be doing this to guarantee it actually gets closed.
Edit: Actually, I guess it doesn't even matter, even if I could run code there, people can still open the task manager and kill the process or something. Probably best to just close as soon as I'm done writing to files.
Edit: Actually, I guess it doesn't even matter, even if I could run code there, people can still open the task manager and kill the process or something. Probably best to just close as soon as I'm done writing to files.
It supports begin / raise / rescue / else / ensure, just like normal Ruby.
I don't believe you can monitor for that in code, just like you can't monitor for window losing focus.
Yeah, from my basic knowledge of a few other languages, the exit code is embedded to the .exe itself. You'd either need to edit the .exe which would breach the EULA or capture it maybe using an external method or something. I'm not sure if I'm remembering correctly but I think I saw a thread about that actually..
Yep. You'll want to close as soon as you're done writing in any scenario- since the exit functionality kills everything (as opposed to calling exit code in RGSS)- rather, if there's an exit function in RGSS, all it'll do is call the native exit code, which kills everything.
What is the script call to figure out who used an item in the game menu?
In the game menu, nobody uses an item. You go straight to the Items menu without having to select a party member to use the item. Skills is where you have to choose an actor first.
Or do you mean how to tell which actor an item was used ON?
Or do you mean how to tell which actor an item was used ON?
Sorry, I meant which actor an item was used on.
$game_party.target_actor 🙂
Hmmm...that's close to what I need, but I need the actor id of the target.
Edit: Think I found it. Didn't know it was giving me the entire actor class with what you stated.
Edit: Think I found it. Didn't know it was giving me the entire actor class with what you stated.
$game_party.target_actor.id
Original thread: https://forums.rpgmakerweb.com/threads/ruby-rgssx-questions-that-dont-deserve-their-own-thread.150/