DinkC script doesn't run!
October 2nd 2006, 01:15 PM

George
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!", ¤t_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!
void hit(void)
{
say("`4Ouch!", ¤t_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

slayer4990
That looks like it should work, but I sometimes get that error too, just for experimentation purposes try switching the "say" with "say_stop"
Try to add a random number or two to the end of the filenames. Could be a problem there.
Ie, call the file tree555.c
Hell, you never know.
Hell, you never know.
October 2nd 2006, 08:56 PM

George
I decided to delete everything and start from scratch, and now everything works fine. Thanks for the support guys.






