The Dink Network

Reply to Re: Unusual method for one-time events

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:
 
 
October 10th 2013, 08:16 PM
goblins.gif
Hmm, I've always just set the sp_active(&current_sprite, 0) or kill_this_task() when done with an event and after setting the editor_type if I don't want to see the script again. If I still need the script to exist to do something later I can just use a global like &story.

if (&story == 1)
{
    //event happens
    //event is done, now kill this script
    &story = 2;
    kill_this_task();
}

//run alternate event
//event is done, now kill this script
kill_this_task();


This method hasn't failed me yet.

Anybody know how this could happen/how to fix it? I'm using scripts from/based on thenewguy's Dink Script Improvement Pack, if that helps.

If it's any reassurance I don't believe I did anything with the editor number or sequence on any of the DSIP scripts. That doesn't mean there couldn't be some kind of incompatibility, though. Let me know if a solution is found.