RPG Maker Forums

I am using the YEA Party System, and I came across the Yanfly Party System Swap Fix by Soulpour777.

It uses two index numbers as arguments, then swaps the actors in those index locations.

I would like a slight alteration to this, where instead of 2 index locations, I would like to give it an Actor ID and an Index number to swap.

I.e. I want Actor4 to be put in spot 2.

If there is someone who can come up with this, that would be great!

Here is the script:

Code:
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# SYF [Soulpour Yanfly Fix] - Party System Swap Fix# Author: Soulpour777# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# $game_party.swap_order(n,n)class Game_Party < Game_Unit  #--------------------------------------------------------------------------  # Alias Listings  #--------------------------------------------------------------------------    alias :syf_yanfly_party_swap :swap_order   #--------------------------------------------------------------------------  # Swap Order  #--------------------------------------------------------------------------    def swap_order(index1, index2)    id1, id2 = @actors[index1], @actors[index2]    pos1 = @battle_members_array.index(id1)    pos2 = @battle_members_array.index(id2)    @battle_members_array[pos1] = id2 if pos1    @battle_members_array[pos2] = id1 if pos2    syf_yanfly_party_swap(index1, index2)  endend

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

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.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top