The Dink Network

Script Problems

June 27th 2005, 12:32 PM
duckdie.gif
I've finally learned scripting and am trying to make a tree say "ouch" when you punch it. I know I wrote it correctly into notepad

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

I save that as TREE.c and in windinkedit I right click the tree, go to properties, and i type in TREE next to script. I set it at hard as well. But everytime I test it, when I punch the tree, nothing happens. Am I missing something here?
June 27th 2005, 12:51 PM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
Yep. It is "&current_sprite" not "current_sprite".
June 27th 2005, 01:25 PM
goblinm.gif
Also, notepad likes to save as "tree.c.txt" or some such, so be sure to select "all files (*.*)" under "save as type".