The Dink Network

Reply to Re: Bookshelf

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 30th 2012, 10:14 AM
anon.gif
shevek
Ghost They/Them
 
I'm not entirely sure how dinkc handles this, but at the end of if statements you should never put a semicolon. In C, the following are equivaluent:

if (something);
{
//Do something
}


if (something)
{
}
{
//Do something
}


The only difference is that the latter is more clearly not what you mean to do. The "Do something" part is always executed, regardless of what's in the if expression. This explains that your choice menu always appears.

Also, you have an overkill of unfreeze statements. This doesn't do any harm, but you only need to make sure that this is executed once before the script finishes. So do it before kill_this_task, and at the end of the function (outside any if blocks).

Finally, for the appearance of the pig feed, you should check the sequence and frame number of the sprite you want to use, and use it as second and third argument to add_item. I don't know them by heart, but according to your story sequence 428 frame 2 is a staircase.