Immortal status not working?

● ARCHIVED · READ-ONLY
Started by SkulleD42 20 posts View original ↗
  1. All the other status effects work as they should but this one doesn't, anyone knows what's happening?
  2. please give screenshots of both your state #1 and your immortal state, then we can check where your error might be.
  3. Andar said:
    please give screenshots of both your state #1 and your immortal state, then we can check where your error might be.
    I am using the default immortal state. Just like in the first pic for a counter attack I only used the default counter state, in the anti-dead attack I used the default immortal state, but this one just doesn't work. I didn't do anything more than that
  4. I asked for the state #1 because state #1 is the death state - always, that is hardcoded.
    and the default immortal state is nothing but a resistance to the death state.

    if you moved those states, then your immortal state might still be a resistance to the state you moved, but that state will not be the default death state because the death state is always state #1.
  5. I tried in vanilla project. Set states for entire troop and allies to immortal state. And set their HP to 1. They weren't dying.
    I tried once in my project with heavily modified project, immortal state didn't work, and I ended up making workaround instead of trying to figured out what was going on.

    My point is, I suspect it because of third party scripts?
  6. I didn´t move them and if I recall correctly I didn´t edit them either. When I use it in battle the ally supposedly immortal dies despite "being immortal". It could be because of a third party script, I don't knowa.PNG aa.PNG
  7. Yes, you did change the immortal state.
    You set your immortal state to vanish at the end of the current turn (duration 1~1), so it will remove itself by the Ende of the current turn and next turn the enemies can be harmed regularly.
  8. Ok so now I tried all three options, and also tried setting 2 turns but the character still dies... I don't know what to do
  9. which three options do you mean?
    and how exactly do you use the states, and what do you expect to happen as opposed to what really happens?
    Both versions please, with detailed description and not a simple sentence. We need to find out what you're even talking about.
  10. With the three options I meant the ones that say "Nothing", "End in action" and "End in turn" the last 2 I tried with both 1~1 and 2~2 turns.
    I expect to use the anti-death ability to one ally and I want the buff to last 1 turn but it doesn't even apply in the turn that it's used. I did an ability that what does is kill the character, so after using the anti-death ability he shouldn't die, but when he uses the ability to kill himself he gets killed instead of surviving
  11. if that is what you want, the correct setting is "end in turn" and 2~2.
    and add some messages to your immortal state, then you'll know if it is applied or not and when it is removed.

    because I suspect the problem is somewhere else, so test with those things first.
  12. So, the messages from when the effect is applied, when it's still going and when it's gone are appearing, but no matter if it's the first turn after the effect or the second, the character dies either way
  13. then describe how you're trying to kill that actor. because there are ways to override the state, or it could be that something changed the code for how the state 1 is applied. The last option could only be done by plugin.
  14. I'm killing the character by typing "a.die" in the attack that kills him
  15. That is one of the overrides.
    If you tried to kill by massive damage or by apply death state, it would resist that correctly.
  16. I just tried in a normal battle and the enemy just keeps killing him...
  17. Why not to try my method? Create a new project, give both enemies and allies immortality at the start of turn, set their HP to one, and there goes for attack. If it also not working then I have no idea, that needs to track what is wrong. If it only misbehave in your project, then you can try to start to investigate what was the difference.
  18. Ok so now I tried in a new project and this time the character kinda survives? The monster attacks him and he reaches 0 HP and gets the "Dead" state but he can still attack and do whatever but what I want is that the character survives with 1 HP
  19. Then it's not something from default, that needs to edit. To achieve that in my project, I forced the damage value into something that capped at current hp - 1
    Code:
    class Game_Battler
      def make_damage_value(user, item)
        value = item.damage.eval(user, self, $game_variables)
        value *= item_element_rate(user, item)
        value *= pdr if item.physical?
        value *= mdr if item.magical?
        value *= rec if item.damage.recover?
        value = apply_critical(value) if @result.critical
        value = apply_variance(value, item.damage.variance)
        value = apply_guard(value)
        if state?(47) # <-- Immortal state ID
          value = [self.hp-1,value].min
          if self.hp == 1
            value = 0
          end
        end
        @result.make_damage(value.to_i, item)
      end
    end
    This might not compatible with Yanfly's. If that was the case, replace line 2 with
    Code:
    def game_battler_make_damage_value_abe(user, item)
    It will be something like
    Spoiler
    n0rR6oz.png
  20. Thank you for your time, but where exactly do I paste that? In the script box of the attack, of the state or in what part of Game_Battler?