Talk:Stats

Persuading a Captive hero
Does anyone have any information on this? How do you use medals to persuade? Is gold the only way to persuade a captive hero to join your ranks? If you don't want to pay the gold, is releasing the hero the only option? No if you go to whee you upgrade your heros you will see the captive hero reward it with persuade it with a medal and its good.- Jackerdoom

Equation
While trying to make a spreadsheet to calculate all sorts of things for the game, it appeared that the equation for build time was off. Using the equation here, I would always be short by 2 seconds. Not a big deal really, but I like being accurate so I figured I'd mention it to see if anyone else knows about this. And yes, I'm bored enough in my college computer apps class to make a fully functional spreadsheet for this game.--Kaziarl 05:43, 1 September 2009 (UTC)

I was experimenting with the equation for the construction time that politic reduces, which is (base time x 0.995 ^ politic level) x 0.9 ^ construction level (found in the Hero stats section of the wiki). I removed the 60 politic mayor from office, and checked the base time of town hall for level 5, which is exactly 4 hours (or 240 minutes). Then I added the mayor back and the base time is now 2 hours 57 minutes and 39 seconds (or 177.39 minutes). Then I proceeded to complete the equation (240 x 0.995 ^ 60) x 0.9 ^ 5, and the result was 104.52 (minutes), which isn't right. So I tried the calculation again, but noticed that just doing (240 x 0.995 ^ 60) gives you 177.76, which is almost correct (the difference is 37 seconds). So it would seem to me that you really only need to use (base time x 0.995 ^ politic level) to see how much construction time you'll save with any given mayor. I'm not a mathematician, so don't be overly critical, I just ran the equation and reported my findings. Any explanation would be welcomed. - Avilea

Unless you aren't figuring Construction Research...Maybe the Mayor comes in between Construction and the Base Time, which means that Construction is applying it...

Let's figure this out Logically.

So, my Town Hall (Level 4) Requires 2h 54m 57s without a Mayor. I currently have Construction Level 3, so we're sitting at 30% Reduction, so the equation would be:

X * 0.70 = (2*60*60)+(54*60)+57=10497s X*0.70=10497 X=10497/0.7=14995.714, Actual Difference:14495-14400=95 seconds, which is roughly 0.66% off.

So, it's not exact. We're missing a 0.66% Difference. So, I'm going to see if anything would affect it. Let me throw out a Levy. Nope, it's still 10497s. Tax Rate...Still the same.

Let's see if the equation would be calculated separately per bonus (which would be stupid, but let's find out). 14400*0.9=*0.9=*0.9=10497.6 Since we always display whole numbers, I'm assuming they Round Down.

Wow, damn. So, they calculate every bonus separately. Now, let me put my Mayor back in office. He has 38 Politics. We're now sitting at 2h 24m 36s (down from 2h 54m 57s, Difference 30m 21s).

So, we know that bonuses are calculated separately (which is dumb, but let's keep going). We just don't know how this is calculated: At the end or the beginning. Let's do some experimentation.

14400*0.9=0.9=0.9=10497.6 (something) 38 = 8676 -or- 14400 (something) 38=X*0.9=*0.9=*0.9=8676

Let's try out the above equation. (base time x 0.995 ^ politic level)

(10497.6*(0.995^38))=8676.9498774754440595210854604619

Again, they round down, but look how ridiculous this is. However, you can do the following equation:

(*(^0.9))*(0.995^)=

This gives the correct info. Just make sure if you are using Windows Calculator, you press the x^y key.

What is the reasoning behind this? If you applied all bonuses cumulatively, when you hit Level 10 Construction, you would always have instant build (10%*10 = 100%). In this case, when you hit Level 10 Construction, you end up with 34.87%, which is 65.13% Reduction. I don't know the max stat for Politics, but let's say it's 255, which gives 27.8%, or 72.1% Reduction. Again, see why it doesn't add. It multiplies, so you would get, considering this maximum, 9.69% of maximum, or 90.31% Reduction in time.