The Dink Network

say() hit() do nothing

May 3rd 2010, 03:14 PM
anon.gif
guest
Ghost They/Them
 
Trying to make a dmod for the first time and i´m following the toturial in /dink/develop.
i placed a tree, clicked it, hit shift+5 to assign script file, wrote TREE, hit enter and saved. then i made the TREE.c, and wrote (erm, copied) the code written in the toturial. but the tree doesn´t say anything when i hit or talk to it.

I´ve been back in the editor and reassured that it´s assigned TREE and checked syntax with dinkc editor. it´s placed in /story.

heres the script copied from the TREE.c

void hit(void)
{
 say("`4Ouch!", current_sprite);
}

void talk(void)
{
say("That is a nice tree.", 1);
wait(500);
say("Thankyou, human.", &current_sprite);
}


i´ve tried changing current_sprite to &current_sprite (to please the dinkc editor, the tut1.txt does not have the & in hit()) but it still doesn´t do anything.

What am i doing wrong?
May 3rd 2010, 03:26 PM
anon.gif
guest
Ghost They/Them
 
nevermind, i changed filename and the sprites attached script-filename to lower case and it suddenly worked. sorry for making a useless thread, can´t delete it myself.

May 3rd 2010, 03:59 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
I'm sure a staff member will soon, and don't be afraid of asking when you run into problems; Happy dmoding!
May 3rd 2010, 04:04 PM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Yes, tut1.txt isn't free of problems. You might want to check out my tutorial too, it's more extensive than tut1.txt.
May 3rd 2010, 04:07 PM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Yea, meta's tutorial is awesome, I made my first dmod in like one week without any knowledge about scripting or mapping with the help of that one