[XP] Invincible Status Script is Overpowered

MarioWidjaya123

Veteran
Veteran
Joined
May 16, 2020
Messages
187
Reaction score
6
First Language
English
Primarily Uses
RMXP
you know about the Invincible Status Script from Tons of Add-ons.
Ruby:
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Invincible Status Effect by Blizzard
# Version: 2.0b
# Type: Game Experience Improvement
# Date: 4.12.2006
# Date v2.0b: 13.11.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# new in v2.0b:
#   - overworked for more convenience
#   - added possibility to have more than one Invincible status effect
#   - improved compatbility
#
#
# Compatibility:
#
#   99% compatible with SDK v1.x. 70% compatible with SDK v2.x. Could cause
#   problems with exotic CBS-es.
#
#
# Instructions:
#
# - Explanation:
#
#   This add-on will allow having a status effect that makes a character
#   invincible. Add any status effect IDs into INVINCIBLE_IDS.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

INVINCIBLE_IDS = [17]

#==============================================================================
# Game_Battler
#==============================================================================

class Game_Battler

  alias hp_actor_invincible_later hp=
  def hp=(val)
    if $game_system.INVINCIBLE_STATUS && val < @hp
      return if INVINCIBLE_IDS.any? {|i| @states.include?(i)}
    end
    hp_actor_invincible_later(val)
  end

  alias damage_is_invincible_later damage=
  def damage=(val)
    if $game_system.INVINCIBLE_STATUS && val.is_a?(Numeric) && val > 0 &&
        INVINCIBLE_IDS.any? {|i| @states.include?(i)}
      damage_is_invincible_later(0)
    else
      damage_is_invincible_later(val)
    end
  end

end
and by the looks of things this overpower script make the games more easier.

here is an example of what im talking about.
1605797170652.png
this is its current function.

1605797228236.png
Litten used Protect!

1605797280164.png
MissingNo. used Megidolaon!
(Megidolaon is an ALMIGHTY type that SUPPOSED to penetrate shields. yeah?)

1605797416641.png
Litten protected himself!
yeah... i feel like this script mechanics needs to have nerfs.

my idea is curtain skills that can BYPASS Protect,
or REDUCES THE DAMAGE of that curtain skill.
like how Z-Moves break through Protect, but only dealing 1/4 (or 25%) of the damage from that Z-Move.

Example:
Litten used Protect!
[Enemy Pokemon] used Breakneck Blitz! (Normal type Z-Move)
Litten couldn't protect himself and got hurt!

its should be like:
when SKILL ID then return DAMAGE REDUCTION
so...
when Megidolaon then return 0% (Protect CAN'T block that)
when Inferno Overdrive then return 75% (Protect only reduces the damage by 75%)

wanna make this happen?

then be my guest.
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
I don't have xp installed anymore so I can't check but this is everything except the checking for what skill is used.
I installed XP just to test this. works

Ruby:
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Invincible Status Effect by Blizzard
# Version: 2.0b
# Type: Game Experience Improvement
# Date: 4.12.2006
# Date v2.0b: 13.11.2007
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# new in v2.0b:
#   - overworked for more convenience
#   - added possibility to have more than one Invincible status effect
#   - improved compatbility
#
#
# Compatibility:
#
#   99% compatible with SDK v1.x. 70% compatible with SDK v2.x. Could cause
#   problems with exotic CBS-es.
#
#
# Instructions:
#
# - Explanation:
#
#   This add-on will allow having a status effect that makes a character
#   invincible. Add any status effect IDs into INVINCIBLE_IDS.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=

INVINCIBLE_IDS = [17]
BREAK_INVINCIBLE = [17]        # skills that overpower invincibility
BREAK_VALUE = 0.25                # damage taken if skill is overpowering (percentage)

#==============================================================================
# Game_Battler
#==============================================================================

class Game_Battler

  alias hp_actor_invincible_later hp=
  def hp=(val)
    if $game_system.INVINCIBLE_STATUS && val < @hp
      return if INVINCIBLE_IDS.any? {|i| @states.include?(i)}
    end
    hp_actor_invincible_later(val)
  end

  alias damage_is_invincible_later damage=
  def damage=(val)
    if $game_system.INVINCIBLE_STATUS && val.is_a?(Numeric) && val > 0 &&
        INVINCIBLE_IDS.any? {|i| @states.include?(i)}
            if BREAK_INVINCIBLE.any? {|j| @skill_id == j}
                val = val * BREAK_VALUE
                damage_is_invincible_later(val)
            else
                damage_is_invincible_later(0)
            end
    else
      damage_is_invincible_later(val)
    end
  end

end
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
You do realize that the way you word your statements to other people is generally seen as offensive. At least to me.
Saying Ummm... Hello? is like saying "Why in the F*** are you not replying? I'm super important, so tell me the answer!"

And as I said
I don't have xp installed anymore so I can't check but this is everything except the checking for what skill is used.
I don't know why there is a syntax error. I'm not an XP expert. But the part I did was how I viewed it to be setup.
The fact that you didn't listen to what I said and tried it anyways shows that you're not going talk or ask questions, just demand answers.

Because I'm curious to see if I can get this,

Try this
Ruby:
if BREAK_INVINCIBLE.any? {|j| @skill_id == j}
I tested it. It works, yea me.
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,587
Latest member
Usagiis
Top