The Dink Network

Reply to Re: New Dev File: IPD's Armour Demonstration

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:
 
 
July 6th 2010, 05:32 PM
fairy.gif
Someone
Peasant He/Him Australia
 
Alright, I seemed to have found it. If you go from a slot which has a particular option to another slot which doesn't have that option, then the text variable doesn't get updated and it still has the sprite number from the old text (even though it has been killed) and the script kills off a new sprite when it tries to kill the old text. So resetting the &text1/2/3 to zero when you kill that sprite seemed to have worked:

if(&text1 != 0)
{
sp_kill(&text1, 1);
&text1 = 0;
}
if(&text2 != 0)
{
sp_kill(&text2, 1);
&text2 = 0;
}
if(&text3 != 0)
{
sp_kill(&text3, 1);
&text3 = 0;
}

I made some other modifications but I think this is what fixed it (and the other modifications made no difference)