The Dink Network

Reply to Re: Story scripts suck

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:
 
 
September 3rd 2005, 01:56 AM
goblinm.gif
That's pretty freaking weird. sp_editor_num shouldn't return 0 unless the sprite was created with create_sprite. Did you place the rock in the editor? Or is it a created sprite?

At any rate, the debugging code adds another bug. You want:

if (&hold != 0)
{
say("Line 0.", 1);
editor_type(&hold, 1);
}

Instead of:
if (&hold != 0)
say("Line 0.", 1);
editor_type(&hold, 1);

Only the first line after an if statement is run when there are no braces (and the condition evaluates true.) Weird, eh?