View Single Post
  #3  
Old 06-11-2001, 03:35 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
if(playerenters) toweapons -System;
if(isweapon||timeout){
if(strequals(#m,sleep)){
setstring sleepy,#v(strtofloat(#s(sleepy))-1);
}else{
setstring sleepy,#v(strtofloat(#s(sleepy))+0.01);
}
if(playerswimming){
setstring dirty,#v(strtofloat(#s(dirty))-1);
}else{
setstring dirty,#v(strtofloat(#s(dirty))+0.01);
}
setstring hungry,#v(strtofloat(#s(dirty))+0.01);
//insert what effect these strings have here
timeout=0.05;
}

Then for all food items, setstring hungry,#v(strtofloat(#s(hungry))-10); or so.

Note: It is possible under this system to stockpile cleanliness and sleep and food...not necessarily a bad thing, but you probably want to put SOME limits on how negative hungry and dirty and sleepy can be.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote