Grrrrrrr...
Hurah! i fixed a bug in a script! Bugger!theres another error in it. i cant see what the problem is, but im sure its got something to do with sp_dir(); because this is the first time i am using that command... anyway, heres the part of the script the game resets to windows:
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4"); //crashes here
say("dum de doo...", 1);
cheers.
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4"); //crashes here
say("dum de doo...", 1);
cheers.
yup, big crash. Believe it's sp_dir(1,4);
I suggest the following:
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4"); //crashes here
say("dum de doo...", 1);
Move the following over to another line:
//crashes here
Move it so it looks like this:
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4");
//crashes here
say("dum de doo...", 1);
That should do it, I think.
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4"); //crashes here
say("dum de doo...", 1);
Move the following over to another line:
//crashes here
Move it so it looks like this:
say_stop("`2there be an intruder!", &deathpig3);
sp_dir = ("1, 4");
//crashes here
say("dum de doo...", 1);
That should do it, I think.
*SIGH*
sp_dir = ("1, 4"); = sp_dir("1, 4");
And maybe no "" i dont remember
sp_dir = ("1, 4"); = sp_dir("1, 4");
And maybe no "" i dont remember

Ehm,
sp_dir(1, 4); //sets Dink's direction to left
int &dir = sp_dir(1, -1); //gets Dink's direction
sp_dir(1, 4); //sets Dink's direction to left
int &dir = sp_dir(1, -1); //gets Dink's direction
For the love of the Ancients...
WC has answered the question! There are no "speech marks" needed. To make Dink face left, the command is...
sp_dir(1, 4);
And the same command applies for every direction. Just change the 4 to whatever number number corresponds with the direction you want him to face.
Using the numerical keypad on the right side of your keyboard is the way to go, and you can make Dink (or any other sprite) face any direction bar 5... because that is in the middle.
4 = Left
6 = Right
8 = Up
2 = Down
If you still don't get it, you should just give up.
WC has answered the question! There are no "speech marks" needed. To make Dink face left, the command is...
sp_dir(1, 4);
And the same command applies for every direction. Just change the 4 to whatever number number corresponds with the direction you want him to face.
Using the numerical keypad on the right side of your keyboard is the way to go, and you can make Dink (or any other sprite) face any direction bar 5... because that is in the middle.
4 = Left
6 = Right
8 = Up
2 = Down
If you still don't get it, you should just give up.
wait, who? me? i understand... you talking to me? i said thanks after WC told me what to do, and got it working ages ago.
Sorry then, I must have misunderstood the situation

no, i probably should have made my self more clear. and i would have said earlyer, but i havent een able to get on the computer for a while cause of my dads work thingy.
I wasn't really directing that at you, hog of the stars. Just the silly people who were trying to help when they really didn't have a clue what they were talking about.
I'm not a great scripter myself, but surely people should only try to help if they understand the basic principles of the topic in hand.
I'm not a great scripter myself, but surely people should only try to help if they understand the basic principles of the topic in hand.