I'm tooling around with a small mod for Mount & Blade, and I was wondering if some of the more experienced coders could help me out.
I want to be able to compare two teams of arena fighters, to provide an odds thing for gambling. However, simple stuff like comparing the sum of levels is doomed to sploits, so I'll need something more complex but I don't have the imagination.
The game has levels, stats, skills and equipment. Levels just add to hp and skills/stats, and stats only unlock skills, so skills and equipment are really the most important bits. However, there are horses, ranged weapons, etc, and it seems pretty damn complex to come up with somethat that gets a ratio out of all that data.
Any ideas out there?
How to compare RPG-char strengths?
Moderator: Thanas
How to compare RPG-char strengths?
- Brother-Captain Gaius
- Emperor's Hand
- Posts: 6859
- Joined: 2002-10-22 12:00am
- Location: \m/
Yes, that is pretty damn complex. I guess you could squash all the data together, create some sort of average based on some standard (I don't know what that would be, given I've never touched the game), and compare the two averages. Assign arbitrary values to advantages like horses or bows or whatever.
But then, I've been bashing my head against a wall of Java for the past hour or so so maybe it's best not to listen to me.
But then, I've been bashing my head against a wall of Java for the past hour or so so maybe it's best not to listen to me.
Agitated asshole | (Ex)40K Nut | Metalhead
The vision never dies; life's a never-ending wheel
1337 posts as of 16:34 GMT-7 June 2nd, 2003
"'He or she' is an agenderphobic microaggression, Sharon. You are a bigot." ― Randy Marsh
The vision never dies; life's a never-ending wheel
1337 posts as of 16:34 GMT-7 June 2nd, 2003
"'He or she' is an agenderphobic microaggression, Sharon. You are a bigot." ― Randy Marsh
- Dooey Jo
- Sith Devotee
- Posts: 3127
- Joined: 2002-08-09 01:09pm
- Location: The land beyond the forest; Sweden.
- Contact:
Are the sizes of the teams equal? Otherwise you might find this article somewhat useful (you might anyway).
Do you know the inner mechanics of the game? So that you easily can put numbers into the damage-doing formulas etc.? If so, it would be fairly easy to see what factors contribute to the chance of winning the battle. If you don't, and you want it exact, you'll have to do a lot of analysing to find the formulas...
But if you can find out how much damage a certain unit would do to another, you could add all the stats and stuff of all the units in the teams, and then compare them as two huge "super units". You can then calculate the number of hits it would take for either side to defeat the other, then divide that number by the total number of hits and you'll have an estimate of the chance of victory or defeat, or at least which side is the stronger.
Of course, how accurate this is depends very much upon how the game works. If there's a lot of random numbers everywhere (and there tends to be in RPGs), then you'll also have to compensate for that. And if it's not turn-based then everything would be very random so a "strength rating" might be better than a "victory chance rating"...
Do you know the inner mechanics of the game? So that you easily can put numbers into the damage-doing formulas etc.? If so, it would be fairly easy to see what factors contribute to the chance of winning the battle. If you don't, and you want it exact, you'll have to do a lot of analysing to find the formulas...
But if you can find out how much damage a certain unit would do to another, you could add all the stats and stuff of all the units in the teams, and then compare them as two huge "super units". You can then calculate the number of hits it would take for either side to defeat the other, then divide that number by the total number of hits and you'll have an estimate of the chance of victory or defeat, or at least which side is the stronger.
Of course, how accurate this is depends very much upon how the game works. If there's a lot of random numbers everywhere (and there tends to be in RPGs), then you'll also have to compensate for that. And if it's not turn-based then everything would be very random so a "strength rating" might be better than a "victory chance rating"...
"Nippon ichi, bitches! Boing-boing."
Mai smote the demonic fires of heck...
Faker Ninjas invented ninjitsu
Mai smote the demonic fires of heck...
Faker Ninjas invented ninjitsu
- GuppyShark
- Sith Devotee
- Posts: 2830
- Joined: 2005-03-13 06:52am
- Location: South Australia
- Master of Ossus
- Darkest Knight
- Posts: 18213
- Joined: 2002-07-11 01:35am
- Location: California
How many people do you anticipate betting on each bout? If the number is fairly large, why not just have market odds?
"Sometimes I think you WANT us to fail." "Shut up, just shut up!" -Two Guys from Kabul
Latinum Star Recipient; Hacker's Cross Award Winner
"one soler flar can vapririze the planit or malt the nickl in lass than millasacit" -Bagara1000
"Happiness is just a Flaming Moe away."
Latinum Star Recipient; Hacker's Cross Award Winner
"one soler flar can vapririze the planit or malt the nickl in lass than millasacit" -Bagara1000
"Happiness is just a Flaming Moe away."