Reply to Re: The Official Dinker Question Thread
If you don't have an account, just leave the password field blank.
Check your brackets, you closed the main procedure before you wanted to do so. You seem to have closed main, but opened another set of brackets. Also a problem in your talk procedure, you should use say_stop instead of say and there is an extra bracket there as well.
Add:
Perhaps this is what you wanted? I've fixed the mistakes I mentioned as well as an instance where you forgot a ';' after a wait command. If it still doesn't work, make sure the script name isn't terribly long and is attatched to your sprite. It should indeed work.
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!!",¤tt_sprite);
wait(200);
say("Good morrow, good citizens!", 1);
}
void talk(void)
{
say_stop("Good day, Sir knight!", 1);
wait(1000);
say_stop("`4Good day, sire!", ¤t_sprite);
say_stop("`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);
}
Add:
Perhaps this is what you wanted? I've fixed the mistakes I mentioned as well as an instance where you forgot a ';' after a wait command. If it still doesn't work, make sure the script name isn't terribly long and is attatched to your sprite. It should indeed work.
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!!",¤tt_sprite);
wait(200);
say("Good morrow, good citizens!", 1);
}
void talk(void)
{
say_stop("Good day, Sir knight!", 1);
wait(1000);
say_stop("`4Good day, sire!", ¤t_sprite);
say_stop("`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);
}