Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] Party won't die when poisoned

Started by Mitsarugi, June 30, 2010, 09:44:24 AM

0 Members and 1 Guest are viewing this topic.

Mitsarugi

As the title says , my party won't die when poisoned even when there HP = 0 they won't die. (My poison can make HP 0 , not 1 as the basic configuration)
tried in battle = they die
tried in battle + poison = they die
On map (event HP -9999)= They die
On map + poison + event HP -9999 = They die
On map + poison = Won't die
how do i fix it? i guesse it needs to be scripted

modern algebra

Well, what script are you using to permit slip damage to bring HP lower than 1? You should tell the author of it that he/she overlooked this.

In any case, the following should probably work no matter what script you are trying to use, so long as that script does bring actors down to 0. Paste it above Main but below whatever slip damage scipt you're using:


#==============================================================================
# ** Game_Party
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - on_player_walk
#==============================================================================

class Game_Party
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * On Party Walk
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias malg_mits_slipkill_onwalk_7uj1 on_player_walk
  def on_player_walk (*args)
    malg_mits_slipkill_onwalk_7uj1 (*args) # Run Original Method
    $game_temp.next_scene = "gameover" if all_dead?
  end
end


If it doesn't, then you need to link me to the script that isn't working.

Mitsarugi

#2
Quote from: modern algebra on June 30, 2010, 01:07:02 PM
Well, what script are you using to permit slip damage to bring HP lower than 1? You should tell the author of it that he/she overlooked this.

In any case, the following should probably work no matter what script you are trying to use, so long as that script does bring actors down to 0. Paste it above Main but below whatever slip damage scipt you're using:


#==============================================================================
# ** Game_Party
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - on_player_walk
#==============================================================================

class Game_Party
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * On Party Walk
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias malg_mits_slipkill_onwalk_7uj1 on_player_walk
  def on_player_walk (*args)
    malg_mits_slipkill_onwalk_7uj1 (*args) # Run Original Method
    $game_temp.next_scene = "gameover" if all_dead?
  end
end


If it doesn't, then you need to link me to the script that isn't working.


okay thank you very much Modern Algebra
i'll try it out , if it doesn't work mind if i PM the script i use?
EDIT: used KGC_SlipDamageExtension

YEAH! allright it works Modern Algebra your the best thanks again ^^