counts down from 100%. When you eat food_item the counter is supposed to go up a few points but it doesnt...can someone see whats the prob? Also, I'd like to make it able to subtract 1 CON point from Char if they dont eat and the score is at 0%. Thanks in advance. I know you guys like a challenge.
Heres the script:
void
main() {
object oPC = GetItemActivator();
object item =
GetItemActivated();
string tag = GetTag(item);
if(tag == "food_item")
{
float food =
GetLocalFloat(oPC, "food_counter");
food = (food
> 0.75) ? 1.0 : food + GetLocalFloat(item, "food_value");
SetLocalFloat(oPC,
"food_counter", food);
Modifié par christinetooley, 28 janvier 2011 - 01:19 .





Retour en haut






