Reply to Re: Adding items help
If you don't have an account, just leave the password field blank.
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(¤t_sprite,-1);
}
void touch(void)
{
add_item("<script>",seq,frame);
say("Hey! I picked up a pumkin!",1);
int &hold = sp_editor_num(¤t_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?
void main(void)
{
sp_touch_damage(¤t_sprite,-1);
}
void touch(void)
{
add_item("<script>",seq,frame);
say("Hey! I picked up a pumkin!",1);
int &hold = sp_editor_num(¤t_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?






