The Dink Network

Reply to Re: I'm new to developing and I need a little help.

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 5th 2005, 01:25 AM
wizardg.gif
Chaotic
Peasant He/Him
 
Here is the script for the hole:

void main( void )
{
preload_seq(452);
sp_touch_damage(&current_sprite, -1);
}
void touch( void )
{
freeze(1);
sp_x(1, 472);
sp_y(1, 330);
sp_seq(1, 452);
sp_frame(1, 1);
sp_nocontrol(1, 1); sp_touch_damage(&current_sprite, 0);
sp_brain(1, 0);
wait(2000);
script_attach(1000);
//--------------------This is warp! Modify these!
fade_down();
&player_map = 182;
sp_x(1, 401);
sp_y(1, 283);
load_screen(182);
sp_brain(1, 1);
draw_screen();
fade_up();
kill_this_task();
}

add_item("[the script]", [the sequence], [the frame]); You need to make a script for the item, graphics aren't nessesary to USE the item. Dink's strength is stored in a variable, in the weapon script, put &strength += 10(or whatever); into the void arm (void) part/function and then put &strength -= 10; after, you don't want it to keep adding strength every time you equip it do you? Put the command into the 'Start-1.c' file to start out with it.

The makers of dink made a way to 'label' each button eg: key-80 is P, key-67 is C. Start up Dinkedit and press any key, at the bottom somewhere it should say [key-(number)].

A conversation script looks like this:

void main( void )
{
freeze(1)
choice_start();
"Talk" //(You can put anything in these)
"Leave"
choice_end();
if (&result == 1)
{
say_stop("Hello Bill.", 1);
say_stop("`2Hello Dink.", &current_sprite);
say_stop("Lovely weather we are having.", 1);
say_stop("`2Why yes, yes it is.", &current_sprite);
unfreeze(1)
unfreeze(&current_sprite)
}
if (&result == 2)
{
unfreeze(1)
unfreeze(&current_sprite)
}
}
(2 is dark green, thats the only one I've memorized)

To change voice color, put a " `1 " 1 can be replaced by any number between 1-9 and some other keys (too lazy to list)

You can make Dink kill Bill with several methods, change the sequence, etc

Reviews take a while to 'validate' and then be put on the site, because the staff is lazy.

Phew, finally I'm done.