Any tips for the Skill: "Flames Of Rebirth"

Discussion in 'RPG Maker VX Ace' started by Nunzio Zizzania, Jan 11, 2019.

  1. Nunzio Zizzania

    Nunzio Zizzania Veteran Veteran

    Messages:
    49
    Likes Received:
    3
    Location:
    Castellammare Di Stabia
    First Language:
    Italy/English
    As the title say:
    Is there any typs for the FInal Fantasy Skill Flames of Rebirth.
    To put that simple: It damage the enemies an also revive your fallen party with (10%/40%/90% HP).
    Thank You
     
    #1
  2. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    961
    Likes Received:
    338
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    What is this variance based on?

    The rest is quite simple. Make the skill so that it only targets one enemy and in the formula add this:
    Code:
    $game_party.members.each { |m| if (m.hp == 0); m.hp += (m.mhp * percentage / 100); end; };
    You should change that "percentage" to be the amount of maximum hp you want to restore but since I don't know how you are going to set that percentage I cannot help you more than this.

    IMPORTANT NOTE: be careful because VX Ace formula box is very small and I don't know if it fits.
    IMPORTANT NOTE 2: your damage formula goes AFTER that code.
     
    Last edited: Jan 11, 2019
    #2
  3. Lord Vectra

    Lord Vectra Master Eventer Veteran

    Messages:
    185
    Likes Received:
    323
    Location:
    The Abyss
    First Language:
    English
    Primarily Uses:
    RMVXA
    If it proves too big, make a new script page and put something like

    Flames_Of_Rebirth = "Formula"

    Then in the damage formula of the skill, put eval(Flames_Of_Rebirth)

    Case sensitive and include the quotes around the formula in the script page. Hope that helps ^w^
     
    #3
    Heirukichi likes this.
  4. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    961
    Likes Received:
    338
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Yes, if it is too big you have to put it in a script page, there is no other way around.

    The one suggested is a possibility, another one might be this one:
    Code:
    class Game_Battler < Game_BattlerBase
      def flames_of_rebirth(b)
        $game_party.members.each do |m|
          m.hp += (m.mhp * percentage / 100) if (m.hp == 0) # change percentage here to be the variable you use to store the actual percentage
        end
      end
    end
    This way you can call it in your damage formula box this way:
    Code:
    a.flames_of_rebirth(b); damage_formula_goes_here
    Both this and the one in the previous post are fine, just pick the one you like the most.

    Just keep in mind that a skill written this way doesn't check if the user is an actor or an enemy and automatically revives actors. So you are the one who has to be sure that enemies cannot cast this skill.

    I did a little edit in my previous post since I missed a semicolon. If you copied the code there be sure to copy it again. Missing semicolons are extremely annoying.
     
    #4
  5. Nunzio Zizzania

    Nunzio Zizzania Veteran Veteran

    Messages:
    49
    Likes Received:
    3
    Location:
    Castellammare Di Stabia
    First Language:
    Italy/English
    Actually... I said all enemies, not one enemy
     
    #5
  6. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    961
    Likes Received:
    338
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    My bad, I didn't read that. Just change the skill scope then, it will work. The problem with formulae is when you have your skill being cast multiple times (which should be the case of "all enemies" scope). Anyway since this skill contains a condition that checks if allies are actually dead before healing them nothing changes even if you cast it multiple times.

    What happens if you cast it multiple times:
    1) 1st cast, check if party members are dead and revive them if they are dead;
    2) 2nd cast, check if party members are dead (if you successfully revived them nobody is dead) and revive them if they are dead (so nothing happens);
    3) each cast after the 2nd will have the same result as the 2nd one so the only part that actually has some meaning in the formula is the damage itself.
     
    #6
  7. Nunzio Zizzania

    Nunzio Zizzania Veteran Veteran

    Messages:
    49
    Likes Received:
    3
    Location:
    Castellammare Di Stabia
    First Language:
    Italy/English

    Is there any way to show any popup damage/recovery from the undead ones?
     
    #7
  8. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    961
    Likes Received:
    338
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    Not without a script. The engine itself doesn't allow you to have pop-up messages. That said there are plenty of good scripts meant for that purpose. Yanfly has one that works quite fine (just be sure to get its fix as well since it might get buggy).

    On a side note I am assuming by undead you mean not dead (which is not what "undead" means but that's the only thing related to this topic that comes to my mind), if you mean something else that is entirely different then I am afraid you have to give more details.
     
    #8
  9. Nunzio Zizzania

    Nunzio Zizzania Veteran Veteran

    Messages:
    49
    Likes Received:
    3
    Location:
    Castellammare Di Stabia
    First Language:
    Italy/English

    And where I can find... the undead script?
     
    #9
  10. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    961
    Likes Received:
    338
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    I never talked about any undead script at all. As I stated in my previous post "undead" is not the same as "not dead". I am assuming that since you insist in calling them "undead" you need something related to undeads. That said I am afraid you'll have to share more informations or you'll be stuck.
     
    #10

Share This Page