The Dink Network

Re: Problem

June 29th 2007, 12:17 PM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
I have a problem with my script:
void talk(void)
{
if (&sstein == 0)
{
freeze(1);
freeze(&current_sprite);
say_stop("!", 1);
say_stop("`7Dink!", &current_sprite);
say_stop("Mr. SmileStein what are you doing here?!", 1);
say_stop("`7Well i moved from Stonebrook to here.", &current_sprite);
say_stop("Oh and where's Libby?", 1);
say_stop("`7Erm...She's outside.", &current_sprite);
say_stop("...", 1);
say_stop("I don't belive you!", 1);
say_Stop("I was near your new house cause i escaped from goblins!", 1);
say_stop("And i could see Libby!", 1);
say_stop("`7Ok you got me.", &current_sprite);
say_stop("Then tell me where she is!", 1);
sp_dir(&current_sprite, 8);
playmidi("sadness.mid");
wait(750);
say_stop("`7She stayed at Stonebrook", &current_sprite);
say_stop("`7I didn't moved here but i escaped.", &current_sprite);
say_stop("WHAT?!", 1);
say_stop("`7I didn't know what should i do.", &current_sprite);
say_stop("`7The earth is dark and evil.I telled her to go with me.", &current_sprite);
wait(750);
say_stop("`7But she refused.", &current_sprite);
playmidi("4.mid");
wait(500);
say_stop("`7Dink.You must go back to Stonebrook and save the Libby and the world.", &current_sprite);
say_stop("Ok.I'll do it.Probably Seth tok her as a slave.", 1);
say_stop("I'll go back and i kill that motherducker once and for all!", 1);
say_stop("`7Good one Dink!", &current_sprite);
wait(750);
say_stop("`7But i have a bad news.", &current_sprite);
wait(500);
say_stop("`7The road to the Stonebrook is blocked.", &current_sprite);
say_stop("So how can i get there now?", 1);
say_stop("`7I don't know.Maybe villagers will help you.", &current_sprite);
say_stop("`7Oh and if you have a problem i'll try to help you.", &current_sprite);
say_stop("Allright.", 1);
unfreeze(1);
unfreeze(&current_sprite);
&sstein = 1
}
if (&sstein == 1)
{
freeze(1);
freeze(&current_sprite);
choice_start()
set_y(240);
set_title_color 7
title_start();
Need a help...Dink?
title_end();
"No"
choice_end()

if (&result == 1)
{
unfreeze(1);
unfreeze(&current_sprite);
}
}
}
When i tested there are two options to choose.One without words second with "No" word.When i select "No" i can't move but when i select the invisible one i can move!What should i do?
June 29th 2007, 12:23 PM
custom_skull.gif
skull
Peasant He/Him Finland bloop
A Disembodied Sod 
I can't help you, but I can say that, that script sounded very cool!

BTW: It's told, not telled. And it should be come with me, not go with me.
June 29th 2007, 12:24 PM
burntree.gif
Striker
Noble She/Her United States
Daniel, there are clowns. 
Hmm... there's a fair amount of unnecessary stuff here, but if you want make sure Dink unfreezes, just put that outside of all the "if statements", but still inside "void talk()". Also, if there's only one choice, you don't even need to use "if (&result == 1)".
June 29th 2007, 12:35 PM
pq_cthunik.gif
GOKUSSJ6
Peasant He/Him Poland
Everyone should get a pizza for free in each week. 
Erm...Striker i know that but i wanted to add there some commands like how can i get to the Stonebrook etc.
June 29th 2007, 12:37 PM
anon.gif
Marpro
Ghost They/Them
 
Remember to check if you have missed semicolons... I saw that "&sstein = 1" didn't have it so you might want to fix that

If there were just one option to choose of I would say that you should skip that and let the guy just say "No". I can't really see right now what's wrong but I can take a better look later.
June 29th 2007, 09:15 PM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
I can't see anything wrong with the script other than what everyone else mentioned. But I can say that sometimes if you see no fault in your scripts and they still don't work, then redo the script. You may have missed something and when you redo the script you'll put it in and it'll work. So, if you can't find any flaws in it, then redo it. It usually works.
June 29th 2007, 11:39 PM
sob_scorpb.gif
Hades
Peasant He/Him Australia
Remember you're unique, just like everyone else. 
I tried fiddling around with the script and I found the same problem and I just cut out the set_y and it worked, I'm not sure what that was supposed to do but it was stuffing it up, a good way to find out what's wrong is to copy it into DinkC Editor and that checks it all pretty well.