In Rm2k3/xp/vx you need to make a dividend of numbers, ones, tens, hundreds, thousands etc.
But the actual damage formula is quite simple and it goes like this.
Let's set up some variables.
XXX: Damage = 0;
XXX: Hero_STR = Name Strength
XXX: Hero_DEF = Name Defence
XXX: AI_STR = 4;
XXX: AI_DEF = 6;
In a game you need to know NOT to make a AI to strong or too week basically if it's a AI that's semi strong just add 1 or 2 from his stength variable.
But let's take into account if the AI is intelegent, if so make sure the number is what it needs to be, the ai can be extremely intellegent but weak. But this can also be a very hard to hit AI meaning you have 1-5 chances of hitting the ai. But if the AI is as smart as the Hero the chances of hitting are increased.
Now that we know how to take stats into account let's create that bloody formula.
The Damage variable will be used in just about every line here.
CODE:
CODE
XXX: Damage equal to Hero_STR
XXX: Damage Divided by AI_DEF
XXX: Damage Times 3 by AI_STR
XXX: Damage Mod 3
XXX: Damage Minus AI_INTEL
XXX: Damage Add 5
Than you go ahead and just setup this formula with the dividend and there you go, a damage formula!
Note that you can go much farther with the formula than that, this was only for the tutorial. You can make any damage formula as complex as you need.