The Dink Network

Reply to Re: Tips for others...

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:
 
 
April 8th 2005, 07:43 PM
death.gif
I'll put a few more on here. I hope you'll do the same.

Tip 8. Always put semi-colons ; <<those things at the end of a command line. This is so that the program can know to go to the next line.

Tip 9. Always remember that Dink is 1. When making a conversation script you must put 1 at the end for Dink, and &current_sprite at the end for if the sprite you have this script attached to is saying it. i.e.

void talk(void)
{
freeze(1);
say_stop("`3Boo!", &current_sprite);
wait(200);
say_stop("You scared me!", 1);
wait(200);
say_stop("`3Oh, I'm sorry.", &current_sprite);
wait(200);
say_stop("Please leave me alone...Or I'll hit you!", 1);
unfreeze(1);
}

Where you see the
say_stop("`3Oh I'm sorry.", &current_sprite);

The &current_sprite is telling the script to put the text over the sprite the script is attached to.

say_stop("You scared me!", 1);

The 1 tells the script that it is Dink that is talking. That way it will put the text over Dink in the default yellow color.

Tip 10. To make an indoor screen not show up on the players map, go into DinkEdit and put the square over the red tile in which the indoor place is. Press the "s" button and it will put an "s" in the corner of that square. That makes it to where when Dink hits the "m" button in game while he is indoors it will show him where he last was outside. Use this so if you make the indoors at the top 5x5 set of squares it wont say Dink is up there when he is really on map 456.

Tip 11. To set a midi on a screen, just do the same as tip 10, only on the desired map press the "m" key over the red square. Then type the name of the midi. If you haven't already, you need to rename all of your midis with a numerical number. So if you have a midi called, the_rest_of_our_lives.midi then rename it 1.midi. That way the editor can read it. Make sure to remember what number each Midi is so you wont forget which one you want and you have to listen to them all again.

Tip 12. Anything you submit on here can be used by other authors. If you create new tiles and you put them in a dmod and upload it, they can be used by others. Don't be upset if someone uses your things. They do however need to give credit to the original authors.