Hiya! I need a script call for a conditional branch that checks:
Is Actor X in Party Position Y, If so the Conditional Branch is positive.
Where the Y position is a predetermined variable.
Is this possible?
Position ID Script
● ARCHIVED · READ-ONLY
-
-
control variable allows you to get the ID of the actor in any given party position (in the game data section of that command), and then use conditional branch to check if that ID is the number you want.
-
This would work for what i'm doing, problem with this is that in the Control variable. The members you can choose from seems to be only up to 8, and i need more than that.control variable allows you to get the ID of the actor in any given party position (in the game data section of that command), and then use conditional branch to check if that ID is the number you want.
-
In that case you better explain in more detail what you're doing and especially what plugins you're using for managing the party - because the default formation screen is rather cumbersome for large parties.
Because even with hundreds of actors in a game, most players rarely use a party larger than 8 - and having the reserve require to be on specific positions is not something that regular players expect to handle.
yes, the script equivalent of that event command can handle that - you can check it out in the topic about the script equivalents. But this idea and limit is rather rarely used so I'm wondering if you haven't gotten something wrong here... -
In that case you better explain in more detail what you're doing and especially what plugins you're using for managing the party - because the default formation screen is rather cumbersome for large parties.
Because even with hundreds of actors in a game, most players rarely use a party larger than 8 - and having the reserve require to be on specific positions is not something that regular players expect to handle.
yes, the script equivalent of that event command can handle that - you can check it out in the topic about the script equivalents. But this idea and limit is rather rarely used so I'm wondering if you haven't gotten something wrong here...
Ah, Yes. So I'm not going to use any default party manager. The main menu is mostly maps with events, with some script calls to open menu's like, items, status. etc. This is because the battle system is gonna be that similar to a tactics game (Tactics ogre, Fire emblem. etc).
So there are gonna be a lot of possible allies to gain.
The menu will show event characters of who is in the party with their character images, not face. And when choosing one of them you get a menu to show their status, equip or skill scene. This is all figured out, however i need one more option which is gonna be a Growth grid, where you spend points to gain certain aspects for the character.
Since the character events are set to show what character is in the party in order (The first one to the left is always main character, next one is member #2, then #3 and so on), it updates automatically if a character is dismissed/gained or replaced by another in that slot. So i need a way to get; Is That actor in that position in the party.
Edit: Looking at it, specifically what i would need is a script to call the ID of a party member in a slot, and set it to a variable. -
Edit: Looking at it, specifically what i would need is a script to call the ID of a party member in a slot, and set it to a variable.
Code:Where "slot" is a numerical value between 0 and the size of your party minus 1 (it starts at zero, so the party leader is zero, the second member is 1, etc.)$gameParty.members()[slot].actorId() -
Code:Where "slot" is a numerical value between 0 and the size of your party minus 1 (it starts at zero, so the party leader is zero, the second member is 1, etc.)
$gameParty.members()[slot].actorId()
Thank you! Works perfect. -
as an Addendum, i also need a script to open a party members scene, i had;
Code:$gameParty._menuActorId = 3; SceneManager.push(Scene_Status);
But that opens Actor number 3's scene if that person is in the party, no matter the spot.
Is there a script to open a scene for whomever is in slot 2,3,4 and so on? -
You can use the same script as before:
Code:$gameParty._menuActorId = $gameParty.members()[slot].actorId(); SceneManager.push(Scene_Status); -
You can use the same script as before:
Code:$gameParty._menuActorId = $gameParty.members()[slot].actorId(); SceneManager.push(Scene_Status);
Thanks again! Everything is working as intended now.