[VXA] Heal / Target Ally with lowest health after attack?

Ateliae

Illustrator
Veteran
Joined
Jun 4, 2016
Messages
65
Reaction score
16
First Language
English
Primarily Uses
RMVXA
Using VXA, but everything I try to find leads to MV for this subject.

I'm trying to make a DPS skill that heals an ally with the lowest health after the damage is done. I can use yanfly's follow up script, but it can't target the ally with the lowest health. Is there any existing scripts that can allow this or if its somehow possible within the system?

Thank you very much for any help received. :kaoblush:
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,599
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
but it can't target the ally with the lowest health
Code:
$game_party.members.sort {|a,b| a.hp <=> b.hp}[0]
This is the code you need to get the ally with the lowest hp.
 

Ateliae

Illustrator
Veteran
Joined
Jun 4, 2016
Messages
65
Reaction score
16
First Language
English
Primarily Uses
RMVXA
Code:
$game_party.members.sort {|a,b| a.hp <=> b.hp}[0]
This is the code you need to get the ally with the lowest hp.
How does the code work and what exactly do I do with it? Is it a formula?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,599
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
How does the code work and what exactly do I do with it? Is it a formula?
I was assuming you could actually code since you mentioned this.
I can use yanfly's follow up script, but it can't target the ally with the lowest health.
And you didn't link to the particular script you mentioned here, so again, I was assuming you just need the right script call to get the actor with the lowest hp.

To actually answer your question, no, it's not a formula. it just a function to get the actor with the lowest hp. First, you need to link to the YF script you mentioned here.
 

Ateliae

Illustrator
Veteran
Joined
Jun 4, 2016
Messages
65
Reaction score
16
First Language
English
Primarily Uses
RMVXA
I was assuming you could actually code since you mentioned this.

And you didn't link to the particular script you mentioned here, so again, I was assuming you just need the right script call to get the actor with the lowest hp.

To actually answer your question, no, it's not a formula. it just a function to get the actor with the lowest hp. First, you need to link to the YF script you mentioned here.
I apologize for not doing it in advance. https://github.com/Archeia/YEARepo/blob/master/Gameplay/Follow-Up_Skills.rb
This is the one I am currently using.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top