The Dink Network

Reply to Re: Running scripts and saving

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:
 
 
June 20th 2010, 12:41 AM
fairy.gif
Someone
Peasant He/Him Australia
 
Just save them in editor_seq/frame places in the save procedure and read them back up in the load procedure. If loading kills all scripts (I think it does?) then it would be a little more difficult, and may require one global variable like this:

In the save procedure:

//save whatever..
editor_seq(90,&ptime);
editor_seq(91,&strbuff);
//etc
&just_saved = &player_map;

In a script attached to all maps:

if (&just_saved == &player_map)
{
//player just loaded
&ptime = editor_seq(90,-1);
&strbuff = editor_seq(91,-1);
}

if (&just_saved != &player_map)
{
&just_saved = 0;
}