thepsyche

Regular
Regular
Joined
Nov 16, 2016
Messages
415
Reaction score
220
First Language
English
Hi there,

I'm trying to figure out how I ask:

"If user troop index is X"

I have an enemy skill that can be used by multiple enemies in the troop, but it's crucial I determine what troop index the user is.

Note that I don't just want the enemy ID, I am looking for the user's troop index specifically.

Thanks!
 

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
7,738
Reaction score
3,159
First Language
Dutch
Primarily Uses
RMMV
not sure if it can cause an issue, but it as something like: $gameTroops.member[2]
I believe, not entirely sure. (member or members) or neither.

as the issue it might have, if you target enemy 4, and next battle has 2-3 enemies,
you need to ommit the 4th if not exist as it could crash the game.
 

Latest Profile Posts

If I receive a lot of feedback on my new Phil Alone - Game Dev Book DLC page here in this forum, I will give some free keys to the DLC!
Me: So close to finishing what I'm working with.
Baby: Yeah....Imma need your time, all of it.'
Me: B...but..
Baby: ALL....OF....IT.
You can use tweening for attack animations to work with patterns. I knew scale, blending, etc. worked...but I somehow mislooked patterns which saves a lot of time.
Still working on this one but I have a general layout idea for the guild

Forum statistics

Threads
134,719
Messages
1,250,044
Members
177,476
Latest member
maikanacht
Top