The Dink Network

bug with touch

Ice Orb Spell

June 28th 2007, 12:37 AM
wizardb.gif
Endy
Peasant He/Him United States
 
Found a bug where the touch level isn't being reset after the creature is frozen. Noticed it after freezing some of the stronger pillbugs and then not being affected by them.

From what I could tell, &touch seems to be staying at -1.
September 29th 2008, 07:38 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Although I never noticed this topic, I suppose I should give a solution for anyone else who needs it.

It's not really a bug, it's just my lack of knowledge at the time that you can't store touch damage in a variable.

[ex: &whatever = sp_touch_damage(&sprite,-1);]

I should've caught something this important before though.
The solution is to go into frozen.c and comment out or delete anything that has to do with touch damage. There's ~3 lines that should be deleted.

Anyone who's used this spell in whatever should do this to fix the 'bug' and I'll look into making the next version soon.
September 30th 2008, 08:30 AM
wizardb.gif
Endy
Peasant He/Him United States
 
There's also something oddball with the fish, they'll turn into ducks after getting unfrozen. Kinda funny, but probably not intentional
September 30th 2008, 09:30 AM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
That sounds fishy. Definitely not intended though.

I can't seem to replicate this bug. They do say "frozen" and they do continue to jump though. Maybe it has something to do with your fish? did you modify or use any other fish than the fish1.c script in the original game?

The best you can do for this is to go into dam-iorb.c where it spawns frozen and make a condition based on the fish's sequence. Luckily we checked the sequence earlier to see if the target was a fireplace. This should work.

if (&isfire != 434)
{
//freezing targets if they are still alive
&frozen = &missile_target;
freeze(&missile_target);
spawn("frozen");
}