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?
Mothership weapons and UP (buying multiples)
-
Unknown
- Fledgling Forumer
- Posts: 189
- Joined: Fri May 06, 2005 3:40 pm
- ID: 0
- Location: Nottingham (England)
-
Sleipnir
- Merriest Mod in the West
- Posts: 2340
- Joined: Tue Feb 15, 2005 11:16 pm
- ID: 0
- Location: Off-world
-
Honours and Awards
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.
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.

As soon as you build an idiot proof system, somebody else builds a better idiot.
If it moves, kill it. If it doesn't move, kick it until it does move, and then kill it.
- Wolf359
- The Big Bad Admin
- Posts: 5208
- Joined: Sat Feb 19, 2005 2:40 am
- Alliance: EPA
- Race: Tauri
- ID: 0
- Location: Omnipresent
- Contact:
-
Honours and Awards
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.
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.
Mod SpeakSeverian wrote:So I say as a last resort, splice Semper & Wolf359 for a good balance, Clone said unholy abomination a hundred times, let loose on forums and problem solved.
-
Sleipnir
- Merriest Mod in the West
- Posts: 2340
- Joined: Tue Feb 15, 2005 11:16 pm
- ID: 0
- Location: Off-world
-
Honours and Awards
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.

As soon as you build an idiot proof system, somebody else builds a better idiot.
If it moves, kill it. If it doesn't move, kick it until it does move, and then kill it.
- Wolf359
- The Big Bad Admin
- Posts: 5208
- Joined: Sat Feb 19, 2005 2:40 am
- Alliance: EPA
- Race: Tauri
- ID: 0
- Location: Omnipresent
- Contact:
-
Honours and Awards
-
Sleipnir
- Merriest Mod in the West
- Posts: 2340
- Joined: Tue Feb 15, 2005 11:16 pm
- ID: 0
- Location: Off-world
-
Honours and Awards
-
Unknown
- Fledgling Forumer
- Posts: 189
- Joined: Fri May 06, 2005 3:40 pm
- ID: 0
- Location: Nottingham (England)
-
KnightValor
- Forum Regular
- Posts: 660
- Joined: Tue Oct 11, 2005 6:55 pm
- ID: 0
- Location: Banned.
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.
Ex-hacker.
I'm not really a bad guy, just bored.
I'm not really a bad guy, just bored.
-
chippy1199
- Forum Newbie
- Posts: 23
- Joined: Wed Dec 07, 2005 4:20 am
-
Sleipnir
- Merriest Mod in the West
- Posts: 2340
- Joined: Tue Feb 15, 2005 11:16 pm
- ID: 0
- Location: Off-world
-
Honours and Awards
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.

As soon as you build an idiot proof system, somebody else builds a better idiot.
If it moves, kill it. If it doesn't move, kick it until it does move, and then kill it.
-
Sleipnir
- Merriest Mod in the West
- Posts: 2340
- Joined: Tue Feb 15, 2005 11:16 pm
- ID: 0
- Location: Off-world
-
Honours and Awards
- Wolf359
- The Big Bad Admin
- Posts: 5208
- Joined: Sat Feb 19, 2005 2:40 am
- Alliance: EPA
- Race: Tauri
- ID: 0
- Location: Omnipresent
- Contact:
-
Honours and Awards


