Well, i'm currently working on a game. Is nothing of the other world. Is something simple.
Well, it will have Attack/Kick and some Attacks that Requires Energy.
Well, im here looking for Formulas.
What formula i should use for Attack and Kick? (They should be different, since a Kick is stronger than a punch, right?)
And please, don't say src.attack - m.defense >_>
Basically something like: var Damage = src.Attack - M.Defense * (src.Health / M.Health) + 50
Oh yea, where are the libraries? Q_Q
ID:266013
![]() Jan 14 2011, 7:22 pm (Edited on Jan 14 2011, 8:09 pm)
|
|
![]() Jan 15 2011, 12:34 am
|
|
http://www.byond.com/developer/ Then use the search box to find the library you're looking for.
|
I though there was a Key Up /Down Library.
Since i'm trying to do for example you press D and you guard, when you unpress it, you stop guarding. :/ |
Look into the "macro" inside the interface files.
As for formulas there are COUNTLESS formulas and thats why you need to design your own in most cases depending on your game. this might be considered Intermediate attack system since its not just cut and dry. But ill throw a couple with examples. Lets say you have a system that uses str, agi and int. and your weapons then have their own calcs and use those stats for damage. so lets go. Example 1. 32 Str, 17 Agi, 43 Int. Using a Longsword which uses Str and Agi naturally. with opponent 65 defense. Weapon Damage DmgMod1 = str+agi*0.7 = 34.3 (min dmg. round to 34) DmgMod2 = str+agi*1.5 = 73.5 (max dmg round to 74) WepDmg = 57. random number between dmgmod1 and dmgmod2. RealDamage = (Opponentsdefense*0.6)=39.. 57-39 = (18*1.5)= 27 damage without knowing how your system actually works its hard to make formulas |