Page 1 of 2
Mothership weapons and UP (buying multiples)
Posted: Mon Jan 30, 2006 8:30 am
by Unknown
Right i like ascending but the thing that gets on my nerves the most is having to constantly click my way back through upgrading my weapons capacity to take it back to what it was before i ascended.
Is there an easier way of paying for increasing the weapons capacity?
Cant you just enter the amount of naq you want to spend on attack and defence capacity and then it will calculate it for you and spit you the change? Or would the programming for that be 2 hard?
If you could do it for that then could it also be done for UP?
I had a look on the forums for this but i couldn't find it...... if it is there i apologise.
Anyone else feel the same about what i have put?
Posted: Mon Jan 30, 2006 9:19 am
by Sleipnir
Heh. I have recently bought my very first mothership and I went through the trouble of putting on 150 of each slot. Needless to say, I'm gonna need a new mouse soon cause this is wearing out the buttons. (Is forum secretly in league with logitech? Who knows.

)
Instead of putting in a naq amount, I'd say put in the amount of slot you want. Then take naq based on this equation: (2*C*X+X^2+X)/2 where C is your current level, and X is the number of increases to make. Multiply this by the increase in cost per level (e.g. 15k for UP) and you have the cost.
Say you want UP upgrades #4, 5 and 6, it would be (2*3*3+3^2+3)/2 = 15. Multiply by 15k and you get 225k. Levels 4, 5 and 6 cost 60k, 75k and 90k. That's also 225k. So to answer your question, programming it shouldn't be hard at all.
Posted: Mon Jan 30, 2006 9:59 am
by Wolf359
This has been mentioned before (several times) but I think that given the amounts we are talking about, it is worth keeping this open - it does get a bit tedious having to click and pause, click and pause.
It is not as bad for UP though because you do not have to wait for the page to refresh before you reclick, you can just keep clicking away.
Posted: Mon Jan 30, 2006 10:01 am
by Q Man
it is really annoying and how did you learn that sleip
Posted: Mon Jan 30, 2006 11:08 am
by Sleipnir
Q MAN wrote:it is really annoying and how did you learn that sleip
Well, it's just math. What you want to know is how much it costs to get from level M to level N. Which is easier to do by a little detour. Instead of calculating M to N you calculate 1 to N and 1 to M and substract. Level 1 costs 1*15k, level 2 = 2*15k, and so on. So to get the total cost of 1 to N you take 1+2+3+....+N, which leads to this formula: N*(N+1)/2. Substract the 2 like I said. You get (N^2+N-M^2-M)/2. Then substitute N=M+X (where X is the amount of levels to raise, so you get M=current, N=current+X). Once you've done this you get a formula that can be simplified a lot, into what I wrote above.
Posted: Mon Jan 30, 2006 11:27 am
by Q Man
you have totally lost me
Posted: Mon Jan 30, 2006 11:36 am
by Wolf359
Q MAN wrote:you have totally lost me
LOL!

Posted: Mon Jan 30, 2006 12:46 pm
by Sleipnir
Wolf359 wrote:Q MAN wrote:you have totally lost me
LOL!

I was afraid I might. I'm good at math, but I'm no teacher it seems

Posted: Tue Jan 31, 2006 8:54 am
by Unknown
Looks like i got my wish - thanks GOD people /forum/admin
Posted: Tue Jan 31, 2006 11:37 am
by neo
yeah its good
Posted: Tue Jan 31, 2006 4:21 pm
by KnightValor
Sleipnir wrote:Q MAN wrote:it is really annoying and how did you learn that sleip
Well, it's just math. What you want to know is how much it costs to get from level M to level N. Which is easier to do by a little detour. Instead of calculating M to N you calculate 1 to N and 1 to M and substract. Level 1 costs 1*15k, level 2 = 2*15k, and so on. So to get the total cost of 1 to N you take 1+2+3+....+N, which leads to this formula: N*(N+1)/2. Substract the 2 like I said. You get (N^2+N-M^2-M)/2. Then substitute N=M+X (where X is the amount of levels to raise, so you get M=current, N=current+X). Once you've done this you get a formula that can be simplified a lot, into what I wrote above.
That or he could use the same exact code with a WHILE function...
Code: Select all
$x = 0;
$y = upgrade_times;
WHILE ($x < $y) {
// Copy in code here with minor substitutions
$x++; }
Good math though... I wish I could do it like you. Maybe if you want to be clearer, you should do it like...
x + y = 3
y = 3
x = 0
Not that it matters, but maybe it will be clearer next time. Although, I still doubt I'll understand it for a few years. I'm only in Geometry.
Posted: Tue Jan 31, 2006 11:12 pm
by chippy1199
if they did it for UP it would be great too. cause it might not matter too much when you have a UP of 2500 cause u only do it a few times, but when you have just ascended going back up to 2500 UP from 1 is very tedious.
Posted: Tue Jan 31, 2006 11:44 pm
by Sleipnir
KnightValor wrote:Sleipnir wrote:Q MAN wrote:it is really annoying and how did you learn that sleip
Well, it's just math. What you want to know is how much it costs to get from level M to level N. Which is easier to do by a little detour. Instead of calculating M to N you calculate 1 to N and 1 to M and substract. Level 1 costs 1*15k, level 2 = 2*15k, and so on. So to get the total cost of 1 to N you take 1+2+3+....+N, which leads to this formula: N*(N+1)/2. Substract the 2 like I said. You get (N^2+N-M^2-M)/2. Then substitute N=M+X (where X is the amount of levels to raise, so you get M=current, N=current+X). Once you've done this you get a formula that can be simplified a lot, into what I wrote above.
That or he could use the same exact code with a WHILE function...
Code: Select all
$x = 0;
$y = upgrade_times;
WHILE ($x < $y) {
// Copy in code here with minor substitutions
$x++; }
Good math though... I wish I could do it like you. Maybe if you want to be clearer, you should do it like...
x + y = 3
y = 3
x = 0
Not that it matters, but maybe it will be clearer next time. Although, I still doubt I'll understand it for a few years. I'm only in Geometry.
A loop? No no no, that would be a waste of resources. Why make multiple transactions if you can do it at once. If you need $100 you don't go to the ATM 10 times in a row to get $10 do you?
I'm just glad someone up there noticed this thread and made the adjustment. Thanks forum.
Posted: Thu Feb 16, 2006 1:08 am
by Sleipnir
So, how about doing this for UP as well then? I'll modify the thread title accordingly.
Posted: Thu Feb 16, 2006 11:13 am
by Wolf359
Do we really need it for UP, you can just multi-click on the button?