The Dink Network

Reply to Re: Adding items help

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:
 
 
July 5th 2008, 08:51 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Use a script like this: (It's a bit basic, you can add all the fancy stuff you like to it.)

void main(void)
{
sp_touch_damage(&current_sprite,-1);
}
void touch(void)
{
add_item("<script>",seq,frame);
say("Hey! I picked up a pumkin!",1);
int &hold = sp_editor_num(&current_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
In this script the seq and frame are the sequence and the frame of the sprite you whish to see in the inventory. (For example 438,7 for a sword) <script> is the name of the script of the pumpkin.

And how do you mean use it? What's it supposed to do?