Reply to Re: The Official Dinker Question Thread
If you don't have an account, just leave the password field blank.
October 20th 2006, 12:27 AM

Dinker


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(¤t_sprite, 280);
// Give it a speed so it actually moves around.
sp_speed(¤t_sprite, 1);
// Use the smart person brain so the character walks
around intelligently.
sp_brain(¤t_sprite, 16);
}
{
say_stop("`4ATTENTION!", ¤t_sprite);
say_stop("`4The Baron Smallwood approaches!!",
¤t_sprite);
wait(200)
say("Good morrow, good citizens!", 1);
}
void talk(void)
{
say("Good day, Sir knight!", 1);
wait(1000);
say("`4Good day, sire!", ¤t_sprite);
say("`4I'm just keeping an eye on these nobles.", ¤t_sprite);
say("`4Can never be too careful. <SALUTE>",
¤t_sprite);
}
}
void hit(void)
{
say_stop("`4Sorry my lord, I didn't", ¤t_sprite);
say_stop("`4feel that through my armour.",
¤t_sprite);
}
void main(void)
{
// Take whatever sequence you had and round it down
by 10. 351 = 350, 383 = 380.
sp_base_walk(¤t_sprite, 280);
// Give it a speed so it actually moves around.
sp_speed(¤t_sprite, 1);
// Use the smart person brain so the character walks
around intelligently.
sp_brain(¤t_sprite, 16);
}
{
say_stop("`4ATTENTION!", ¤t_sprite);
say_stop("`4The Baron Smallwood approaches!!",
¤t_sprite);
wait(200)
say("Good morrow, good citizens!", 1);
}
void talk(void)
{
say("Good day, Sir knight!", 1);
wait(1000);
say("`4Good day, sire!", ¤t_sprite);
say("`4I'm just keeping an eye on these nobles.", ¤t_sprite);
say("`4Can never be too careful. <SALUTE>",
¤t_sprite);
}
}
void hit(void)
{
say_stop("`4Sorry my lord, I didn't", ¤t_sprite);
say_stop("`4feel that through my armour.",
¤t_sprite);
}