Would it be possible to have an ASH variant of the CLI commands to detect stat bonus days?
e.g. stat_today and stat_tomorrow, returning none, muscle, mysticality or moxie.
I have 2 examples of use here, for my clan manager/buffbot:
That isn't enough for it to be non-boolean, but returning the stat would be more useful for calling some scripts I've made for buying the clan buffs, called statbuff, moxiebuff, musclebuff and mysticalitybuff
e.g. stat_today and stat_tomorrow, returning none, muscle, mysticality or moxie.
I have 2 examples of use here, for my clan manager/buffbot:
Code:
if(stat_today=$stat[moxie])
{
adventure(my_adventures(), $location[pump up moxie]);
}
else
{
if($stat_tomorrow=$stat[moxie])
{
adventure(my_adventures()-100, $location[Castle in the Clouds in the sky]);
}
}
Code:
if(stat_today=$stat[none])
{
cli_execute( "call clan\statbuff");
}
else
{
cli_execute( "call clan\"+stat_to_string(stat_today)+"buff")
}