
edited 1×, last 12.09.12 01:51:48 pm
on:eat {
process "drinking",'time for drinking in mileseconds';
consume 'health','hunger','thirst','exaustion';
$alchool+='value you want for alchool increasing';
if ($alchool>=200) {
timer "unit",1,'time between vomits in milleseconds',1,"vomit";
}
}
on:vomit {
process "vomiting",'time for vomiting in mileseconds';
consume 'health','hunger','thirst','exaustion';
play "vomit.wav";
vomit 1;
if ($alchool>=200) {
timer "unit",1,'time between vomits in milleseconds',1,"vomit";
}else{
freetimers "unit",1,"vomit";
}
}
on:eat {
process "Eating vitamin",'time required for eating vitamin';
$alchool-='quantity of alchool reduced';
freetimers "unit",1,"vomit";
}
on:eat {
process "drinking",'time for drinking in mileseconds';
consume 'health','hunger','thirst','exaustion';
$alchool+='value you want for alchool increasing';
if ($alchool>=200) {
timer "unit",1,'time between vomits in milleseconds',1,"vomit";
}
}
on:vomit {
process "vomiting",'time for vomiting in mileseconds';
consume 'health','hunger','thirst','exaustion';
play "vomit.wav";
vomit 1;
if ($alchool>=200) {
timer "unit",1,'time between vomits in milleseconds',1,"vomit";
}else{
freetimers "unit",1,"vomit";
}
}
on:eat {
process "Eating vitamin",'time required for eating vitamin';
$alchool-='quantity of alchool reduced';
freetimers "unit",1,"vomit";
}