The Dink Network

Reply to Re: What's the best way to run a script every time a save is loaded?

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:
 
 
February 15th 2012, 02:50 PM
spike.gif
I'm not sure why I was having problems before, the crash problem at least was about using a say() command in main.c or something. I guess that's just what I get for doing quick tests. =)

Did you try attaching main.c to 1000? This is another quick test, but the following seems to work just fine both on the title and load game:

script_attach(1000);
wait(500);
say_stop("crap",1);

EDIT: Ahahaha, yeah it's definitely just your regular everyday scripts-dont-survive-screenchanges problem. If you look at debug.txt, the engine first runs main.c, then loads/draws the screen.