I've heard this asked on HIME's site back in 2022, but it was never answered. I still struggle with trying to figure out how to check exactly which follower is touched using this.touchedFollower() and tried this.touchedFollower().followers().follower() == 1 to check if the first follower touches the event, or 2 if second follower, etc. Could anyone help? Especially @Tsukihime, author of the plugin? Please and thanks!
MV HIME's Follower Event Touch
Javascript/Plugin SupportHime hasn't been active for over three years (you can highlight the member profile you created a link to).
What exactly are you trying to figure out - that is, how are you trying to use it? Because the function you mention literally returns the follower being touched.
Are you asking which follower, like how many characters behind the party leader? That would be:
That will give the follower's index in the follower array, starting from 0 being the first follower behind the party leader.
What exactly are you trying to figure out - that is, how are you trying to use it? Because the function you mention literally returns the follower being touched.
Are you asking which follower, like how many characters behind the party leader? That would be:
Code:
$gamePlayer.followers().indexOf(this.touchedFollower())
That will give the follower's index in the follower array, starting from 0 being the first follower behind the party leader.
Yes! I think that's the one, but let me test it out. Thank you! I'll reply with results soon.
I tried that code above by storing it in a variable like:
"Variable 1 = $gamePlayer.followers().indexOf(this.touchedFollower())" then tried to preview the index of the follower in a message box:
"Follower \v[1]."
After doing that, zero is what I always seem to get. Follower 0. Even if it is the 3rd or 4th follower in the party. Same result. I am at a loss here. What am I missing?
EDIT: The variable storing method used was the normal event command. No quotes were used.
I tried that code above by storing it in a variable like:
"Variable 1 = $gamePlayer.followers().indexOf(this.touchedFollower())" then tried to preview the index of the follower in a message box:
"Follower \v[1]."
After doing that, zero is what I always seem to get. Follower 0. Even if it is the 3rd or 4th follower in the party. Same result. I am at a loss here. What am I missing?
EDIT: The variable storing method used was the normal event command. No quotes were used.
Original thread: https://forums.rpgmakerweb.com/threads/himes-follower-event-touch.173470/