hi all i just started looking into scripting in ash and im basically just looking to make a basic script for between battle this is what i have so far but its not working maybe someone out there could help me to learn why!
also im hoping to have this work in conjunction with the auto stop battle at x% id like it to stop battle at 20%hp left then rest to heal maybe setting it to heal until im almost full hp or full hp whichever is closest to not wasting a turn. but that will come later for now i just need to take it 1 step at a time to learn it.
thanks in advance for any help
Wolfie
also im hoping to have this work in conjunction with the auto stop battle at x% id like it to stop battle at 20%hp left then rest to heal maybe setting it to heal until im almost full hp or full hp whichever is closest to not wasting a turn. but that will come later for now i just need to take it 1 step at a time to learn it.
thanks in advance for any help
Wolfie
Code:
void main()
{
if ( (my_hp() < (my_maxhp()-80%)) )
{
cli_execute( "rest");
}
else
(
print("Current hp is too high to rest");
}
}