I just provided that in another thread - maybe the RGSSx Questions that Don't Deserve Their Own Thread thread?
Try $game_party.menu_actor_id
I don't have Ace with me right now, so that might be not quite right. But if you go to Game_Party and look at the initialize method, it'll be set in there.
Thanks Shaz! I took a look and came up with two possible solutions, but I'm not sure which one to use.
$game_party.menu_actor or $game_party.target_actor (I need to get all of the data attached to the actor, so I removed "id")
They both seem to work, but I'd like to know what the differences are (if any) before I move forward.
$game_party.menu_actor is the actor object who is using the item or skill (so $game_party.menu_actor.id will be the actor's id).
$game_party.target_actor would be the actor object that the item or skill is being used on, if there is one (so $game_party.target_actor.id will be the actor's id). I didn't even know that one existed 🙂
If the actor uses the skill or item on himself, or the scope is "the user", they will both be the same.
Ah, I see what's going on (now that I'm home and have Ace again).
@menu_actor_id is the variable it's stored in, but it's not an attr_reader, so you have to use the menu_actor method to get it. So $game_party.menu_actor will give you what you need. I thought you were just after the id, not the whole object.
Also, these will work from the standard menus. For the battle system, you would need different variables.
That'll do. The battle system is already covered. Thanks again Shaz.
Thanks Bex. I have no way to test right now, but that seems to be the solution. 👍
Hi,
I was wondering if there is a way to force an event or map refresh from the script call.
P.S.: Thank you for the post with the script calls.
Is there a way to check if the player is in battle with a script call on a conditional branch?
Nevermind, found it. It's $game_party.in_battle
I want to try making a custom battle system with multiple sprites/actions(think of something like final fantasy, where when a party member is hit by an tack, a one frame animation switches in and out, etc)
How do i script call individual frames in a character sheet? I've seen multiple posts and tutorials saying it goes "0,1,2..." but is it arrayed like
0 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 110 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 11 0 1 2 | 3 4 5 | 6 7 8 | 9 10 11or
| 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 || 0 1 2 | 0 1 2 | 0 1 2 | 0 1 2 |
or
|0 1 2 | 3 4 5 | 6 7 8 | 9 10 11||12 ...And does it carry over to $ spritesheets?
Edit: And i just remembered too, does the $game_actors[id].skill_id[0] refer to the first skill the actor learns, to the first skill in the skill list or to the first skill in the actor's list?
For a conditional branch I need to be able to check if actor #3 is party leader or not. This is on map, not in battle.
Could someone give me the script call for this?
Thanks.
Control Variable 1 = Game Data than Party, than Member1 Actor ID
Conditional Branch Variable 1 = Id you want it to be
if yes: stuff happens
else: no stuff happens
Thats the Eventcommand Way, but maybe someone can give you the script equivalent for this, iam still learning this so i
cant remember from my brain at the moment.
@Bex
Thanks for the suggestion. I had considered using the event setup you describe, but I think the script call would suit my needs better.
How do i call for an individual frame in a character sheet?
@Bex
Maybe that could work. I would ave to try it and get back to you to.
What is the script call which would identify if the party is on a tile set to terrain damage? I'd like to use this in a conditional.
Thanks.
$game_map.damage_floor?($game_player.x, $game_player.y)Ugh! It's going to be so hard to answer questions on here without accidentally swapping between RGSS3 and JS or getting mixed up with the Ace/MV variable names!
That would look at the party leader, not the followers.
Party leader is fine.
Yes, I can foresee lots of people accidentally using the wrong version.
Thanks.
I checked the script call and find things we can instantly center the screen using $game_player.center(x,y) in which x and y can be event position, player position or any given number. What I am curious about now is I want to make a scroll screen before it got centered. Any idea how to make it smoother? Because I did it with normal speed scrolling, but it seems a bit rough at last.