Reply to Re: Running scripts and saving
If you don't have an account, just leave the password field blank.
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;
}
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;
}