Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Academy » Missile hit rate vs additional target tokens
Missile hit rate vs additional target tokens Mon, 22 November 2004 08:22 Go to previous message
Staz is currently offline Staz

 
Lieutenant

Messages: 514
Registered: November 2003
Location: UK
I'm trying to write the pseudo-code for missile attacks and I have a fundamental problem if the damage streams over to additional tokens.

There are 3 rules at work here:

1/ The maximum number of kills is limited to the number of missiles that hit. That's simple enough.

2/ The number of missiles that hit depends on (amongst other things) the jammers on the target. Again, simple.

3/ Each missile is tested individually against it's adjusted accuracy to see whether it hits. Still no problems.

Put all these together though and you do have a problem...

How many shots are available to target other tokens after killing all the ships in the primary target ?

Lets say the target token is 80 chaff, and I have 200 missiles with an accuracy of about 80%. The shot kills all 80 ships in the chaff stack, and now streams over to a set of beam BBs.

How many missiles should target the beamers ? Is it 120 (ie. 200 - the 80 kills) ? That doesn't sound right, as it implies that no missiles targeted at the chaff missed.

Should it be 100 ? That sounds better - if I got 80 kills then I must have fired 100 missiles.

Unfortunately this runs into problems because of 3/ above. I can't tell whether the actual accuracy really was 80% as results vary statistically.

As an alternative, I could just calculate the number of hits, and then only carry over the hits to other tokens. This, however, doesn't take into account the fact that the beam BBs have jammers and so should the missiles should be less accurate against them.

The fundamental problem is that all the missiles are initially available to kill the chaff, but then if they aren't all needed some of them can be used to target other ships.

I hope I am missing something obvious here. Can anyone see what it is ?

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How much should one pay a CA per % point of terraforming
Next Topic: Are games better or worse with chaff allowed
Goto Forum:
  


Current Time: Thu Jun 06 08:58:01 EDT 2024