Reply to Re: projectile script
If you don't have an account, just leave the password field blank.
It's indeed true that some parts of the script will never be executed.. but on the other hand, it only has to check values of a four integers.. the performance increase by removing then is very very minimal (aka not noticable). On the other hand, yes; strictly you'd need to remove them as it would increase the readability of the script(most important thing) and filesize but that's less of an issue.
Edit: now that I think of it, it could cause a bug because it uses the value of this line:
&mydir = sp_dir(1, -1);
to do the code depending on Dink's direction yet his actual direction changes that:
if (sp_dir(1, -1) == 1)
sp_dir(1, 4);
if (sp_dir(1, -1) == 3)
sp_dir(1, 6);
if (sp_dir(1, -1) == 7)
sp_dir(1, 4);
if (sp_dir(1, -1) == 9)
sp_dir(1, 6);
Of course, it could be that you can get away with it, I haven't checked the script in detail for all if-statements
Edit II: it doesn't.
Edit: now that I think of it, it could cause a bug because it uses the value of this line:
&mydir = sp_dir(1, -1);
to do the code depending on Dink's direction yet his actual direction changes that:
if (sp_dir(1, -1) == 1)
sp_dir(1, 4);
if (sp_dir(1, -1) == 3)
sp_dir(1, 6);
if (sp_dir(1, -1) == 7)
sp_dir(1, 4);
if (sp_dir(1, -1) == 9)
sp_dir(1, 6);
Of course, it could be that you can get away with it, I haven't checked the script in detail for all if-statements
Edit II: it doesn't.