cRPG

Strategus => Strategus General Discussion => Topic started by: Teeth on October 20, 2011, 10:31:19 am

Title: Troop upkeep?
Post by: Teeth on October 20, 2011, 10:31:19 am
How much upkeep do you need to pay for your troops? I played cRPG for two hours yesterday and that should have given me some money to keep up my recruiting, but then suddenly last night I had 0 gold. Which was way sooner than I wouldve expected. Now 10 hours later I have lost 25 recruits, which is a pretty darn big setback. I would like to know how much money I need for upkeep per troop and the desertion rate if I have 0 gold, so I can stop this from happening again.
Title: Re: Troop upkeep?
Post by: Teeth on October 20, 2011, 10:56:19 am
So I found this formula: ceil((pow($troops, 1.03) * 1.8 - 100)/24)

I don't really get what the ceil, pow or that 1.03 value means. Can someone tell me what the upkeep per troop per day is? I can only come up with -4.09 which I don't believe it is.
Title: Re: Troop upkeep?
Post by: Braeden on October 20, 2011, 11:08:39 am
How many troops do you have?  The pow 1.03 means troops^1.03, it scales based on troop numbers.  If you have 35 troops or fewer, you should have no upkeep.
Title: Re: Troop upkeep?
Post by: Moncho on October 20, 2011, 11:12:27 am
ceil means if the result is not an integer (..., -2,-1,0,1,2, ...) then round it up to the next integer value (so that you do not need to pay 5.34241513423452 gold each hour, it would be 6 instead.
pow is simply the exponent in computer notation, ie pow($troop, 1.03) = x1.03.

And using Wolfram Alpha (a lovely tool this one), you can plot it and get:
http://www.wolframalpha.com/input/?i=plot+ceil%28%28pow%28x%2C+1.03%29+*+1.8+-+100%29%2F24%29++x%3D[0%2C100]

Observing it, you see that you start paying with 49 troops (I read it was 36 somewhere else a while ago, maybe the formula has changed? In this post, they have a different formula:http://forum.c-rpg.net/index.php/topic,18074.msg257440/topicseen.html#msg257440)
and then it increases by 1 every 12 troops.
Take into account this formula is just for your own troops, not for fiefs.
Title: Re: Troop upkeep?
Post by: Braeden on October 20, 2011, 11:14:34 am
Yeah, 49 is probably right, I think chadz changed that one.
Title: Re: Troop upkeep?
Post by: Teeth on October 20, 2011, 02:41:50 pm
Alright I get the formula now, thank you very much.
Title: Re: Troop upkeep?
Post by: dodnet on October 20, 2011, 07:09:00 pm
It's definitely 49 as I saw one mate without money loosing his troops down to 49 now. So you have to pay from 50 and up.