View Single Post
Unread 18 Mar 2009, 22:46   #13
MrLobster
Commander in Briefs!
 
MrLobster's Avatar
 
Join Date: Dec 2000
Location: UK
Posts: 783
MrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud ofMrLobster has much to be proud of
Re: New scanning system

Ok first try on a formula (yes its not KISS so dont bother telling me).

Percentage = Amps / Dists

ScanOffset = (ScanID - (ScanID * Percentage)) + 0.5

ScanChance = ( 0.5 / ScanOffSet ) * 100

ScanID:
1 = Planet Scan
2 = Development Scan
3 = Unit Scan
4 = News Scan
5 = Incoming Scan
6 = Jumpgate Probe
7 = Advanced Unit Scan

So on to some examples:


Amps = 10, Dists = 20

Percentage = 10 / 20 = 0.5

Planet Scan
-----------
ScanOffset = (1 - ( 1 * 0.5)) + 0.5 = 1
ScanChance = 0.5 / 1 = 0.5 * 100 = 50%

Unit Scan
---------
ScanOffset = (3 - ( 3 * 0.5)) + 0.5 = 2
ScanChance = 0.5 / 2 = 0.25 * 100 = 25%

Adv Unit Scan
-------------
ScanOffset = (7 - ( 7 * 0.5)) + 0.5 = 4.0
ScanChance = 0.5 / 4.0 = 0.12 * 100 = 12%


Amps = 15, Dists = 20

Percentage = 15 / 20 = 0.75

Planet Scan
-----------
ScanOffset = (1 - ( 1 * 0.75)) + 0.5 = 0.75
ScanChance = 0.5 / 0.75 = 0.66 * 100 = 66%

Unit Scan
---------
ScanOffset = (3 - ( 3 * 0.75)) + 0.5 = 1.25
ScanChance = 0.5 / 1.25 = 0.40 * 100 = 40%

Adv Unit Scan
-------------
ScanOffset = (7 - ( 7 * 0.75)) + 0.5 = 2.25
ScanChance = 0.5 / 2.25 = 0.22 * 100 = 22%


Amps = 20, Dists = 20

Percentage = 20 / 20 = 1

Planet Scan
-----------
ScanOffset = (1 - ( 1 * 1)) + 0.5 = 0.5
ScanChance = 0.5 / 0.5 = 1 * 100 = 100%

Unit Scan
---------
ScanOffset = (3 - ( 3 * 1)) + 0.5 = 0.5
ScanChance = 0.5 / 0.5 = 1 * 100 = 100%

Adv Unit Scan
-------------
ScanOffset = (7 - ( 7 * 1)) + 0.5 = 0.5
ScanChance = 0.5 / 0.5 = 1 * 100 = 100%
__________________
<Kila> WHAT HAVE YOU DONE WITH MY PRECIOUS FORUMS
<Zeyi> 24h forum closure
<Zeyi> all posts recalled

"he's got a proven track record when it comes to showy art composition" - Tommy

<Sigi> Light: can I ask u how many open internet-windows u always have?
<MrLobster|PM> i have 2, the pa page, and the website for naked light pictures
<Ave> both has bad gfx

Last edited by MrLobster; 18 Mar 2009 at 23:43.
MrLobster is offline   Reply With Quote