The Dink Network

Reply to Re: Noob Questions

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:
 
 
July 19th 2006, 04:51 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Well the editor can be used to create a map for Dink. But having just a map is pretty boring, so we want the player to influence what happens. That's where scripts are for, they can be used to control how the world reacts to the player's actions.

1- You can make a monster with the editor but it would have a few flaws, like it would imidiately reïncarnate when Dink re-enters a screen and it wouldn't leave any nice bonusses behind. So it's best to script a monster, if you haven't got any experience I would recommend to just copy a monster script from the original game. (the .c source files can be found in the source.zip in the development folder, monsterscripts can be recognized by the en- prefix) Attach this script to the sprite you want to be a monster, and edit the line sp_exp(&current_sprite,<number> ) ; into the desired value.

2- Sorry I have worked with WinDinkEdit (a different editor) for so long that I've forgotten how to do that in DinkEdit (the Ubereditor as you call it ).

3- Again this is something that can't be done in the mapeditor, you need to make a new script attached to the sprite Dink should talk to, make it like this:

void talk(void)
{
freeze(1);
freeze(&current_sprite);
say_stop("Hello",1);
say_stop("Hello to you too",&current_sprite);
unfreeze(1);
unfreeze(&current_sprite);
}

the freeze commands are there to make sure Dink can't move during the conversation, and the unfreeze commands are to make Dink move again after the conversation. Lines like say_stop("Hello",1); are lines that Dink says, lines like say_stop("Hello to you too",&current_sprite); are things the other person says.

4- I could explain it to you, but judging from the questions you ask you should be toying around with the editor some more and not doing all kinds of new graphics. (Plus I'm to lazy too write it all down here since a lot can be said about it)

5- A picture called TITLE-01 in your GRAPHICS folder should do the trick, just make sure it's in the right pallette. To edit the location of the buttons and things like you need to edit START.c, but you don't sound like you're ready for that yet. (just prove me wrong)