Jump to content

Help me plz!


IV4

Recommended Posts

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 variable

float ONCE

if(OnPCEquip==1)

if(ONCE==0)

set A_Hunger to (A_Hunger-1)

MessageBox, "Yum!!! Your hunger is:", A_Hunger

set ONCE to 1

Activate

endif

endif

end

 

When I run the game it complains:

Script Error: EXPRESSION in a0food1

Right eval

How can i fix that?

 

And i have another script like this:

 

begin aFoodThing

float daynow

float normalSTR

float normalEND

float timer

short do

If(daynow==0)

set daynow to (Day)

endif

If(daynow>Day)

set A_Hunger to (A_Hunger + 1)

set daynow to 0

endif

If(A_Hunger>1)

if(do==0)

MessageBox, "You should get something to eat!"

ModStrength -2

ModEndurance -2

endif

endif

If(A_Hunger<1)

setstrength normalSTR

setendurance normalEND

set do to 0

endif

set normalSTR to (GetStrength)

set normalEND to (GetEndurance)

set timer to (timer+GetSecondsPassed)

if(timer>30)

set do to 0

endif

return

end

When I run the game it complains:

Script Error: EXPRESSION in aFoodThing

Infix 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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...