The Dink Network

Reply to Re: Scripting and WDE questions.

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:
 
 
August 30th 2007, 08:58 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
script_attach(1000); Attaches the current script to 1000 (i.e. it will survive screenlocks, &current_sprite no longer makes sense, etc).
I'm not sure if sp_script(1000, "script"); works, but an equivalent is spawn("script");.

I think that in this case you want spawn();. Please keep in mind that just putting that in the main() proc of a savebot will screw things up slightly. You'll want the spawn() to only happen when you actually load a game, not when you just enter the screen.