Reply to Re: Story scripts suck
If you don't have an account, just leave the password field blank.
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?
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?