The Dink Network

Reply to Picking stuff up so it never comes back

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 3rd 2010, 09:20 AM
boncag.gif
JugglingDink
Peasant He/Him United Kingdom
Streetfish 
Me again, with another question, I haven't posted in a while as I don't have access to the net at the moment (I'm typing this using a wifi café thing)

How can you get dink to pick stuff up so that it never comes back again? Also, when he picks it up, it doesn't need to go into his inventory or change any of his stats or anything, it just needs to change a global variable.

My attempt doesn't quite work, it's a bit unstable (Sometimes it works, other times it doesn't). I was using this as a temporary bit of code so I could carry on making the rest of the D-Mod 'till I had a chance to ask/find out the proper method: (I'm afraid I don't know how to format it nicely)

void talk(void)
{
freeze(1);
if (&story < 7)
{
say("Hey, a skull! I wonder what it's doing here...", 1);
}

if (&story == 7)
{
say_stop("A skull is a type of bone, right?", 1);
wait(500);
sp_x(&current_sprite, 750);
sp_y(&current_sprite, 500);
editor_type(&current_sprite, 1);
&wdbone += 1;
say_stop("`%<Got Skull>", 1);
wait(500);
say_stop("That brought my total number of bones up to &wdbone", 1);
}

unfreeze(1);
}

So yeah, any help appreciated
I think I might of found how to do it in the DinkC Reference, but I don't really understand it which stops me using it properly...

(Oh, and in case it affects anything {Though I don't see why it should} I am trying to do this using a skull sprite)