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.
Different Ways to Die

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 89
... I got nothing.
This script was made for me by BigEd781 of RMVX.net
It makes so when a certain status effect happens to allof your party members, it's game over.

Like Petrify in Final Fantasy.

Code: [Select]
module ExtendedDeath
 
  # add the id numbers of the states taht should cause a gameover
  # if the entire party is inflicted
  STATE_IDS = [ 7, 8 ]
 
end

class Game_Party < Game_Unit
 
  def all_affected?(state_id)
    all_inflicted = true
    for actor in self.members   
      all_inflicted = false unless actor.state?(state_id)
    end
    return all_inflicted
  end
 
end

class Scene_Battle

  def check_status
    for id in ExtendedDeath::STATE_IDS
      call_gameover if $game_party.all_affected?(id)
    end
  end
 
  alias :eds_pre_death_process_action :process_action
  def process_action
    check_status
    eds_pre_death_process_action
  end 
 
end

There Aren't really any screenshots I can show with this script.


********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
This is pretty neat. Thanks for sharing :)

**
Rep: +0/-0Level 64
Save the endangered spycrab
i was wondering if it could be used if there's two different states on the different characters but they still count as a game over
e.g. petrify and x-zone on two different people but it still counts as a game over

The last supper, depicted as said in the pokebible