Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Lanzer on December 15, 2010, 06:46:45 pm

Title: [XP]simple question[REsolved]
Post by: Lanzer on December 15, 2010, 06:46:45 pm
hi guys this time i have a little porblem with "skillS" and the problem is that it can`t critical =(
well what should i do in order for my skills be crit capable?? (damge and healing) thanks :3
Title: Re: [XP]simple question
Post by: WhiteRose on December 15, 2010, 07:06:49 pm
Quote from: Lanzer on December 15, 2010, 06:46:45 pm
hi guys this time i have a little porblem with "skillS" and the problem is that it can`t critical =(
well what should i do in order for my skills be crit capable?? (damge and healing) thanks :3


As far as I know, skills can't get critical hits. You're probably going to need to have someone write a script for you if you want that feature.
Title: Re: [XP]simple question
Post by: Blizzard on December 16, 2010, 02:17:57 am
If I remember right, they can do critical hits if they are physical.
Title: Re: [XP]simple question
Post by: Lanzer on December 17, 2010, 06:23:56 pm
ok if rose says so =( :sniff:
Title: Re: [XP]simple question
Post by: WhiteRose on December 18, 2010, 02:13:29 am
Is Blizz is right, then making them physical (Magic resistance of 0) should allow them to hit criticals.
Title: Re: [XP]simple question
Post by: Blizzard on December 18, 2010, 05:46:44 am
No, you make them physical if the attack factor is greater than 0 and power is different than 0. I know that from the damage calculations. But I was wrong, that won't make skills have critical hits. Looks like I implemented that in CP only.
Title: Re: [XP]simple question
Post by: Lanzer on December 18, 2010, 07:07:14 pm
hen it is possible or not D=? (default battle system)
Title: Re: [XP]simple question
Post by: Blizzard on December 18, 2010, 08:04:05 pm
You need a script for it.
Title: Re: [XP]simple question[REsolved]
Post by: Lanzer on December 30, 2010, 05:35:06 pm
OMFG blizz is wrong?!??!
Actually is possible to make skills, spells and maybe buffs(?) and items ,be capable of a critcal strike by only
searching these lines in Game_Battler 3 "def skill_effect(user, skill)" (around line 103) once found this,
try searching for :

      if self.damage > 0
        # Correccion de Defensa
        if self.guarding?
          self.damage /= 2
        end
      end


Next you should add (below "if self.damage > 0"):

        # Correccion de ataque critico
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end



Which is the default critical formula, plus if you are using Xelias Passive Augments script , you can add a whole lot of critical formulas for each actor ,enemy ,etc.

Maybe this should go in tutorials?? script maybe neededfor this .
Title: Re: [XP]simple question[REsolved]
Post by: SBR* on December 31, 2010, 04:12:48 am
Quote from: Lanzer on December 30, 2010, 05:35:06 pm
Spoiler: ShowHide

OMFG blizz is wrong?!??!
Actually is possible to make skills, spells and maybe buffs(?) and items ,be capable of a critcal strike by only
searching these lines in Game_Battler 3 "def skill_effect(user, skill)" (around line 103) once found this,
try searching for :

      if self.damage > 0
        # Correccion de Defensa
        if self.guarding?
          self.damage /= 2
        end
      end


Next you should add (below "if self.damage > 0"):

        # Correccion de ataque critico
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end



Which is the default critical formula, plus if you are using Xelias Passive Augments script , you can add a whole lot of critical formulas for each actor ,enemy ,etc.

Maybe this should go in tutorials?? script maybe neededfor this .




As far as I know, this looks like a small script O.o? That, Lanzer, IS a small script. Blizz meant that you couldn't do it without any modification to the default script, so no Database-editing :D... Well, I think he meant that...

Cya :urgh:!
Title: Re: [XP]simple question[REsolved]
Post by: Spaceman McConaughey on December 31, 2010, 04:15:48 am
Lanzer, you know you're the wrong one, yes?
Wrong about Blizzard being wrong.
Title: Re: [XP]simple question[REsolved]
Post by: Blizzard on December 31, 2010, 05:02:05 am
No, that's what I meant. A script is a piece of code. Whether it's an additional piece of code or an edit of an already existing piece of code, it's still a script. Even if it's actually just one character (such as ! or & or | or p).