The Dink Network

Reply to Re: The Official Dinker Question Thread

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:
 
 
October 20th 2006, 12:27 AM
anon.gif
Dinker
Ghost They/Them
 
Indeed it worked, but I'm having a problem with an NPC. The scene is, Dink has acquired the title of Baron from the king for his deeds in the original game, so inside Dink's castle is a guard who announces his arrival into a room full of nobles. He walks around just fine, he announces the arrival perfectly, but I can't talk to him or have the void hit(void) activate. Here's the script:

void main(void)

{

// Take whatever sequence you had and round it down

by 10. 351 = 350, 383 = 380.

sp_base_walk(&current_sprite, 280);



// Give it a speed so it actually moves around.

sp_speed(&current_sprite, 1);



// Use the smart person brain so the character walks

around intelligently.

sp_brain(&current_sprite, 16);

}

{

say_stop("`4ATTENTION!", &current_sprite);
say_stop("`4The Baron Smallwood approaches!!",

&current_sprite);
wait(200)
say("Good morrow, good citizens!", 1);

}

void talk(void)
{
say("Good day, Sir knight!", 1);
wait(1000);
say("`4Good day, sire!", &current_sprite);
say("`4I'm just keeping an eye on these nobles.", &current_sprite);
say("`4Can never be too careful. <SALUTE>",

&current_sprite);
}

}

void hit(void)
{
say_stop("`4Sorry my lord, I didn't", &current_sprite);
say_stop("`4feel that through my armour.",

&current_sprite);

}