PDA

View Full Version : Dink script question



CyberDoc
11-25-2003, 08:02 AM
Hi I am rather new to this and was trying to follow the tut1.txt that came with the program. Everything was fine until i got to the point about making the tree talk or scream ouch. No matter what I try I cant get it to work.
In DinkEdit I made sure to select the sprite and hit shift 5 so I could add a script to it. then I made sure to add the code exactly like it is in the tutorial. Did I do something wrong or is the tutorial wrong?
Tutorial Text:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit&#40;void&#41;
{
say&#40;&#34;`4Ouch&#33;&#34;, current_sprite&#41;;
}[/QUOTE]

And here is what my tree.c file looks like

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit&#40;void&#41;
{
say&#40;&#34;`4Ouch&#33;&#34;, current_sprite&#41;;
}[/QUOTE]

Is there something I forgot to add?

redink1
11-25-2003, 01:35 PM
No... there&#39;s something wrong with the tutorial http://www.rtsoft.com/iB_html/non-cgi/emoticons/smile.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">void hit&#40;void&#41;
{
say&#40;&#34;`4Ouch&#33;&#34;, &amp;current_sprite&#41;;
}[/QUOTE]

Also, just to clarify another problem that might occur, when using Shift-F5 to attach a script, just type &#39;tree&#39; and not &#39;tree.c&#39;.

CyberDoc
11-26-2003, 04:48 AM
Thanks&#33; I am a total newbie to programming and thought I would attempt to learn using this fun game. Good Idea?