The Dink Network

HElp!

May 31st 2003, 03:50 PM
pillbug.gif
Hey! How's it going? Well any way.. I need h-e-l-p! I'm almost done with my d-mod and just noticed a REALLY REALLY big one! If I don't fix it soon I'm gonna have to bring out ol' Crowy . That's where you come in...
If one of you could PLEASE tell me my problems, *Looks at with big blue puppy eyes* I'll thank you. (Notice the caps) I'll put the script in my next post, Thanks again!
May 31st 2003, 03:51 PM
pillbug.gif
void talk(void)
{
freeze(1);
freeze(&current_sprite);

choice_start();
"Say.. Aren't those chicken heads?"
“WHAT THE HECK HAVE YOU DONE!?”
“Your satanistic behavior has left a hole in my heart (sniffle)”
"Leave and only wonder..."
choice_end();

if (&result == 1)
{
say_stop("`6Yup, I can them, than ship em to New York", &current_sprite);
wait(200);
say_stop("...",1);
wait(200);
say_stop("`6They make real good gifts",&current_sprite);
wait(200);
say_stop("how much money do you make?",1);
wait(200);
say_stop("`6I once founded a rip one on the ground!",&current_sprite);
wait(200);
say_stop("`6Heya, take one a them",&current_sprite);
wait(200);
say_stop("Thanks?",1);
wait(200);
say_stop("`6don mention it"),&current_sprite;
wait(200);
say_stop("(great! now I have a blood-leaking head!)",1);
}

if (&result == 2)
{
say_stop("`6I've just started an honest buisness",&current_sprite);
wait(200);
say_stop("SO you do this for a living!!",1);
wait(200);
say_stop("I'm gonna cal 911 on my cell!!",1);
wait(200);
say_stop("`6call who? on what?", &current_sprite);
wait(200):
say_stop("I really don't know...",1);
wait(200);
say_stop("`6did ya know that know backward is wonk!",&current_sprite);
wait(200);
say_stop("`6Like a hitcha on ya head, WONK!",&current_sprite);
wait(500);
say_stop("I give up!",1);

}

if (&result == 3)
{
say_stop("`6I sell hearts too, mightay tasty",&current_sprite);
wait(200);
say_stop("Will thou mighty hand from thy sky help me?", &current_sprite);
wait(200);
say_stop("`0NO, BUT I WILL TAKE OVER YOUR BODY", 1);
wait(200);
say_stop("agh..er...fhgdsfg..",1);
wait(200);
say_stop("`0NO LONGER WILL YOU TELL JOKES OF ME",1);
wait(200);
say_stop("FOR I AM AS EVIL AS HITLER",1);
WAIT(200);
SAY_STOP("`0AND HITLER'S GONNA WHACK THINGS UP!",1);
WAIT(200);
FADE_DOWN();
FILL_SCREEN(0);
WAIT(1000);
SAY_STOP("`6wered da lites go?",&current_sprite);
wait(200);
say_stop("Where did what go? (heh)",1);
wait(200);
say_stop("`6Uhh.. nevermind",&current_sprite):
wait(600);
say_stop("DEVIL! HAVE YOU BEEN IMPERSENATING ME?!?",1);
WAIT(500);
SAY_STOP("`0MAYBE..",1);
WAIT(200);
SAY_STOP("I WILL PUNISH SATAN USING COOL GODLY POWERS!!,",1);
FILL_SCREEN(1);
SAY_STOP("`9WONK!",1);
WAIT(200);
SAY_STOP("`6Told Ya!",&currenT_SPRITE);
WAIT(200);
FILL_SCREEN(2);
WAIT(200);
SAY_STOP("`9POW!",1);
WAIT(200);
say_stop("NOW GO FROM WHENCE YOU CAME!!",1);
wait(200);
fill_screen(3);
wait(10);
fill_screen(4);
wait(10);
fill_screen(5);
wait(10);
fill_screen(6);
wait(1);
fill_screen(7);
say_stop("`0ARGH!!",1);
wait(300);
fill_screen(0);
FADE_UP();
wait(800);
SAY_STOP("I-i-i think I gotta go...",1);
wait(200);
say_stop("`6Come back ana time now, ya heare!",&current_sprite):
}

unfreeze(1);
unfreeze(&current_sprite);
return;
}

void hit(void)
{
say_stop("`6I love you", &current_sprite);
}
\\PLEASE help
May 31st 2003, 04:01 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Um... I'd be more than glad to help... if I knew what is going wrong in the script

Edit: Hrm... maybe the colors don't change after you fade down? Unfortunatly, the way fade_down works is it basically makes every color black (except white), so your fill_screen() commands don't really do anything. You could try just using fill_screen() commands without the fade_down() and fade_up(), but then all of the sprites on the screen would still be visable.

Also, to reverse the effects of fill_screen(), try doing this instead of your fade_up():

draw_screen();
draw_status();
May 31st 2003, 04:22 PM
pillbug.gif
Thanks, I guess I needed to be more specific... But the actual problem is that when I assign the script to a sprite, and Dink talks to it, Nothing happens, and thanks for the info on the fill_screen() command.
May 31st 2003, 04:33 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Hmm... make sure the sprite is Type 1 in DinkEdit, or a Person/Creature type in WinDinkEdit.
May 31st 2003, 04:36 PM
pillbug.gif
Nope I'm sure I did that but thanks.
May 31st 2003, 04:54 PM
pillbug.gif
Maybe I have the same problem as Binrit?
May 31st 2003, 05:05 PM
old.gif
When you assign a script to a sprite, and then change his brain ( in the editor ) then you need to assign it again, check it...
May 31st 2003, 05:11 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Oh! You have this:

choice_start();
"Say.. Aren't those chicken heads?"
“WHAT THE HECK HAVE YOU DONE!?”
“Your satanistic behavior has left a hole in my heart (sniffle)”
"Leave and only wonder..."
choice_end();

Try doing this:

choice_start()
"Say.. Aren't those chicken heads?"
"WHAT THE HECK HAVE YOU DONE!?"
"Your satanistic behavior has left a hole in my heart (sniffle)"
"Leave and only wonder..."
choice_end()

Sometimes Dink doesn't want choice)start() to have a ; on the end of it. Also, had 'special' quotes around a couple of your title choices, and Dink is probably expecting normal quotes, and might have gotten confused.
May 31st 2003, 05:28 PM
pillbug.gif
Thank you! I dunno what I'd do if you didn't help me!

Oh and get ready for an upcoming epic

(Drumrole please)


THE
May 31st 2003, 05:31 PM
fish.gif
Binirit
Peasant She/Her
 
I noticed you sometimes put a space after &current_sprite and 1, but mostly you don't. Dunno if that has got something to do with the problem, but I've learned it's a good thing to always do things the same way.

say_stop("`6I've just started an honest buisness",&current_sprite);
wait(200);
say_stop("SO you do this for a living!!",1);
wait(200);
say_stop("I'm gonna cal 911 on my cell!!",1);
wait(200);
say_stop("`6call who? on what?", &current_sprite);
May 31st 2003, 05:32 PM
fish.gif
Binirit
Peasant She/Her
 
No. I had problems with storyprogress, but the scripts without any &story = blah; worked fine.
May 31st 2003, 05:39 PM
pillbug.gif
well, I meant when you said that Dink wasn't accepting the scripts
May 31st 2003, 07:55 PM
wizardg.gif
Paul
Peasant He/Him United States
 
You know, inspite of the fact that I recomended it, I still don't understand how the map can corrupt the &story variable, it isn't even used by the engine (like &magic or &gold are.
June 1st 2003, 03:14 AM
fish.gif
Binirit
Peasant She/Her
 
Neither do I. But it worked, so there must be something?