Counting followers

Dendibar

Villager
Member
Joined
Sep 13, 2016
Messages
5
Reaction score
0
First Language
German
Primarily Uses
Hi,


I'm wondering if it is possible to count the party followers aswell.


Right now I can only count the partysize, but not the actual followers.


For example: my partysize is 8 but only 3 of them are following the leade (active partymembers).


now i trigger an event (lets say a door) but it should only open if the number of my followers is 3.


I'm pretty sure its possible, and im trying to figure out how, but i hoped asking may lead me to this


a little bit faster ;)
 

RubbyDukky

One of Rem's Many Husbands
Veteran
Joined
Mar 7, 2014
Messages
45
Reaction score
22
First Language
English
Primarily Uses
RMMV
I'm not that knowledgeable about eventing at the moment, but one way you could do it is keep track of the number of followers with a variable, then check that variable with a conditional branch. However, there's probably an easier way to do it.
 

Dendibar

Villager
Member
Joined
Sep 13, 2016
Messages
5
Reaction score
0
First Language
German
Primarily Uses
"one way you could do it is keep track of the number of followers with a variable"

okay, but how do I do that? I mean i obviously need a script that counts the followers. But I don't know how to do that :-/
 

wintyrbarnes

Jack of a Few Trades
Veteran
Joined
Aug 12, 2015
Messages
93
Reaction score
62
First Language
English
Primarily Uses
The easiest way to keep track with a variable is to set the variable whenever a new character joins the party or a character leaves. In whatever event that happens in, just use the Control Variable tool to add/subtract to a specific variable as needed. 


These two posts have more direct answers, no plugins required:


Post 1 


Post 2
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
969
Reaction score
807
First Language
English
Primarily Uses
N/A
There's an easier (lazier?) way.


Set a variable to this script snippet (or just use this script snippet somewhere)


It gets the current number of visible followers.

Code:
$gamePlayer._followers.visibleFollowers().length
 

Dendibar

Villager
Member
Joined
Sep 13, 2016
Messages
5
Reaction score
0
First Language
German
Primarily Uses
Thank you guys / girls!


That's exactly what I was looking for!


:)

I'm so happy seeing this finally working like intended!
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top