So far: these are the three buttons which control the actual game. The outputs will need more functions I guess.
function tactic (bowmod bowrating perception range mentality
resistance) {if tacticprompt=magic false bowmod=bowrating; if
perception
function heal(groupsize sofar agilityreservoir agility
physiquereservoir physique) {if groupsize>=sofar true
healagilityreservoir=agility: if groupsize>=sofar and
locale=city true physiquereservoir=physique}