Absorb Capacity in gelatinous noob

Gymhgy

New member
Is there a variable that checks for the current amount of absorptions?
Right now, what I do is just
PHP:
try
{
for x from 1 upto 15 by 1
{
 cli_execute("absorb" + thingamabob);
}
}

finally 
{
do_something();
}

I want to replace the try/finally with an if statement checking the amount of absorptions I have left.

Of course that isn't my real code, just a simplified version to tell you what i'm saying.
 

Gymhgy

New member
Nvm, just added an int called absorptions, and a boolean called at_max_absorptions.

Changed the loop to:

PHP:
if (absorptions == 15)
at_max_apsorptions = true;

if (!at_max_absorptions)
{
for x from 1 upto 15 by 1
{
cli_execute("absorb" + thingamabob);
absorptions + 1;
}
}
 
Top