help me.
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!", ¤t_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.", ¤t_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.", ¤t_sprite);
wait(3000)
say("what a looser.", 1);
wait(2000)
unfreeze(1)
}
pls help me find out why.
void talk(void)
{
freeze(1)
say("who are you?", 1);
wait(3000)
say("`3I am the all powerfull helper star!", ¤t_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.", ¤t_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.", ¤t_sprite);
wait(3000)
say("what a looser.", 1);
wait(2000)
unfreeze(1)
}
pls help me find out why.
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.", ¤t_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.", ¤t_sprite);
wait(200);
say_stop("`3But sence you made fun of my name I won't tell you anything.", ¤t_sprite);
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.", ¤t_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.", ¤t_sprite);
wait(200);
say_stop("`3But sence you made fun of my name I won't tell you anything.", ¤t_sprite);
You also forgot a whole bunch of semicolons.
Yeah, I can never remember where or even if Dink actually needs semicolons. I always add them just because.
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
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?".
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?".
There is no way that I'm not including a Pufferfull Helper Star in my next d-mod!
I always place a ; after void and it works fine for me.
void talk();
{
say("`2Blabal",¤t_sprite);
}
void talk();
{
say("`2Blabal",¤t_sprite);
}











