The Dink Network

Grrrrrrr...

September 8th 2004, 09:39 AM
pig.gif
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.
September 8th 2004, 09:59 AM
knightg.gif
WC
Peasant He/Him United States
Destroying noobs since 1999. 
yup, big crash. Believe it's sp_dir(1,4);
September 8th 2004, 10:11 AM
pig.gif
thanks.
September 13th 2004, 04:21 AM
sob_scorpy.gif
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.
September 13th 2004, 06:57 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
If you aren't joking...
September 13th 2004, 07:02 AM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
*SIGH*

sp_dir = ("1, 4"); = sp_dir("1, 4");

And maybe no "" i dont remember

September 13th 2004, 07:08 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Ehm,

sp_dir(1, 4); //sets Dink's direction to left

int &dir = sp_dir(1, -1); //gets Dink's direction
September 13th 2004, 07:10 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
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.
September 13th 2004, 08:55 AM
pig.gif
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.
September 13th 2004, 09:59 AM
fairy.gif
Glennglenn
Peasant He/Him Norway
GlennGlenn doesn't want a custom title. 
Sorry then, I must have misunderstood the situation
September 13th 2004, 10:02 AM
pig.gif
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.
September 13th 2004, 10:43 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
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.