Call me sad if you want, but the fact that I've been able to help facilitate that kind of experimentation has made my day. 😀
Slip into Ruby: An introductory guide to RGSS for beginners.
Learning Ruby and RGSSxIt made my day too.
Say, @Trihan, I'm having a spot of bother with the Equipment Performance Enhanced script.
To the point, I'm employing an Extra Stats script, and I'm having something of a hard time working out how to smoothly implement those stats into the system alongside the regular parameters.
To the point, I'm employing an Extra Stats script, and I'm having something of a hard time working out how to smoothly implement those stats into the system alongside the regular parameters.
Sorry to hear that, Warpmind.
What extra stats script are you using?
What extra stats script are you using?
Oh, d'oh, I forgot to add the link. >.<
I use this one - http://www.rpgmakervxace.net/topic/419-nasty-extra-stats/ - albeit slightly modified; I've got ten extra stats, as such.
I use this one - http://www.rpgmakervxace.net/topic/419-nasty-extra-stats/ - albeit slightly modified; I've got ten extra stats, as such.
That's gonna be a tough one; that script doesn't really give extra stats to equipment as such; it calculates the notetag effects when equipment is changed, but doesn't directly alter the items themselves, so it won't be easy to hook those stats into my script. I'll have to make a compatibility patch for it.
Ah, that's an embuggerance, as Terry Pratchett would have put it. -_-
I didn't actually realise the N.A.S.T.Y script worked that way. It's an interesting method, I'll give him that, but definitely makes it an embuggerance to do anything with extra equipment stats that don't involve the item being equipped.
I am open to alternative suggestions for making additional stats. 😉
Well I could make my own extra stats script...
Is it really feasible to "simply" add stats to items in that manner, though?
...Wait, come to think of it, would it be possible to make a "Default Item Stats" block like the ones for Actors and enemies? 😳
What you have to keep in mind is that behind the scenes, Ruby doesn't care one whit what the difference is between items, actors and enemies. All it sees are a bunch of classes, which have a bunch of properties and a bunch of methods. There's no difference to the interpreter between an instance of Game_Actor having a property called extra_stats and an instance of RPG::BaseItem having a property called extra_stats. It's what you then code them to do that makes the interpreter act differently depending on what kind of class it's dealing with. So to answer your question, it's a piece of piss to simply add stats to items in that manner.
Hmmm...
Tell you what, let me get home, mess around with the script, and slip you a copy to grade? 😉
I suspect I'm going to have to revise enough of the original script for a complete rebuild, in any case...
If you'd like to have a stab at it yourself, please feel free! I'll be happy to look it over for you.
Hey, Trihan, I've got a question.
I'd like to modify the menu so that the actors' names and nicknames are displayed right next to each other. You see, in my current project I want to show a character's first and last name. What do I need to change? Also, is it considered best practice to change the default script directly or make a new one? Thanks in advance.
I'd like to modify the menu so that the actors' names and nicknames are displayed right next to each other. You see, in my current project I want to show a character's first and last name. What do I need to change? Also, is it considered best practice to change the default script directly or make a new one? Thanks in advance.
Best practice is to make a new script for overwrites: keeping the default scripts in their unedited state is handy because then if you make a massive mistake you can revert to the original with a minimum of fuss.
What you want to change is the draw_actor_simple_status method of Window_Base.
What you want to change is the draw_actor_simple_status method of Window_Base.
Thanks; I'll look into it.
Having looked, I don't know which line to change...
Having looked, I don't know which line to change...
Window_Base.class_eval do
alias_method :tigersong_draw_actor_simple_status, :draw_actor_simple_status
def draw_actor_simple_status(actor, x, y)
tigersong_draw_actor_simple_status(actor, x, y)
draw_text(x + text_size(actor.name + " ").width, y, 120, line_height, actor.nickname)
end
end
alias_method :tigersong_draw_actor_simple_status, :draw_actor_simple_status
def draw_actor_simple_status(actor, x, y)
tigersong_draw_actor_simple_status(actor, x, y)
draw_text(x + text_size(actor.name + " ").width, y, 120, line_height, actor.nickname)
end
end
How many people actually can script now from the tutorials because I desperately want to learn asap.
I would not say that I can now 'script'. However, I have gone from total incompetence to being able to do simple mods without assistance. I also understand a lot, lot more what's going on when I've got a complex script call or a tricky configuration to make.
My use of the tutorials is in hiatus at the moment because of various things, but I fully intend to pick it back up again as soon as I can. I recommend them. They do what they say they'll do.
My use of the tutorials is in hiatus at the moment because of various things, but I fully intend to pick it back up again as soon as I can. I recommend them. They do what they say they'll do.
Original thread: https://forums.rpgmakerweb.com/threads/slip-into-ruby-an-introductory-guide-to-rgss-for-beginners.38900/