• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:00
CET 10:00
KST 18:00
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners10Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
StarCraft, SC2, HotS, WC3, Returning to Blizzcon!42$5,000+ WardiTV 2025 Championship7[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win10
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Mech is the composition that needs teleportation t StarCraft, SC2, HotS, WC3, Returning to Blizzcon! TL.net Map Contest #21: Winners Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
Constellation Cup - Main Event - Stellar Fest $5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion Where's CardinalAllin/Jukado the mapmaker? [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL20] Grand Finals [BSL21] RO32 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Should offensive tower rushing be viable in RTS games? Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Learning my new SC2 hotkey…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1369 users

Math genius needed for game making - Page 2

Blogs > shannn
Post a Reply
Prev 1 2 All
freelander
Profile Blog Joined December 2004
Hungary4707 Posts
January 06 2012 14:23 GMT
#21
On January 06 2012 19:52 evanthebouncy! wrote:
that is not what a mathmatician do. sorry


lol so true
neither programmers..
And all is illuminated.
freelander
Profile Blog Joined December 2004
Hungary4707 Posts
January 06 2012 14:27 GMT
#22
by the way I think that using the level of the attacking character is plain out retarded designwise. why would you do that?

you should just use the attack stats, which will naturally grow with a levelup. one more step forward simplicity..
And all is illuminated.
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
January 06 2012 15:54 GMT
#23
On January 06 2012 23:27 freelander wrote:
by the way I think that using the level of the attacking character is plain out retarded designwise. why would you do that?

you should just use the attack stats, which will naturally grow with a levelup. one more step forward simplicity..


Some games will give you a bonus when facing lower enemies etc

I think just using the level isn't good though, instead just use the different charLvl - mobLvl to get some kind of multiplier ie 1.0, 1.1, 0.8 and just multiply the stats by that factor, simpler.

As far as tuning your numbers, don't be lazy, do it yourself.
People get to understand formulas by playing around with them and using them, not because they have some sort of magical innate ability.

Just make an instance where you can easily change the stats and play around to see what happens.
shannn
Profile Blog Joined May 2010
Netherlands2891 Posts
January 06 2012 16:23 GMT
#24
On January 06 2012 23:27 freelander wrote:
by the way I think that using the level of the attacking character is plain out retarded designwise. why would you do that?

you should just use the attack stats, which will naturally grow with a levelup. one more step forward simplicity..

If you actually read the comments I did that after some input from others already.

Then you'd have saved yourself time from actually asking and would know I had 0.0 experience in actually making a damage formula since it's actually my first game.

On January 07 2012 00:54 adwodon wrote:
Show nested quote +
On January 06 2012 23:27 freelander wrote:
by the way I think that using the level of the attacking character is plain out retarded designwise. why would you do that?

you should just use the attack stats, which will naturally grow with a levelup. one more step forward simplicity..


Some games will give you a bonus when facing lower enemies etc

I think just using the level isn't good though, instead just use the different charLvl - mobLvl to get some kind of multiplier ie 1.0, 1.1, 0.8 and just multiply the stats by that factor, simpler.

As far as tuning your numbers, don't be lazy, do it yourself.
People get to understand formulas by playing around with them and using them, not because they have some sort of magical innate ability.

Just make an instance where you can easily change the stats and play around to see what happens.

I know but asking for a very simple formula and try not tune too much would be much better and it can't hurt asking :D

Anyways I've actually made a separate project and just logging the values of each level's damage and stats vs other levels in the console for each touch input (so that I can generate multiple outputs).

This lets me see the damage output much better and faster by just watching it in the console and generate new damage outputs :D
http://www.teamliquid.net/forum/viewpost.php?post_id=6321864 Epic post.
THE_DOMINATOR
Profile Blog Joined April 2010
United States309 Posts
January 06 2012 17:05 GMT
#25
as someone already said modulo that shit!
DOMINATION
Excalibur_Z
Profile Joined October 2002
United States12238 Posts
January 06 2012 18:28 GMT
#26
You would probably do well to study some other games and see how they did it. Final Fantasy 6 for example used level^2 / 256 as part of its damage calculation. http://www.gamefaqs.com/snes/554041-final-fantasy-iii/faqs/13573

The calculation doesn't have to be exactly transparent (years of study went into FF6's system, for example) for the damage to be somewhat predictable, all you have to do is see to it that the numbers scale up appropriately as the game progresses. That is, level 3s probably shouldn't be doing 8x the damage of level 1s or you end up with insane numbers as levels increase.
Moderator
Sufficiency
Profile Blog Joined October 2010
Canada23833 Posts
January 06 2012 20:34 GMT
#27
First of all this is not math at all. It's just experimentation.

Also, is the problem with how the "random damage" is generated, or is there something else? For the random damage part, just use a uniform distribution from A to B.

Say the "fixed damage" calculated from your formula is D. Then you can make A = -0.2D and B = 0.2D. Then your character will always do 80% to 120% of the "fixed damage".

It's also interesting to allow a character to modify the random damage part (similar to HoMM series).
https://twitter.com/SufficientStats
Zocat
Profile Joined April 2010
Germany2229 Posts
January 06 2012 21:16 GMT
#28
You approach the problem from the wrong angle. Or you dont post enough information

First you need to set some goals - aka design. And from there you find the needed formulas (that part is the math part - and contrary to what people said - it IS what mathematicians do).

Until now we know:
- Charlevel should be important
- Attack/Defense Power (an item attribute?) should play a role
- There should be a random component

What you should think of:
How many levels are there in game? 10? 20? 100? 256? 1000?
How big is the health pool? How does it change over levels? How many hits should it take to kill an enemy when both have the same level? How many hits when the level is different? Does this change (i.e. 5hits for 2 lv 1 chars fighting, 10hits for 2 lv 100 chars fighting)? How important should the random factor be?

Random thoughts:
Your RandomDamage looks horrible. Between 0 and Charlevel*10. Variance is way to high. i.e. a lv 100 char:
1, 2 vs 999, 1000 (depending how the HP scales this is a huge issue). Take Sufficiency's approach with his D.

CharAttackingBasePower vs Level:
Why do you need both? Both increase when a level up occurs (I assume). So you can eliminate one stat? If it's class dependant use a class modifier.
Grndr101
Profile Joined March 2011
Belgium125 Posts
Last Edited: 2012-01-11 06:55:33
January 11 2012 06:47 GMT
#29
So an idea about your design here. What a lot of games do is keep a list of attributes for different mobs at different levels, and also for characters.

This would look like this:

MainCharacter(level1(attack, defence, health,.. other attributes), level2(..),.... ..., levelMax(....))

Same for others, while this looks cluttering, a list like this is actually quite efficient in terms of speed and size. It also keeps your game less cluttered instead of using formulas based on level.

You'd simply have to have a function where it retrieves the useful char info and uses it in damage calculation. This also allows you to adjust your stats for items, buffs etc. pretty easily. Just pull out the base stats for level, then apply equipment buff/debuffs and you have an instance of the character ready for combat.

Just some thoughts here, tell me if I'm wrong about sth I said, I am not a professional.

EDIT: lol this got me even more fired up to get into programming again, so much fun designing a game
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
Next event in 1h
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Zeus 537
Larva 367
actioN 243
PianO 109
Sharp 61
Soma 25
NotJumperer 22
Noble 11
NaDa 10
Dota 2
Gorgc4108
NeuroSwarm95
League of Legends
JimRising 1136
Counter-Strike
fl0m2453
Stewie2K612
Heroes of the Storm
Khaldor143
Other Games
summit1g11719
Happy230
XaKoH 71
goatrope42
Organizations
Counter-Strike
PGL92
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH176
• LUISG 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota231
League of Legends
• Lourlo4070
• Jankos3121
Upcoming Events
Sparkling Tuna Cup
1h
WardiTV Korean Royale
3h
LAN Event
6h
ByuN vs Zoun
TBD vs TriGGeR
Clem vs TBD
IPSL
9h
JDConan vs WIZARD
WolFix vs Cross
BSL 21
11h
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
1d
Wardi Open
1d 3h
WardiTV Korean Royale
2 days
Replay Cast
3 days
Kung Fu Cup
3 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
[ Show More ]
Tenacious Turtle Tussle
3 days
The PondCast
4 days
RSL Revival
4 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
4 days
WardiTV Korean Royale
4 days
RSL Revival
5 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
5 days
CranKy Ducklings
6 days
RSL Revival
6 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
6 days
BSL 21
6 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.