Lead Actor Conditional Branch

Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
Let's say I'm examining a statue, depending on the person that's leading the party, the dialog could be different.

What script would I use in a conditional branch for the game to check the actor in the lead?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
$game_party.members[0] would give you the party leader actor object
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
$game_party.members[0] would give you the party leader actor object
I tried using some conditional branches but they don't seem to work. Since the party has multiple character, I'm looking for the script to check the party's leader. Or did I do something wrong?

EDIT:

It was my fault, It works perfectly fine, thank you. :)

EDIT 2:

Actually, after trying it out with a different actor as the leader of the party. It still showed the first actor's dialog instead of the second's.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
How are you checking it? Please post a screenshot of the event.
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
Change the script in your conditional branch to 

"$game_party.members[0] == $game_actors[x]"

where x = the actor's location in your actor database, eg "1" for Eric, "2" for Natalie. etc.
 
Joined
Apr 17, 2013
Messages
283
Reaction score
5
First Language
English
Primarily Uses
Change the script in your conditional branch to 

"$game_party.members[0] == $game_actors[x]"

where x = the actor's location in your actor database, eg "1" for Eric, "2" for Natalie. etc.
That works perfectly, thank you. :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,030
Members
137,566
Latest member
Fl0shVS
Top