[XP] Invincible Status Script is Overpowered
RGSSx Script SupportThere's something different about your project that what i have as a demo. Mine works fine.
Project1-XP
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
@Roninator2 i have analyzed something
Greater Water DMG without Protect
Greater Water DMG with Protect
looks like it is working and i took a look of your script placements
it looks like the default invincible status script and the breaker are like seperate.
give me a minute...
Greater Water DMG without Protect
Greater Water DMG with Protect
looks like it is working and i took a look of your script placements
it looks like the default invincible status script and the breaker are like seperate.
give me a minute...
@Roninator2 ok im done the checking and here are the results
i've made a test type Megidolaon that always deals 1,000 DMG.
here's the DMG without Protect.
here's the DMG with Protect.
but have you noticed that i haven't taken any DMG?
i mean the Damage Reduction is RIGHT THERE.
but the damage ISN'T applied.
just a little more and its fully working!
i've made a test type Megidolaon that always deals 1,000 DMG.
here's the DMG without Protect.
here's the DMG with Protect.
but have you noticed that i haven't taken any DMG?
i mean the Damage Reduction is RIGHT THERE.
but the damage ISN'T applied.
just a little more and its fully working!
Try merging the two methods together. The way you had it before and the code I have there now.
Maybe (for whatever reason - because I have no idea why it doesn't work for you, and you can see that it works in the demo I provided) something you have is causing a disconnect and maybe it needs the whole script section for the invincibility for it to work.
Just guessing here now. Unless you want to send me a copy of your project, not much else I can do.
@Roninator2 ok, i just combined the two, and...
nope. didn't work.
here is my script list.
My Script List
download it and test it, to see what's wrong with it.
nope. didn't work.
here is my script list.
My Script List
download it and test it, to see what's wrong with it.
It took a bit of work, and you probably need to do more but from what I could tell there was code missing. so the damage didn't get processed. I haven't narrowed down what code exactly.
Worked on it for 4 hours this morning doing tests and trying to find differences (which you have a lot of - including the base scripts (not usually a good idea)).
I found to get it working if I put the full tons of addons scripts in its complete form. Then worked on fixing the stack overflow and copying the changes you made to the separate scripts.
The results now is that the reduced damage works but the display is not correct.
Since this is not my game, you'll have to figure out why this works and make the changes. I've put enough time into it.
@Roninator2 ok, i put in that edited script list in my game
i'll re-name the rest later.
did the test.
and...
IT WORKS! (see the little DMG taken)
omg, it actually works!
thank you so much!
i'll re-name the rest later.
did the test.
and...
IT WORKS! (see the little DMG taken)
omg, it actually works!
thank you so much!
@Roninator2 i just figured out something.
this piece of code that im highlighting, thats what is needed to be fully working.
this piece of code that im highlighting, thats what is needed to be fully working.
try this (keep most of that method the same).
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 = [13]
# skills that overpower invincibility
BREAK_INVINCIBLE = [105, 106, 107, 108, 109, 110, 111, 112, 207, 225, 174, 175, 176, 177, 229]
# damage taken if skill is overpowering (percentage)
BREAK_VALUE = 0.25
#==============================================================================
# Scene_Battle
#==============================================================================
class Scene_Battle
alias damage_for_invincible make_skill_action_result
def make_skill_action_result
@skill = $data_skills[@active_battler.current_action.skill_id]
$inv_skill = @skill
damage_for_invincible
end
end
#==============================================================================
# Game_Battler
#==============================================================================
class Game_Battler
alias r2_skill_track initialize
def initialize
@r2_skill_id = false
r2_skill_track
end
alias hp_actor_invincible_later hp=
def hp=(val)
if $game_system.INVINCIBLE_STATUS && val < @hp
INVINCIBLE_IDS.any? {|i| @states.include?(i)} ?
BREAK_INVINCIBLE.any? {|j| @r2_skill_id == j} ?
hp_actor_invincible_later(val) : return : hp_actor_invincible_later(val)
else
hp_actor_invincible_later(val)
end
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| $inv_skill.id == j }
@r2_skill_id = $inv_skill.id
$inv_skill.id = -1
@newval = (val * BREAK_VALUE).to_i
damage_is_invincible_later(@newval)
else
if $inv_skill.id == -1
val = @newval
damage_is_invincible_later(val)
else
damage_is_invincible_later(0)
end
end
else
if val.is_a?(Numeric) && INVINCIBLE_IDS.any? {|i| @states.include?(i)}
if @newval.is_a?(Numeric) && @newval > 0
val = @newval
end
end
damage_is_invincible_later(val)
end
end
end
I hate to point this out now, but you could do this with eventing from the get-go. All you need to do is make your own invincible state and in it put element rate * 0% for all elements you want to take 0 damage from, then give the skills you want to penetrate it an element not on the list.
What you're suggesting sounds like it's for VXA/MV, but this is for XP, which has no such thing. That's also not "eventing"--it's merely manipulating database attributes.
You can still check to see if you can do it in XP. And you know if you respond like that to ideas no one is going to want to help you either.
PS: XP still has element checklists you can add, and you can add your own.
PS: XP still has element checklists you can add, and you can add your own.
It does, but it still wouldn't function the way requested. It only halves the incoming elemental damage. The request is much more complicated that it absolutely requires a script.
Hmm...maybe because I think you're an entitled child who shows no signs of actually learning anything and is a waste of my valuable time (I do this out of the goodness of my heart--for free). Consider yourself lucky that Roninator was able to put up with you.
@KK20 listen, ruby coding to make stuff is like hard if its a complicated thing.
but some parts of the code are like easy. like in RPG Maker XP
i can make new colors or i can move stuff.
but stuff like rewriting the damage formula to more Persona 5 Royal-like
or making status skills saying "Attack Down" after using it, is like quite difficult.
im still new to this and i have about over 300 hours into RMXP
its because that i made some new skills, or did some re-balancing,
or made new small features, or just random testing in general.
so PLEASE go easy on me i just need help,
and by the time that i finish making my game to its release,
i'll try to adding A LOT of thank yous in the credits.
but some parts of the code are like easy. like in RPG Maker XP
i can make new colors or i can move stuff.
but stuff like rewriting the damage formula to more Persona 5 Royal-like
or making status skills saying "Attack Down" after using it, is like quite difficult.
im still new to this and i have about over 300 hours into RMXP
its because that i made some new skills, or did some re-balancing,
or made new small features, or just random testing in general.
so PLEASE go easy on me i just need help,
and by the time that i finish making my game to its release,
i'll try to adding A LOT of thank yous in the credits.
We've been trying, but you have to understand that you're pushy and rude.
Constantly pinging KK20 is not going to get you any favors.
You seem to have very little patience. Sometimes you have to ask for help and then wait. Bump your post when it's been a long time. (like a week)
You were mostly showing how you were not willing to wait for someone to take the time to help you.
You do realize that we are not paid professionals here. Every minute we spend on helping you is a minute we could use elsewhere. And its all free.
Now I really like coding and I'm trying to learn as much as I can, so I was willing to continue working with you to figure out the issue.
KK20 is one of the best XP coders here and you were just pinging him like a mosquito buzzing around his ear. Constantly demanding to be heard and paid attention to. Which is why he says you are like a entitled child. And I agree mostly, I would have said you are a millennial - you expect things to be given to you.
So take this with a grain of salt, ...grow up.
As am I
Even though I have lots of hours I'm certainly no expert.
@Roninator2 i think you're right. i'll try to make some scripts with liitle help as possible.
IF there is some sort of manual about Coding in RPG Maker XP.
IF there is some sort of manual about Coding in RPG Maker XP.
Original thread: https://forums.rpgmakerweb.com/threads/xp-invincible-status-script-is-overpowered.130067/