My little problem with enemy TP

I start at the beginning and try to mention everything that could be important.

Now I want to ask a question in a fight when the TP of my enemy reaches 100, so I set up a conditional bransh and have the script call

$gameTroop.members()[1].tp

but it doesn't want to work i also created skills so that the test enemy immediately gets 100 tp but nothing is triggered.

in short words

if enemy gets 100 TP
then show choices

when answer given enemy flees, enemy dead or you dead.

best without plug-in or with one that is simple and free, it's a hobby not a financial investment for me.



THX for all help
Welcome!

When you're asking for help, it's always best to actually show what you have. Otherwise, anything that anyone says is just guessing at what your problem might be.

For example, I can point out that's an incomplete entry for a conditional statement. You want the Conditional Branch -> Script to read: $gameTroop.members()[1].tp==100

But maybe you already have that and you just put the part you thought might be wrong.

I could also suggest you make sure you're referencing the correct enemy - the first one you added to the troop is index 0, so index 1 is the second enemy you added. Is that correct?

What's the actual condition of the troop event? You can't use a script call in there without using a plugin, so are you sure the event is running at all?

Those are the semi-random suggestions I can make...if none of them helps, please post a screenshot of your troop.
$gameTroop.members()[1].tp==100
was not complete because I did not know that something was missing.

now it is retrieved but it ends in an error message i haven't been doing this for long either. if a pugin has to be which one should i take preferably ostenlos and how do i have to adjust that to retrieve it?

at the moment it looks something like this.

If:$gameTroop.members()[1].tp==100
show choices
if:1
play se
wait
end Battle

if:2
enemy hp change -9999

if:3
show choises
Ally
group member change Lap Rat

item
change item rat meat
enemy hp change -9999

although i have already found a plug-in but no idea if it is what i need.
maybe switch to mp damage this is esy to call but i don´t know what you want to do.
Sorry, I just don't understand what you're trying to do. You have this weird kind of typed out event instead of a screenshot, so I still don't know how you're trying to use it.

Then you have a few screenshots and they're super cropped down to tiny things and, again, we can't see what's around them.

1 - Please post actual, full screenshots. A little tiny box of one word from your screen simply doesn't help in any way.

2 - Please (again) post a screenshot of your event (I'm presuming it's a troop event)

3 - If you're getting an error, press F8 and go to the Console tab to see the full error trace and post a screenshot of that.

4 - I'm betting the mistake is what I already said in my first post:
make sure you're referencing the correct enemy - the first one you added to the troop is index 0, so index 1 is the second enemy you added. Is that correct?

I don't understand why you think you need a plugin for this, or what a plugin would do for you.
1 - Please post actual, full screenshots. A little tiny box of one word from your screen simply doesn't help in any way.

if I make bigger ones you can see less and with a full one the file is too big so only the small ones.

2 - Please (again) post a screenshot of your event (I'm presuming it's a troop event)

too big doesn't work that's why I wrote everything or why do you think I did all the work

3 - If you're getting an error, press F8 and go to the Console tab to see the full error trace and post a screenshot of that.

I used f8 but I can't put it in bigger.

4 - I'm betting the mistake is what I already said in my first post:

it is only 1 enemy

I don't understand why you think you need a plugin for this, or what a plugin would do for you.

I have read that many people think that it is not possible without it.
but my goal is simple if the opponent has 100 tp a question should come but it does not appear.
if I make bigger ones you can see less and with a full one the file is too big so only the small ones.
This is untrue. You simply need to grab only the active window, not your whole computer screen.
Yeah, I have no idea what you're talking about being too big to post.

I just pressed the Print Screen button, opened up Windows Paint, pressed Paste, and saved it as a PNG. Attached it to this post without any problems.

And if you do size it down to the active window as Sword suggests, it'll be even smaller - but you need to show everything that has to do with RPG Maker/your game if you want to get help.

it is only 1 enemy
If that's the case, then I have given you one answer to something you're doing wrong...twice. Once in my first reply, and then I quoted it again in my last post. 😛

Here it is again: counting enemies starts at 0. If you want to reference the first enemy you added to the troop (or the only enemy), that's $gameTroop.members()[0], not [1]

If that doesn't fix your problem, please post a screenshot of your event and any errors you're getting. I don't know what that screenshot you attached to your last post is, but it's not anything useful to helping you.
Here it is again: counting enemies starts at 0. If you want to reference the first enemy you added to the troop (or the only enemy), that's $gameTroop.members()[0], not [1]

If that doesn't fix your problem, please post a screenshot of your event and any errors you're getting. I don't know what that screenshot you attached to your last post is, but it's not anything useful to helping you.

now it works thx

Original thread: https://forums.rpgmakerweb.com/threads/my-little-problem-with-enemy-tp.149959/