I attempted to make my own code....
but ran into a problem...
heres my code:

Actionscript Code:
on(release)
{
 hp += 50;
day += 1;
{
if (day=30)
{
else
this.enabled = false;
}
}
}