The Dink Network

DinkC script doesn't run!

October 2nd 2006, 01:15 PM
anon.gif
George
Ghost They/Them
 
I was using the tutorial included in the game to make a D-MOD. It all worked out fine until I got to scripting. I went to sprite-edit mode, push Shift-5, and attached "tree". Next, I created the file "tree.c" in my "Story" dir with the following:

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

When I punch the tree, nothing happens. When I try to edit the "start-1.c" file's "sp_map", nothing changes.

Please Help!

October 2nd 2006, 04:18 PM
anon.gif
slayer4990
Ghost They/Them
 
That looks like it should work, but I sometimes get that error too, just for experimentation purposes try switching the "say" with "say_stop"
October 2nd 2006, 04:52 PM
anon.gif
George
Ghost They/Them
 
Nope, it didn't work.
October 2nd 2006, 05:13 PM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
Try to add a random number or two to the end of the filenames. Could be a problem there.
October 2nd 2006, 08:29 PM
anon.gif
George
Ghost They/Them
 
What do you mean?
October 2nd 2006, 08:55 PM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
Ie, call the file tree555.c
Hell, you never know.
October 2nd 2006, 08:56 PM
anon.gif
George
Ghost They/Them
 
I decided to delete everything and start from scratch, and now everything works fine. Thanks for the support guys.
October 2nd 2006, 10:03 PM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
Glad we could help.