[XP]simple question[REsolved]

Started by Lanzer, December 15, 2010, 06:46:45 pm

Previous topic - Next topic

Lanzer

December 15, 2010, 06:46:45 pm Last Edit: December 30, 2010, 05:35:36 pm by Lanzer
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




WhiteRose

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.

Blizzard

If I remember right, they can do critical hits if they are physical.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Lanzer

ok if rose says so =( :sniff:




WhiteRose

Is Blizz is right, then making them physical (Magic resistance of 0) should allow them to hit criticals.

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Lanzer

hen it is possible or not D=? (default battle system)




Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Lanzer

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 .




SBR*

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:!

Spaceman McConaughey

Lanzer, you know you're the wrong one, yes?
Wrong about Blizzard being wrong.

Blizzard

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).
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.