The Dink Network

Reply to say() hit() do nothing

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
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?