K, Im getting an error.. missing expresion for
if(O.karma += 1)
//action gose here
i dont get it.. all i want to do is make it so that if karma is one or greater then the action takes place.. im trying to do the same for if karma is -1 or lower..
ID:177062
Nov 11 2002, 6:57 pm
|
|
In response to AbyssDragon
|
|
AbyssDragon wrote:
What you're looking for is: I think what he means is if its exactly one lower, not just lower in general. if(Thats the case == 1) //Corny joke... What his looking for would look like this: if(O.karma == (O.karma + 1)) The brackets around the O.karma + 1 arent needed, but I usually add them just to keep things neat. -DogMan Edit: Look up Operators in 'Help On..." in Dream Maker to get a better understanding of what you can do with if()'s. |
In response to Dog Man
|
|
if(O.karma == (O.karma + 1)) That's never going to be true, though... can you think of any numbers that are also equal to one more than themself? -AbyssDragon |
In response to AbyssDragon
|
|
Sorry, I wasnt thinking logically enough with that one. I just figured when he mentioned 1 and -1 specifically that he wanted it to be when it equalled that...
-DogMan |
In response to AbyssDragon
|
|
I can think of one - n.
|
if(O.karma >= 1)
-AbyssDragon