The Dink Network

help me.

November 26th 2006, 06:01 PM
dragon.gif
drath
Peasant He/Him United States
Humans are crunchy and filled with Katchup. 
I'm scripting my first d-mod and it shuts down the game when reading this script
void talk(void)
{
freeze(1)
say("who are you?", 1);
wait(3000)
say("`3I am the all powerfull helper star!", &current_sprite);
wait(3000)
say("what do you have to tell me all pufferfull helper star.", 1); (shuts down here)
wait(3000)
say("`3I was going to tell you sumthing about the game and the meaning of life but sence you made fun of my name I won't tell you anything.", &current_sprite);
wait(3000)
say("But will you tell me any thing pls im sorry.", 1);
wait(3000)
say("`3Fine I'll tell you about the game the person who is the creater of this game isnt good at makeing games yet so people won't move.", &current_sprite);
wait(3000)
say("what a looser.", 1);
wait(2000)
unfreeze(1)
}

pls help me find out why.
November 26th 2006, 06:29 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Well, first of all, I'd replace each say() with a say_stop(). This slows down conversation quite a bit, but allows it to go faster if the player wants by pushing the talk button. Once you've changed that, cut down the wait() times to about 100 or 200.

Also, I don't know if this has anything to do with the game shutting down, this line might be too long for the game to display:
say("`3I was going to tell you sumthing about the game and the meaning of life but sence you made fun of my name I won't tell you anything.", &current_sprite);

You should change it to something like this:
say_stop("`3I was going to tell you sumthing about the game and the meaning of life.", &current_sprite);
wait(200);
say_stop("`3But sence you made fun of my name I won't tell you anything.", &current_sprite);


November 27th 2006, 01:06 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
You also forgot a whole bunch of semicolons.
November 27th 2006, 07:51 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Yeah, I can never remember where or even if Dink actually needs semicolons. I always add them just because.
November 28th 2006, 09:10 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
The freeze/unfreeze commands don't need them and I wouldn't know if wait needs them.. I always add a semicolon to the wait commands but rarely to the freeze/unfreeze ones, it's kinda odd
November 28th 2006, 10:21 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Place them everywhere except on voids, conditions, "loops" and {}s.

Btw Drath, I'd do something about your spelling and punctuation if I were you. Nothing more annoying than reading something like "what do you have to tell me all pufferfull helper star." instead of something like "What do you have to tell me, all pufferful helper star?".
November 28th 2006, 11:06 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 
There is no way that I'm not including a Pufferfull Helper Star in my next d-mod!
November 29th 2006, 06:23 AM
pq_skull.gif
dinkme
Peasant He/Him India
 
I always place a ; after void and it works fine for me.
void talk();
{
say("`2Blabal",&current_sprite);
}
November 29th 2006, 01:17 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Holy crap, that's one hell of an exception, because that isn't allowed in any other more-like-C-or-JS scripting lamguage!