Im playing a game, where you need Sciencepoints (SP) to get a Science done. SP are produced from Labs. The more Labs, the more SP are produced an hour. Ofc, the time to do a science changes, when you build more Labs. To do the sciencework on "Flying", you need 1000 Sciencepoints. If you have an income of 100 SP an hour, you need 10h to get it done.

If you build a Lab every 8h, you will have done 800 SP of the "Flying"-job, till your income reaches 110 SP/h. For the last 200 SP you will need less then 2h.

What i want to do with mIRC:
How much time is needed to get a Science Job done, when i keep building Labs?

And thats where i stand (theoretical):
The Mathematical term for the Calculation is a "Growth", i dont know the correct English term for the kind of growth it is ...

Trigger line: !forschen "SP needed" "SP per Lab/h"
"SP per Lab" is needed because different kind of Labs (big ones, small ones) produce a different amount of SP/H

A lab is beeing build every 8h

$2 = SP needed
$3 = Sp per Lab/h

var %SPleft $calc($2 - ($3 * 8)) <= SP left after 8hours
$calc(%SPleft / $3) <= Time needed till the Job (SP left) is done.

k, here we are. thats easy, it could be done in one line, i just used 2 to show the two parts of the calculation.

What I think mIRC should do, but what i cant script ;):
Use the %SPleft from Step 1 and do the $calc again (I'm building a second lab directly after the first one is done).

The Script should loop the Calculation till SPleft reachs Zero, and then prompt how long it will take to finish Science ... This should be possible to be calculated from the times of loops aka the amount of labs build.

I hope you can help me =) I just started scripting and did some stuff I'm really proud off, but thats just something I dont know how to do wink

MFG
Stichlasser