Reply to say() hit() do nothing
If you don't have an account, just leave the password field blank.
May 3rd 2010, 03:14 PM

guest


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
i´ve tried changing current_sprite to ¤t_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?
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.", ¤t_sprite); }
i´ve tried changing current_sprite to ¤t_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?