changing stat effects for the defualt batle system?
#5
I tried looking at it but none of the terms I used seemed to work. I'm not sure how to call the stats an do math to them.

Code:
def hit
    n = 100
    for i in @states
      n *= $data_states[i].hit_rate / 100.0
    end
    return Integer(n)
  end

I think tahts what I need to change. how do I call a stat + a stat? I'm not sure what the line n *= $data_states[i].hit_rate / 100.0 is doing.

maybe I should be lookign in game battler 3 in this section instead?

Code:
#--------------------------------------------------------------------------
  # First hit detection
    hit_result = (rand(100) < attacker.hit)
    # If hit occurs
    if hit_result == true

I need I need hit_result to be
Code:
hit_result ((rand(100)) < (50 + (def stat + def stat) - (att stat + att stat) + element bonus/penalty)
so say both def stats are 10 and both att stats are 5 that total is 60 rand needs to be 60 or less to hit. I'm not sure how to call the stats for the formula.

*From DerVV: I just wrapped your script samples in CODE bbcode.
Thanks. I should have used the,. Sorry for the inconvenience.
Reply }


Messages In This Thread
changing stat effects for the defualt batle system? - by corpsegirl - 10-24-2010, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   ACBS - Atoa Custom Battle System and TP System zlsl 2 4,572 10-20-2021, 05:09 AM
Last Post: zlsl
   I want to add an Atoa Custom Battle System command cut-in. zlsl 11 13,911 11-11-2019, 08:55 PM
Last Post: DerVVulfman
   Question about ACBS (Atoa Custom Battle System) aeliath 10 12,785 08-08-2019, 02:50 PM
Last Post: aeliath
   (RMVXace) Battle error with Tankentai's battle system, help. x( Starmage 0 3,912 02-14-2018, 04:25 PM
Last Post: Starmage
   Problems with counteraatack addon of Atoa Custom Battle System Djigit 22 35,509 01-05-2017, 08:05 PM
Last Post: Noctis
   Atoa Custom Battle System: Popup when status change Noctis 6 10,642 02-01-2016, 12:52 AM
Last Post: Noctis
   Atoa Custom Battle System CTB animation while cast Noctis 6 10,742 01-04-2016, 03:05 PM
Last Post: Noctis
   How do I ask wheiter he finished the script call? in a herbalism system Eagleeye1990 3 6,346 10-06-2014, 10:19 PM
Last Post: greenraven
   little Edit of the cursor world map system Djigit 3 6,538 08-24-2014, 02:31 AM
Last Post: Djigit
   [Brainstorming] Pallete Changing. MechanicalPen 6 7,780 02-14-2014, 09:46 PM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)