![]() |
![]() +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: ![]() |
KSortGroup XP - kyonides - 08-03-2020 KSortGroup XP
by Kyonides Arkantes
Introduction Just as I've been doing lately, I've posted another scriptlet to let you get stuff done the easy way. ![]() What it does it to let you fetch the heroes or the enemies based on how strong or weak they are. ![]() ![]() Following a single script call model you get any stat like this: $game_party.members_by(:low_hp) $game_troop.members_by(:high_int) The former list will return a list of heroes sorted by HP in increasing order while the latter will offer you all troopers sorted by INT in decreasing order. Returns an empty list if no living member was found. ![]() $game_party.member_by(:low_hp) $game_troop.member_by(:high_int) These calls let you do the same for their first member only, if that member is ALIVE. ![]() ![]() ![]() my_variable = $game_party.member_by(:low_hp) By the way, you've got 16 different options as I've explained in the Comments section of my script. The Script Code: # * KSortGroup XP Terms & Conditions Free for use in any kind of game. Include my nickname in your game credits. Mention this forum in your game credits as well. Give me a free copy of your completed game if you include at least 2 of my scripts! ![]() |