ASUG0

Annihilation Special Unit Generation 0
Veteran
Joined
Jul 16, 2020
Messages
55
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,227
Reaction score
709
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
55
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 Profile Posts

..of the major old school series that began in the 80s- early 90s, I still haven't beaten 'a' Zelda game. Mario 64 was the first Mario I've beaten. I don't know if I should give that honor to Link to the Past or A Link Between Worlds(I currently own both). Well technically I've haven't beaten a Sonic either (Game Genie doesn't count =P).
headshot_headinfo.jpg
Time to add the "headshot" concept into the game so that people may actually aim at the heads when shooting zombies and get massive damage and armor-pen bonus as rewards. :kaojoy:
(The red area is just for visually debug purposes right now. But, it's possible that I will add something that displays the weak spots of enemies in the future.)
Worked on a cutscene skip domino effect using Maker Systems' script as the basis. Basically if I have a batch of cutscenes in a row on different maps, now when you skip one cutscene it will skip the entire set. No more spamming X to skip a scene every new map.

Oh and it will work regardless of where you do it from in the set. Convenient!
seems absolutely WILD to me now all the hundreds of hours of work I used to do in 2k(3) over a decade ago with a resolution of 320x240. that seems so insanely TINY now, seemed so normal at the time!
Playing Aroma Indosiar theme song.
Aroma is an Indonesian TV show about cooking. :)

Forum statistics

Threads
115,381
Messages
1,089,406
Members
150,091
Latest member
ilyrich
Top