Calling Enemy Index as Variable/Control Enemies

moldy

Veteran
Veteran
Joined
Nov 15, 2015
Messages
193
Reaction score
29
First Language
English
Primarily Uses
So I'm on the verge of making a semi-okay way to replicate monster controlling (having a character charm a monster and control their exact actions). First I apply the charmed state. If successful, user gains skillset of that monster. I store the monster's index for later use with this note tag in the charmed state notebox:


<Custom Apply Effect>


var stateindex = target.index();


</Custom Apply Effect>


Then I use the following code in a skill to force that monster to use their skill on a target of my choice:


<After Eval>


BattleManager.queueForceAction($gameTroop.members()[stateindex], 284, -2);


</After Eval>


The error I get is that the stateindex is "never defined". This one's making me scratch my head.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top