Status
Not open for further replies.

captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
Is there a way to make certain actions only doable if a particular character is in the lead? 

Here's a few examples of what I'm talking about: 

  *You can only talk to animals if ranger Tiko is in the lead. 

  *You can only pick locks if thief Jean-Luc is in the lead. 

  *You can only read ancient texts if sage Duran is in the lead.  

Is this doable?  I know you can make conditions based on whether or not a character is in the party, or whether or not a character is a certain class, but can you make a condition based on whether or not a particular character is the lead or "player" character?
 

MektiKwiiger

Veteran
Veteran
Joined
Sep 29, 2013
Messages
132
Reaction score
29
First Language
Norwegian
I'm pretty sure I've seen this on the forums earlier, but I don't remember quite where it was, sorry.

I think it was a conditional script call, but I think you can get the desired result also if you manage to tie the leadcharacter to a variable.
 
Last edited by a moderator:

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,942
Reaction score
1,332
First Language
English
Primarily Uses
RMMV
This can be used in two easy steps:

Step 1: Setup an event on the map.  Make sure it is set to parallel process.  Now, under the command list, set a Control variable. Choose the Game Data option and choose the Party option, then select Party Member 1 (the first choice on the dropdown list).

Step 2: Add conditional branches on all events you want to be Actor Specific.  You'll look for when the variable is a certain number. This number is equal to the Actor's ID.

In the database the actors are in a list. The first actor on the list has ID of 1, next has ID of 2, and so on.  So, set the condition branch to look for when the Variable you setup is equal to a certain actor's ID.

Example:  Actor ID 1= Eric,  Actor ID 2= Natalie

                 The event that represents Nataie's mom will only give you an item if Natalie is the leader.

                 In the event, setup Condtional Branch: Variable [001 Leader ID] == 2

Just setup your conditional branches as normal.  Now, when the player switches the leader of the party, the events should do different things.
 

ElementalLight

Resident Anime Junkie
Veteran
Joined
Apr 2, 2014
Messages
249
Reaction score
57
First Language
english
Primarily Uses
RMVXA
i would just use a conditional branch to check if there in the party i dont know if you can check to make sure there the Leader 
 

whitesphere

Veteran
Veteran
Joined
Mar 14, 2014
Messages
1,688
Reaction score
784
First Language
English
Personally, I don't think it makes sense, from a story perspective.  Let's say I'm going somewhere with my group of friends.  And we all come up to a door whose lock we need to pick.  If a friend, say, Charlie can do it, he'd just walk over to the lock and pick it, even if I were the leader of the group.  Why would Charlie not pick the lock merely because he's not the designated "leader"?

The only time I think it might make sense from a story perspective is when talking to NPCs.  Then, technically, we could say the "leader" is the designated spokesperson so s/he then speaks for the entire group.  That might impact how the NPC dialog goes...

I remember Final Fantasy 3 doing precisely that and didn't like that idea there, either --- that your entire party could only pick a lock if a Thief character was in the first slot.  It just didn't make sense to me.
 

dinhbat3

Veteran
Veteran
Joined
Feb 5, 2014
Messages
184
Reaction score
31
First Language
English
Primarily Uses
You can do a script call to check the leader without using a variable:

$game_party.leader.id == x
 

Mouser

Veteran
Veteran
Joined
Aug 19, 2012
Messages
1,245
Reaction score
266
First Language
English
Primarily Uses
Personally, I don't think it makes sense, from a story perspective.  Let's say I'm going somewhere with my group of friends.  And we all come up to a door whose lock we need to pick.  If a friend, say, Charlie can do it, he'd just walk over to the lock and pick it, even if I were the leader of the group.  Why would Charlie not pick the lock merely because he's not the designated "leader"?

The only time I think it might make sense from a story perspective is when talking to NPCs.  Then, technically, we could say the "leader" is the designated spokesperson so s/he then speaks for the entire group.  That might impact how the NPC dialog goes...

I remember Final Fantasy 3 doing precisely that and didn't like that idea there, either --- that your entire party could only pick a lock if a Thief character was in the first slot.  It just didn't make sense to me.
I don't know. I thought it was nice that we couldn't set off mines if Mira was in the lead in KotOR II.

It all comes down to execution. Done well, it adds to the game. Done poorly...
 
Last edited by a moderator:

Dragon Brother

Survive, Adapt, Infest.
Veteran
Joined
Dec 30, 2015
Messages
102
Reaction score
133
First Language
English
Primarily Uses
RMVXA
I believe thanks are in order for dihnbat and Uzuki, I was playing BOF3 the other day and noted that a character, Rei, was able to pick locks and nobody else, I spent at least a day total trying to work it Myself, 3 hours scouring the SE for potential anwsers and 2 hours searching for scripts to this, then I found this! makes things easier when there is a community of knowledgable folks around eh, Captain? In closing "doesn't this just beat all?"
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,245
Reaction score
9,013
First Language
English
Primarily Uses
RMMV

@Dragon Brother , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,104
Messages
1,104,611
Members
153,124
Latest member
pirocudo341
Top