The Dink Network

Reply to The Official Dinker Question Thread

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 19th 2006, 02:33 AM
anon.gif
Dinker
Ghost They/Them
 
I made this so I won't clutter up the entire forum with all my questions. Anyway, question #1:

I'm trying to create a pie that heals some health and set it on a table. I also want the pie to respawn every time I enter that particular room even if I had previously eaten it. In DinkEdit, I have it tied to script homemadepie. It ain't working

homemadepie.c:

Here's the code:

void main( )
{
sp_touch_damage(&current_sprite, -1);
sp_nohit(&current_sprite, 1);

}

void touch( void )
{
&life += 3;
if (&life > &lifemax)
{
&life = &lifemax;
}
Playsound(10,22050,0,0,0);
sp_brain_parm(&current_sprite, 10);
say("Arwen! This is delicious!",1);
sp_brain(&current_sprite, 12);
sp_touch_damage(&current_sprite, 0);
sp_timing(&current_sprite, 0);

}