05-16-2023, 08:24 PM
(This post was last modified: 05-16-2023, 08:29 PM by kyonides.
Edit Reason: Added Script Calls
)
Swap Actors aka Party Members at Will!
XP Script
Code:
# * Swap Party Members XP * #
class Game_Party
def swap_order(index1, index2)
@actors[index1], @actors[index2] = @actors[index2], @actors[index1]
$game_player.refresh
end
def swap_member_with_actor(index, actor_id)
@actors[index] = $game_actors[actor_id]
$game_player.refresh
end
def actor_ids
@actors.map{|actor| actor.id }
end
def swap_actor_with_actor(actor_id1, actor_id2)
pos = actor_ids.index(actor_id1)
@actors[pos] = $game_actors[actor_id2]
$game_player.refresh
end
alias :swap_by_actor_ids :swap_actor_with_actor
alias :swap :swap_order
end
VX & VX ACE Script
Code:
# * Swap Party Members VX & ACE * #
class Game_Party
def swap_member_with_actor(index, actor_id)
@actors[index] = actor_id
$game_player.refresh
end
def swap_actor_with_actor(actor_id1, actor_id2)
pos = @actors.index(actor_id1)
@actors[pos] = actor_id2
$game_player.refresh
end
def actor_ids
@actors
end
alias :swap_by_actor_ids :swap_actor_with_actor
alias :swap :swap_order
end
List of Newly Available Script Calls
Code:
$game_party.swap_order(Position1, Position2)
$game_party.swap(Position1, Position2)
$game_party.swap_member_with_actor(Position, ActorID)
$game_party.swap_actor_with_actor(ActorID1, ActorID2)
$game_party.swap_by_actor_ids(ActorID1, ActorID2)
$game_party.actor_ids
Side Note
$game_party.swap_order already existed in RMVX ACE.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE