Reply to Re: How do i make a dink smallwood DMOD???
If you don't have an account, just leave the password field blank.
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(¤t_sprite);
say_stop("What a beautiful tree!",1);
say_stop("`4Thank you human.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit();
{
say("`4Ouch!",¤t_sprite);
}
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(¤t_sprite);
say_stop("What a beautiful tree!",1);
say_stop("`4Thank you human.",¤t_sprite);
unfreeze(1);
unfreeze(¤t_sprite);
}
void hit();
{
say("`4Ouch!",¤t_sprite);
}