Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  Civ2-General/Help
  combat program?

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   combat program? Format for Better Printing
reds4ever
Settler
Chester
Mar 2001
posted May 20, 2001 20:34   Click Here to See the Profile for reds4everClick Here to Email reds4ever  send a private message to reds4ever
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
has anyone written a program to give the percentage chance of victory for any given battle, that will run at the same time as Civ (as in AC)? i was thinking of doing it myself but there's no point in re-inventing, well anything really.
Marquis de Sodaq
Warlord
Land o' Lakes
Jul 2000
posted May 20, 2001 23:08   Click Here to See the Profile for Marquis de Sodaq   send a private message to Marquis de Sodaq
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I've written one for Excel, altho it would need a bit of tweaking before I'd send it out in public. Basically, it would need some more rows of calculation added, and some touch-up. It's fast, all you do is type in the two units' attack, defense, HP, and FP, et voila, the probability of the attacker winning pops up in another cell. It does not work for 0-defense units, tho (division by zero errors).

For everything the collective apolyton mind knows about combat, see the oft-linked (usually by me) thread Info: Combat (GL).

------------------
"There is no fortress impregnable to an ass laden with gold."
-Philip of Macedon
[This message has been edited by Marquis de Sodaq (edited May 20, 2001).]

reds4ever
Settler
Chester
Mar 2001
posted May 21, 2001 08:07   Click Here to See the Profile for reds4everClick Here to Email reds4ever  send a private message to reds4ever
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
sounds good! are you going to post it when its finished? also does it allow for terrian types? also with divide by zero errors could you set to defense strengh to something like 0.0000000000000001 when zero was entered and round the answer to (say) 2 decimal places so the probabiltity will be the same.

i've got to learn to use a programmable calculator (TI 84) as part of a maths course i'm doing and i thought this might be a good exercise.

Marquis de Sodaq
Warlord
Land o' Lakes
Jul 2000
posted May 21, 2001 09:41   Click Here to See the Profile for Marquis de Sodaq   send a private message to Marquis de Sodaq
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I suppose if there is interest, I'll finish it. I'd whipped it together for calculating odds while testing. The zero-defense unit problem might work with a small number, I've not tried that. The attack and defense values to be entered are already modified (terrain, vet status, etc) - I've only written it for one input number. I'd thought about making a VB program that had checkboxes for all possible modifications, but I just don't have the time for that. I'll let you know when I get around to finishing it...
Scouse Gits
King
Liverpool, United Kingdom
Nov 1999
posted May 21, 2001 11:19   Click Here to See the Profile for Scouse Gits   send a private message to Scouse Gits Visit Scouse Gits's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I might just give VB a try after I emerge from under 200 exam scripts ...

------------------
Scouse Git[1] -- git1@scousers.net

"Staring at your screen in horror and disbelief when you open a saved game is one of the fun things of a succession game " - Hueij
"The Great Library has been built!"
"A short cut has to be challenging,
were it not so it would be 'the way'."
- Paul Craven

Marquis de Sodaq
Warlord
Land o' Lakes
Jul 2000
posted May 21, 2001 13:37   Click Here to See the Profile for Marquis de Sodaq   send a private message to Marquis de Sodaq
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
The VB idea is good because it can spew out the final probability more neatly than Excel. The spreadsheet takes a sum of each combination's probabilities - each one taking up a row. There are dozens of possible HP/FP combos to take into account, each needing its own summary cell. A VB program could simply pop in the high and low of the range to reach the same number. If that doesn't make sense, nevermind. Just trust me that VB would not be anywhere near as messy.

Edit: The zero-defense units might be given a 1/8 defense in calculation, considering the situations in which they win. Others have suggested other values, but I'd like to see the .125 put to the test.
------------------
"There is no fortress impregnable to an ass laden with gold."
-Philip of Macedon
[This message has been edited by Marquis de Sodaq (edited May 21, 2001).]

Apolyton Civilization Site Forums
> > > Civ2-General/Help Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

AltaVista Type or paste text or Web address (beginning with http://) here:
Powered
by Systran
Translate from: 

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site