Prowler Productions
  Dink Smallwood Forum
  scripting

Post New Topic  
profile | register | faq

Author Topic:   scripting
igloo15 posted 12-17- 06:20 AM CT (US)   Click Here to See the Profile for igloo15   Click Here to Email igloo15  
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)     Click Here to See the Profile for Kornelije  Click Here to Email Kornelije     
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)     Click Here to See the Profile for Zail  Click Here to Email Zail     
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.

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.