posted 12-17- 06:20 AM CT (US) this script does not work I don't now why but it just doesn't. If you could help me figure out why that would be great. In the game it does not fade down it just sits there and He says the text.
void main(void) {
if(&item <= 6) { fade_down(); say_stop("too dark I should go back", 1); }
if(&item >= 6) { fade_up(); }
}
Kornelije
posted 12-17- 07:17 AM CT (US)
I don't know if this is the problem but I think you can't use <= 6 and >= 6 because if the &item is 6 it will try to do both, I suppose. You can do >= and <, or <= and > but <= and >= you just can't...
Zail
posted 12-17- 01:00 PM CT (US)
I think you need a space between if and (&item <= 6). The same for the other if statement.
Also Kornelije has a point there. If you have &item == 6, ask yourself which thing do you want the program to follow. Currently the program will fade down, have Dink say "too dark I should go back" (Please check your grammer, really bad grammer always bugs me), then fade back up.