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.
Remove 2nd, 3rd, and 4th party member upon death

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 68
Ronnie Radke = God
Hey dont kno if this should be on this forum but I was wondering if anybody would be willing to make me a script that removes the 2nd, 3rd, and 4th party member upon death, but ends the game when the first party member dies, I am using an ABS so idk if that makes a difference, thank you
-If we are born to Die but we all Die to live, then whats the point of livin life if it just contradicts

Current Game - Old Town Mafia
Completion - 5%

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
This can be done with events. Make a Common Event with a parallel process conditional branch checking if the actor in the first slot is incapacitated, and that if he/she is, then it processes the Game Over Screen.

****
Rep:
Level 71
There is a script for. I will try to find it.

**
Rep:
Level 68
Ronnie Radke = God
This can be done with events. Make a Common Event with a parallel process conditional branch checking if the actor in the first slot is incapacitated, and that if he/she is, then it processes the Game Over Screen.


Sorry if im being an absolute newb but I tried the common event and the event trigger is on parrallell but what do I put under condition switch??
-If we are born to Die but we all Die to live, then whats the point of livin life if it just contradicts

Current Game - Old Town Mafia
Completion - 5%

****
Rep:
Level 71
Here you go  :) Credit goes to Jet
Code: [Select]
#===============================================================================
# Remove Dead Actors (Compatability Mode) Snippet
# By Jet10985 (Jet)
# Original Code by: Piejamas
#===============================================================================
# This snippet will allow you to remove actors from the party all together when
# they are inflicted with "incapacitated" state. I re-made this from Piejamas'
# code to make it compatable with a couple of my snippets and to improve checking.
# This script has: 2 customization options.
#===============================================================================
# Overwritten Methods:
# None
#-------------------------------------------------------------------------------
# Aliased methods:
# Game_Battler: hp=
#===============================================================================
=begin
How To Change Actors:

use the following command in the "script..." event command:

change_removable(actor, option)

actor = actor id that will be added/removed from the list.
option = true or false. True adds them to the list of non-removable, false makes
the removable.

=end

module RemoveDeadActors
 
  NO_REMOVE_ACTOR = [1, 5] # Actors that will NOT be removed. Can be changed later.
 
  NO_REMOVE_STATE = 17 # An actor inflicted with this state will not be removed.
 
end

#===============================================================================
# DON'T EDIT FURTHER UNLESS YOU KNOW WHAT TO DO.
#===============================================================================
class Game_Battler
 
  include RemoveDeadActors
 
  alias jet4398_newhp hp= unless $@
  def hp=(*args)
    self.jet4398_newhp(*args)
    $game_system.no_removal = NO_REMOVE_ACTOR.clone if $game_system.no_removal.nil?
    if @states.include?(1) && !$game_system.no_removal.include?(self.id) && !@states.include?(NO_REMOVE_STATE)
      $game_party.remove_actor(self.id) if self.actor?
    end
  end
end

class Game_System
 
  attr_accessor :no_removal
 
end

class Game_Interpreter
 
  include RemoveDeadActors
 
  def change_removable(actor, option)
    $game_system.no_removal = NO_REMOVE_ACTOR.clone if $game_system.no_removal.nil?
    if option == true
      $game_system.no_removal.push(actor) unless $game_system.no_removal.include?(actor)
    elsif option == false
      $game_system.no_removal.delete(actor) if $game_system.no_removal.include?(actor)
    elsif
      p "The option you chose was neither true or false. Please error check and try again"
    end
  end
end

unless $engine_scripts.nil?
  JetEngine.active("Remove Dead Actors", 1.2)
end 

**
Rep:
Level 68
Ronnie Radke = God
Here you go  :) Credit goes to Jet
Code: [Select]
#===============================================================================
# Remove Dead Actors (Compatability Mode) Snippet
# By Jet10985 (Jet)
# Original Code by: Piejamas
#===============================================================================
# This snippet will allow you to remove actors from the party all together when
# they are inflicted with "incapacitated" state. I re-made this from Piejamas'
# code to make it compatable with a couple of my snippets and to improve checking.
# This script has: 2 customization options.
#===============================================================================
# Overwritten Methods:
# None
#-------------------------------------------------------------------------------
# Aliased methods:
# Game_Battler: hp=
#===============================================================================
=begin
How To Change Actors:

use the following command in the "script..." event command:

change_removable(actor, option)

actor = actor id that will be added/removed from the list.
option = true or false. True adds them to the list of non-removable, false makes
the removable.

=end

module RemoveDeadActors
 
  NO_REMOVE_ACTOR = [1, 5] # Actors that will NOT be removed. Can be changed later.
 
  NO_REMOVE_STATE = 17 # An actor inflicted with this state will not be removed.
 
end

#===============================================================================
# DON'T EDIT FURTHER UNLESS YOU KNOW WHAT TO DO.
#===============================================================================
class Game_Battler
 
  include RemoveDeadActors
 
  alias jet4398_newhp hp= unless $@
  def hp=(*args)
    self.jet4398_newhp(*args)
    $game_system.no_removal = NO_REMOVE_ACTOR.clone if $game_system.no_removal.nil?
    if @states.include?(1) && !$game_system.no_removal.include?(self.id) && !@states.include?(NO_REMOVE_STATE)
      $game_party.remove_actor(self.id) if self.actor?
    end
  end
end

class Game_System
 
  attr_accessor :no_removal
 
end

class Game_Interpreter
 
  include RemoveDeadActors
 
  def change_removable(actor, option)
    $game_system.no_removal = NO_REMOVE_ACTOR.clone if $game_system.no_removal.nil?
    if option == true
      $game_system.no_removal.push(actor) unless $game_system.no_removal.include?(actor)
    elsif option == false
      $game_system.no_removal.delete(actor) if $game_system.no_removal.include?(actor)
    elsif
      p "The option you chose was neither true or false. Please error check and try again"
    end
  end
end

unless $engine_scripts.nil?
  JetEngine.active("Remove Dead Actors", 1.2)
end 

Hey Im sorry to bother you again but when a party member dies I go into the party and exit out i get an error (Script 'requiem group command' Line 27 nomethoderror
occurred. undefined method 'dead?' for nil:Nilclass

Here is line 27


def enabled?
    return false if $game_party.members[$ally_index].dead?
    return false if $game_party.members[$ally_index].piece.map_id != $game_map.map_id
    return true
  end
 
end
-If we are born to Die but we all Die to live, then whats the point of livin life if it just contradicts

Current Game - Old Town Mafia
Completion - 5%

****
Rep:
Level 71
Make sure to put below group command, if that doesn't work then it is most likely incompatible and you would need to try the event way.  :D

**
Rep:
Level 68
Ronnie Radke = God
Make sure to put below group command, if that doesn't work then it is most likely incompatible and you would need to try the event way.  :D

Yeh thanks for the script but it must not be compatiable with my abs, if you would be willing to post an eventing tuturial or give me a different abs script, but if thats to much then thats fine
-If we are born to Die but we all Die to live, then whats the point of livin life if it just contradicts

Current Game - Old Town Mafia
Completion - 5%

****
Rep:
Level 71
I use this ABS http://rmrk.net/index.php/topic,33456.0.html if it doesn't work then I will post a tutorial later on for you  :)

**
Rep:
Level 68
Ronnie Radke = God
I use this ABS http://rmrk.net/index.php/topic,33456.0.html if it doesn't work then I will post a tutorial later on for you  :)


very very much apreciated
-If we are born to Die but we all Die to live, then whats the point of livin life if it just contradicts

Current Game - Old Town Mafia
Completion - 5%

****
Rep:
Level 71
So I take it that it worked?