Now pulling my hair out................
void die ()
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
This is in a die proc. from the dink source, and it works well to kill off a sprite in the original, but when I use it in my dmod, the sprite always comes back. Can anyone tell my why?(please hurry, I have little hair to spare..)
<edit>
These are in editor placed sprites, not create_sprites
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
This is in a die proc. from the dink source, and it works well to kill off a sprite in the original, but when I use it in my dmod, the sprite always comes back. Can anyone tell my why?(please hurry, I have little hair to spare..)
<edit>
These are in editor placed sprites, not create_sprites
maybe its...
void die(void)
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
void die(void)
{
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 1);
}
adding void in the brackets makes no differance.
These same lines work right in some scripts (creatures), but not others (scrolls picked up or rocks blown up.)
wierd.
Now drawing a toupee with MS paint.......
These same lines work right in some scripts (creatures), but not others (scrolls picked up or rocks blown up.)
wierd.
Now drawing a toupee with MS paint.......
This is a long shot maybe, is this in a room you enter or leave by way of a scripted warp? I've had problems with editor_type and scripted warps. (but not standard warp sprites)
Good insight, but no. Most of these you just walk up to. Mabey I'll just waste a few globals and kill them.
One other thing you can try: copying the world to a new map, screen by screen. Sometimes it just seems to get corrupted or something, and that fixes it. It's pain for sure though.
It sure is. Nothing could be found in mine, though, but still it worked importing it into a new map.
try this one:
void die(void)
{
editor_type(¤t_sprite, 1);
}
void die(void)
{
editor_type(¤t_sprite, 1);
}
theprophet:
try this one:
void die(void)
{
editor_type(¤t_sprite, 1);
}
I wouldn't if I were you. That'll kill something else more or less at random.
try this one:
void die(void)
{
editor_type(¤t_sprite, 1);
}
I wouldn't if I were you. That'll kill something else more or less at random.
I always use it, because I place the things with that command in the editor and I dont use it with create_sprite... no worries