Ok with out autoexec
Would somthing like this work in spellcast
Code xml
<var name="Food">0</var>
<if advanced='"$Food" == "1"'>
<if notbuffactive = "Food*">
<action type="addtochat" color="167">Eat your Food!</action>
</if>
</if>
<if advanced='"$Food" == "0"'>
<if buffactive = "Food*">
<action type="command" when="aftercast">sc var set Food 1</action>
</if>
</if>
Its just the buffactive food* part im not sure about.
You might be able to get away with just
Code
<if notbuffactive = "Food*">
<action type="addtochat" color="167">Eat your Food!</action>
</if>
Most likely it would have to be at or near the end of your XML
(the advanced tag is used for variables, so what you're telling SC with the other code to do is, {is food variable set to 1? if so do this <if notbuffactive = "Food*">
<action type="addtochat" color="167">Eat your Food!</action>
</if>
EDIT: and yes doing it this way is going to eat up more processor, since it's going to check this each and every action you do