IV4 Posted February 12, 2005 Share Posted February 12, 2005 I know that im in a wrong forum but i really need help! I have a script like this:begin a0food1;A_Hunger is a global float variablefloat ONCEif(OnPCEquip==1)if(ONCE==0)set A_Hunger to (A_Hunger-1)MessageBox, "Yum!!! Your hunger is:", A_Hungerset ONCE to 1Activateendifendifend When I run the game it complains: Script Error: EXPRESSION in a0food1Right evalHow can i fix that? And i have another script like this: begin aFoodThingfloat daynowfloat normalSTRfloat normalENDfloat timershort doIf(daynow==0)set daynow to (Day)endifIf(daynow>Day)set A_Hunger to (A_Hunger + 1)set daynow to 0endifIf(A_Hunger>1)if(do==0)MessageBox, "You should get something to eat!"ModStrength -2ModEndurance -2endifendifIf(A_Hunger<1)setstrength normalSTRsetendurance normalENDset do to 0endifset normalSTR to (GetStrength)set normalEND to (GetEndurance)set timer to (timer+GetSecondsPassed)if(timer>30)set do to 0endifreturnendWhen I run the game it complains:Script Error: EXPRESSION in aFoodThingInfix to postfix I just cant fix those problems... I would be pleased if someone could help me... Thx! Link to comment Share on other sites More sharing options...
Switch Posted February 12, 2005 Share Posted February 12, 2005 Please only post one thread about a problem, double posting threads is considered spam. Please take a look at the rules before posting, you can find them here. Thanks ^^ Locked. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.