I'm trying to use ASH to adventure until I get a choiceadv - but between each adventure, I want to run an ASH function. Something like this:
I'm stumped! Any suggestions?
Code:
boolean choiceadv(location loc)
{
checkFood();
cli_execute("conditions clear");
add_choiceadv_condition(1); //This function doesn't actually exist, hence the problem
print ("Adventuring for "+num+" choiceadvs");
while (my_adventures() != 0)
{
boolean gotit = adventure(1,loc);
if (gotit)
Print ("Finished all choiceadvs");
checkFood(); //this eats and/or drinks if your adventures are running low
if (gotit)
{ cli_execute("conditions clear"); return true; }
}
return false;
}
I'm stumped! Any suggestions?