RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Party Member Saving 1.5 (With Raids!)

0 Members and 1 Guest are viewing this topic.

*
Scripter
Rep:
Level 40
Crownless King
Party Member Saving
Version: 1.5
Author: Soulpour777
Date: August 24, 2014

Description


This script allows you to save all your existing party members during a cutscene or a certain event where, you can save all your existing members and remove them during the cutscene, then add them back when the cutscene is done.

Features

  • Add Actors
  • Remove Actors
  • Reclaim Actors
  • Add Specific Raids
  • Persist Specific Raids

Instructions

Script Calls:

add_all_actors - adds all actors you specified
remove_all_actors - removes all actors you saved
reclaim_all_actors - reclaims all actors you saved
 
add_spec_raid(raid_num) - adds a specific team of members in your party removing your current party.
 
Example:
add_spec_raid(Team1) - adds Team1 which can be found on Raids module.
 
persist_spec_raid(raid_num) - adds a specific team of members in your party keeping your current party.
 
Example:
persist_spec_raid(Team2) - adds Team2 which can be found on Raids module while keeping your other party members.


Script


Code: [Select]

#==============================================================================
# ** Party Member Saving v1.5
# Author: Soulpour777
# Web URL: infinitytears.wordpress.com
# Script Requested by: Galdelonian
# August 22, 2014
#------------------------------------------------------------------------------
# Description:
# This script allows you to save all your existing party members during a
# cutscene or a certain event where, you can save all your existing members
# and remove them during the cutscene, then add them back when the cutscene
# is done.
#------------------------------------------------------------------------------
# Change Log:
# August 22, 2014 - Created Party Member Saving 1.0
# August 24, 204
#   -> Added Specific Raid Feature
#   -> Added a Persist Specific Raid Feature
#   -> Added a Module to handle raid teams
#------------------------------------------------------------------------------
# Script Calls:
# add_all_actors - adds all actors you specified
# remove_all_actors - removes all actors you saved
# reclaim_all_actors - reclaims all actors you saved
# add_spec_raid(raid_num) - adds a specific team of members in your party
# removing your current party.
# Example:
# add_spec_raid(Team1) - adds Team1 which can be found on Raids module.
# persist_spec_raid(raid_num) - adds a specific team of members in your party
# keeping your current party.
# Example:
# persist_spec_raid(Team2) - adds Team2 which can be found on Raids module
# while keeping your other party members.
#------------------------------------------------------------------------------
# Terms of Use: Free to use for Non-Commercial and Commercial use.
#==============================================================================

module Soulpour
  module Raids
   
    # --------------------------------------------------------------------- #
    # Additional Instructions for 1.5 version:
    # if you want to add party members, just add the same way how Team 1
    # and Team 2 are constructed.
    # If you want a specific formation, you can alter them. For example:
    # Team3 = [6, 3, 2, 1, 4]
    # this would bring you the formation Actor6, Actor 3, Actor 2, Actor 1
    # and Actor 4 specifically.
    # --------------------------------------------------------------------- #
   
    Team1 = [1, 2, 3, 4, 5] #=> Team 1 are Actors 1, 2, 3, 4, and 5
    Team2 = [6, 7, 8] #=> Team 2 are Actors 6, 7 and 8
   
  end
end


class Game_System
  #--------------------------------------------------------------------------
  # * List of Aliased Methods
  #--------------------------------------------------------------------------
  alias :soul_party_save_by_array_game_system_init                :initialize
  attr_accessor                                              :party_container
  #--------------------------------------------------------------------------
  # * Object Initialization(Aliased)
  #-------------------------------------------------------------------------- 
  def initialize
    @party_container = []
    soul_party_save_by_array_game_system_init
  end
  #--------------------------------------------------------------------------
  # * Add All Actors (New Method)
  #--------------------------------------------------------------------------   
  def add_all_actors
    $game_party.members.each {|member| @party_container << member}
  end
  #--------------------------------------------------------------------------
  # * Remove All Added Actors
  #--------------------------------------------------------------------------   
  def remove_all_actors
    @party_container.each{|member| $game_party.remove_actor(member.id)}
  end
  #--------------------------------------------------------------------------
  # * Remove Actors
  #--------------------------------------------------------------------------   
  def remove_actors
    $game_party.members.each {|party| $game_party.remove_actor(party.id)}
  end
  #--------------------------------------------------------------------------
  # * Reclaim Actors
  #--------------------------------------------------------------------------     
  def reclaim_all_actors
    @party_container.each{|member| $game_party.add_actor(member.id)}
  end
 
end

class Game_Interpreter
  include Soulpour::Raids
  #--------------------------------------------------------------------------
  # * Add All Actors
  #--------------------------------------------------------------------------   
  def add_all_actors
    $game_system.add_all_actors
  end
  #--------------------------------------------------------------------------
  # Remove All Actors in the Container
  #--------------------------------------------------------------------------   
  def remove_all_actors
    $game_system.remove_all_actors
  end
  #--------------------------------------------------------------------------
  # * Reclaim All Actors in the Container
  #--------------------------------------------------------------------------   
  def reclaim_all_actors
    $game_system.reclaim_all_actors
  end
  #--------------------------------------------------------------------------
  # * Add Specific Party Members Removing Current Actors
  #--------------------------------------------------------------------------   
  def add_spec_raid(raid_num)
    specific_raid = raid_num
    $game_system.remove_actors
    specific_raid.each {|raid_party| $game_party.add_actor(raid_party)}
  end
  #--------------------------------------------------------------------------
  # * Adds Specific Party Members Persisting All Current Actors
  #--------------------------------------------------------------------------   
  def persist_spec_raid(raid_num)
    persist_spec_raid = raid_num
    persist_spec_raid.each {|raid_party| $game_party.add_actor(raid_party)}
  end 
end



Credit


  • Soulpour777

Thanks

  • Galdelonian for requesting the script.

Support


For support, please comment below or contact me.

Known Compatibility Issues

None.


Terms of Use


Terms of Use: Free to use for Non-Commercial and Commercial use.
« Last Edit: August 24, 2014, 03:19:18 AM by SoulPour777 »


If you like my work, please do support me on Patreon.
https://www.patreon.com/Soulpour777?ty=h

***
Rep:
Level 39
RMRK Junior
Looks like another useful one! Man, I'm trying to keep up but I just can't xD I finish one about once every three days!
My Website:

:tinysmile:

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Queen of RMRKProject of the Year 20142014 Best RPG Maker User - Story2011 Best Newbie2014 Best RPG Maker User - Creativity2014 Kindest Member2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
Ahhh, so this would save their positions in the formation, right? :D

One of my biggest qualms has always been to remove the party for whatever reason, put them back, and then annoy the player when they have to set up their formation again. ;9
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


*
Scripter
Rep:
Level 40
Crownless King
Yes. Because it would be a hell of an event it would be just to check who were the characters in your party right before you were going to the cutscene and return them back after the cutscene. Not only it saves the characters but their orders when you removed them :D


If you like my work, please do support me on Patreon.
https://www.patreon.com/Soulpour777?ty=h

*
The Hero of Rhyme
Rep:
Level 83
( ͡° ͜ʖ ͡°)
2014 Queen of RMRKProject of the Year 20142014 Best RPG Maker User - Story2011 Best Newbie2014 Best RPG Maker User - Creativity2014 Kindest Member2013 Queen of RMRKBronze SS AuthorBronze Writing ReviewerSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.GOOD!For frequently finding and reporting spam and spam bots2012 Best Yuyubabe Smiley2012 Best RPG Maker User (Creativity);o
That's awesome! Thanks for making this! :gracie:
Spoiler for My Games and Art:
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]


*
Scripter
Rep:
Level 40
Crownless King
Added a new feature called Add Specific Raids and Persist Specific Raids.

Add Specific Raids allow you to change all your party members to a Team located on the Raids module and removes your current actors.

Add Specific Raids allow you to change all your party members to a Team located on the Raids module while keeping your current actors.


If you like my work, please do support me on Patreon.
https://www.patreon.com/Soulpour777?ty=h