Reply to Re: finding the scroll
If you don't have an account, just leave the password field blank.
That script is attached to a sprite in Dinkedit or WinDinkedit, right? If so, Striker's solution should work... although perhaps the script is being a tad bit annoying because of touch damage issues. Hrm. Try this:
void main( void )
{
sp_touch_damage(¤t_sprite, -1);
}
void touch( void )
{
// Make it so the touch procedure is not run over-and-over
sp_touch_damage(¤t_sprite, 0);
int &junk = free_items();
if (&junk < 1)
{
say("I'm full! I can't pick up anything else.", 1);
// Allow Dink to touch the sprite again in a couple seconds
wait(2000);
sp_touch_damage(¤t_sprite, -1);
return;
}
add_item("item-nut", 469, 7);
say("I have the scroll.", 1);
&story = 27;
int &hold = sp_editor_num(¤t_sprite);
editor_type(&hold, 1);
sp_active(¤t_sprite, 0);
}
void main( void )
{
sp_touch_damage(¤t_sprite, -1);
}
void touch( void )
{
// Make it so the touch procedure is not run over-and-over
sp_touch_damage(¤t_sprite, 0);
int &junk = free_items();
if (&junk < 1)
{
say("I'm full! I can't pick up anything else.", 1);
// Allow Dink to touch the sprite again in a couple seconds
wait(2000);
sp_touch_damage(¤t_sprite, -1);
return;
}
add_item("item-nut", 469, 7);
say("I have the scroll.", 1);
&story = 27;
int &hold = sp_editor_num(¤t_sprite);
editor_type(&hold, 1);
sp_active(¤t_sprite, 0);
}







