eating and drinking while asleep

Scripts for wintin.

eating and drinking while asleep

Postby *juggleblood* » Fri Jan 27, 2006 8:46 am

#defgroup {hunger}
#action {^You are hungry} {#if {$sleep=1} {wa;yawn;get food $bag; eat food;burp;sleep} else {get food $bag;eat food}} {G|hunger}
#action {^You are thirsty} {#if {$sleep=1} {wa;drink barrel;hiccup;sleep}; #if {$sleep=0} {drink barrel}} {G|hunger}
#action {It's empty already} {#if {$sleep=1}{wa;stand;fillerup} else fillerup} {G|hunger}
#alias {hungoff} {#disable hunger; #showme Hunger and Thirst Disabled} {G|hunger}
#alias {fillerup} {cast 'create water' barrel}{G|hunger}

#defgroup {sleep}
#action {^You go to sleep} {#var sleep 1} {G|sleep}
#action {^You wake,} {#var sleep 0} {G|sleep}

Don't forget to set the mybag variable to tell the script the name of the container you keep your food in.

Cheers
User avatar
*juggleblood*
Hall of Fame Avatar Poster
 
Posts: 1304
Joined: Sun Jan 22, 2006 6:36 am
Location: Beyond Yonder
Status: Offline

Return to WinTin Scripts

Who is online

Users browsing this forum: No registered users and 4 guests