ASUG0

Annihilation Special Unit Generation 0
Veteran
Joined
Jul 16, 2020
Messages
48
Reaction score
11
First Language
German
Primarily Uses
RMMV
Hi,
I wanted to ask how I can check the TP value of an enemy in battle.
My idea was to use this line of code:
if ($gameTroop.members()[1].tp > 49) {$gameVariables.setValue(62, 1);}

But it didn't work! pls help

thanks ^^


Edit: solved it myself
 
Last edited:

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
1,111
Reaction score
642
First Language
Poland
Primarily Uses
RMMV
Probably because you aim for wrong troop member, keep in mind, that index 0 refers to first troop in group, so if you have 3 enemies in group, first one will have index 0 and the last one 2

Try $gameTroop.members()[0].tp

See in this pic? https://prnt.sc/15x47en
There is only one orc and by index 0 I can obtain TP, but with index 1 there is an error because he's alone in battle
 

ASUG0

Annihilation Special Unit Generation 0
Veteran
Joined
Jul 16, 2020
Messages
48
Reaction score
11
First Language
German
Primarily Uses
RMMV
Probably because you aim for wrong troop member, keep in mind, that index 0 refers to first troop in group, so if you have 3 enemies in group, first one will have index 0 and the last one 2

Try $gameTroop.members()[0].tp

See in this pic? https://prnt.sc/15x47en
There is only one orc and by index 0 I can obtain TP, but with index 1 there is an error because he's alone in battle
thank you for your replay ^^
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Ami
need a time to not open my MV,still addicted with new vegas

i wonder what addiction effect behind playing new vegas too much,maybe INT & Science gone worse in many days :D
cdjensen94 wrote on Kaliya's profile.
Are you the one who develops Kaliya's Visual Map Enhancements. If so I desperately need some help. I bought the plugin back a few months. I've only started using it recently.
Cause MP Damage instead of HP, Localization Plugin for Translation | RPG Maker News #112

Here in Fla were are seeing crazy covid spikes and some vaccinated getting bad infections. I had a mild fever on Thurs but it went down fast. How is everyone else doing. Hopefully you are all well. :)
Wish I was better at art, specifically that I was faster at it, bc this one NPC took Several Days to complete! It's gonna take So Extremely Long to do all of the art for my game, never mind writing it... Anyways, here's my gorgon, Hopernica Sthyxis!

57b88732c7abbcd84981dacf624a98495af61fcc.gifv

Forum statistics

Threads
113,826
Messages
1,077,737
Members
147,883
Latest member
Senppai90
Top