Turning screen_x into a method seems to have done the trick! I would never have thought about turning screen_x into a method like that.
I am kind of curious why "index" works in there, instead of being used in another method - but maybe it has something to do with the "initialization"?
Like maybe that runs before the party is set up in the index?
Because screen_x would be called in Sprite_Battler. If they're called, it's true that they're already in party member array thus it won't return nil.
You may want a different implementation though if you want to make your battle move here and there like many popular sideview battle. So keep working on your previous idea could be good too.
I was wondering, a lot of the times when I edit classes - with really big methods, I copy/paste the entire method, just so I can change usually one line of code to call a method added to the class - is there way to insert a method into a classes method without overwriting the entire thing?
Or is it just better practice just to take everything not nailed to the floor - and just edit the few lines?
Ok - I think I got a hang on it, I managed to get it going for a turn_end call, which is good, since I imagine a lot of scripts like to overwrite that.
Hopefully I'll be able to get it working though the item_use scripts and etc. Since those are the really long boys.
Thanks so much Sixth!
edit:
I meant, the sprite_effect scripts - which it worked like a charm, so now all the custom sprite effects / update effects - live in their own little pocket, so thanks again! It's so much easier to swim through now.
Is there a way to change z of either animations or battle status window so that animations would be above actor faces?
(Using Yanfly Battle Engine)
Is there any way to execute a specific command in the command list (that you don't hover over) that you can immediently activate by pressing a button (through conditional branch means) in a script call?
By that I mean, it's your characters turn and then by pressing the A button on your keyboard, you activate Guard.
It's for a more reflex based ATB system and I don't want the player to go two selections down to activate the guard command, because convenience.
Using VX (Looking it up on Ace also doesn't hurt, as I can just translate that easily onto VXs side of things, if there is means of doing so)
Not really a "please help" per say - but just kind of curious about something I've noticed.
When I use "(.*)" in Regex, why does it create a ">" at the end - even when the beginning doesn't have it?
I honestly would prefer if I didn't need the <> at the end since I feel the note box looks cleaner without them, but I'm ok with needing to use them.
Also I've noticed that in a lot of scripts - they use a more complicated regex, when this seems to work super easily. So I'm not sure if there's a downside to using "(.*)" other than it kind of looking like a butthole?
That makes sense.
Would anyone know if it's possible to get an actor or battlers note-tag from the battler class?
I'm trying to do a few things, involving note reading - and I pretty much just copy/paste them between the actor and enemy classes, because their the same really. I feel it'd just be easier to manage if I could just put it in the battler class itself, but it doesn't seem to know what "note" is.
Iirc, accessing Actor's class note is as easy as using $game_actors[id].class.note.
Enemy doesn't have class by default, so you figure that out.
I think, he meant class as Ruby class (Game_Actor/Game_Enemy/Game_Battler/etc), not the class from database.
For some weird reason, the default code uses a different method name to get the database information for the actor and enemy classes.
This means that you are better off doing them separately, otherwise you would need to have another check to see if it's an actor or an enemy and read the note-tag accordingly.
The method for getting the database information for actors is called actor inside the Game_Actor class.
The method for getting the database information for enemies is called enemy inside the Game_Enemy class.
So, to get their note-tag data, you can do actor.note in Game_Actor or enemy.note in Game_Enemy.
Yeah, it was for the Script Classes, I'm tweaking a "battler sprite change" script and I thought it'd be easier to manage just from Game_Battler. But Yeah, I'm gonna go with just keeping them separate for now - I want to keep it simple. So it's probably better to do that.