ASH function to set a choiceadv condition?

dj_d

Member
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:

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?
 

dj_d

Member
Ahhhh.... hrm. Yes. Now that you mention it, I guess a script-added condition works with the ASH "adventure" command... <smacks self on forehead>
 
Top