The Dink Network

Reply to Re: finding the scroll

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:
 
 
August 5th 2006, 12:04 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
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(&current_sprite, -1);
}

void touch( void )
{
// Make it so the touch procedure is not run over-and-over
sp_touch_damage(&current_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(&current_sprite, -1);
return;
}

add_item("item-nut", 469, 7);

say("I have the scroll.", 1);
&story = 27;

int &hold = sp_editor_num(&current_sprite);
editor_type(&hold, 1);

sp_active(&current_sprite, 0);
}