📧 Message Board Archive

ANOTHER small PROBLEM (DMODS)...
You lot must be getting sick of this now! Anyway, this is copied from a help file redink posted:



'Now we next to get out our handy-dandy text editor to make this script.



All scripts must reside in the STORY dir.



Go inside and create a file called "TREE.C" and edit it.



Put this in:



void hit(void)

{

say("'4Ouch!", current_sprite);

}



Save it.  Now play the game.   The tree will say "Ouch!" when you hit it.  In

red even!  The '4 is a color code)



What about if Dink hits the look/talk button while looking at the

tree?  Ok, add this to your tree.c file:'



It's the first bit that's important really.



'handy-dandy text editor' - What?



When I go in the story folder I get a load of files with the Microsoft symbol on with a white background. When you click on it, it says 'open with...'. What do I open it with to be able to edit it with? Is it some kind of Dink text editor or can you use notepad or what?



Thanks :o



Re: ANOTHER small PROBLEM (DMODS)...
You could get pretty far just by reading other people's (including Seth's) scripts, but you really need dinkc.txt to understand what's going on. It's a bit large to post here I think, So I'm going to mail it to you. I hope it helps.



And to answer your question, to have a sprite do something when dink talks to it, rather than hits it, you simply do the same as in the tree example only you replace:

void hit( void )

with:

void talk( void )
Re: ANOTHER small PROBLEM (DMODS)...
OK, thanks for e-mailing the file Paul, it's much appreciated!



Also thanks to Josh. What does everyone use to edit with, notepad or a 'dinkc editor'? Which is easier to use?



Thanks.

Re: ANOTHER small PROBLEM (DMODS)...
: OK, thanks for e-mailing the file Paul, it's much appreciated!



: Also thanks to Josh. What does everyone use to edit with, notepad or a 'dinkc editor'? Which is easier to use?



: Thanks.



I just use notepad, because that's what I got in the habit of using. Likewise I use DinkEdit for the maps. But for a new user, such as yourself, Something like Dinkcedit might be useful. There's also a program called WinDinkEdit which, in general is better than DinkEdit, but I got in the habit of using DinkEdit, so that's what I use.
Re: ANOTHER small PROBLEM (DMODS)...
: OK, thanks for e-mailing the file Paul, it's much appreciated!



: Also thanks to Josh. What does everyone use to edit with, notepad or a 'dinkc editor'? Which is easier to use?



: Thanks.



my opinion is that notepad is easiest to use



Re: ANOTHER small PROBLEM (DMODS)...
you can use notepad (i do) or download a .c editor