Online version? Ooo.... kay I never used the online version before but here it goes:
Use a timer, paste this into the game's start script; it'll create the timer for you, set the interval, and enable it. Tweak it if need be:
// Create Timer
create timer ("hunger_timer")
// Set interval
SetTimerInterval (hunger_timer, 60)
// Set Timer Script
hunger_timer.script => {
player.hunger = player.hunger + 2
// this is to loop the timer
EnableTimer (hunger_timer)
}
// this will enable the timer
EnableTimer (hunger_timer)