The Dink Network

Reply to Re: How do i make a dink smallwood DMOD???

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
May 11th 2006, 11:39 AM
pq_skull.gif
dinkme
Peasant He/Him India
 
You can always copy scripts like main.c and start.c and edit them.
But you would rather prefer to create scripts from scratch like talking with a NPC or something like that.
For example you want to talk with a tree:
Paste the tree in the editor and name its script "tree"

Now go into the story folder of your Dmod and make new "tree.txt" file. Rename it to "tree.c". When windows asks you "Do you want to change its extension". Say yes.

Now edit the script in any program you want:

void talk();
{
freeze(1);
freeze(&current_sprite);
say_stop("What a beautiful tree!",1);
say_stop("`4Thank you human.",&current_sprite);
unfreeze(1);
unfreeze(&current_sprite);
}

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