Reply to The Official Dinker Question Thread
If you don't have an account, just leave the password field blank.
October 19th 2006, 02:33 AM

Dinker


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(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
}
void touch( void )
{
&life += 3;
if (&life > &lifemax)
{
&life = &lifemax;
}
Playsound(10,22050,0,0,0);
sp_brain_parm(¤t_sprite, 10);
say("Arwen! This is delicious!",1);
sp_brain(¤t_sprite, 12);
sp_touch_damage(¤t_sprite, 0);
sp_timing(¤t_sprite, 0);
}
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(¤t_sprite, -1);
sp_nohit(¤t_sprite, 1);
}
void touch( void )
{
&life += 3;
if (&life > &lifemax)
{
&life = &lifemax;
}
Playsound(10,22050,0,0,0);
sp_brain_parm(¤t_sprite, 10);
say("Arwen! This is delicious!",1);
sp_brain(¤t_sprite, 12);
sp_touch_damage(¤t_sprite, 0);
sp_timing(¤t_sprite, 0);
}