The Dink Network

Reply to Re: Hanging hags

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 9th 2012, 07:22 PM
spike.gif
Yikes! I assume you're playing on FreeDink?

I actually had quite a few problems when I tried the dmod on both FreeDink and DinkHD. ;/ I rather lacked the inclination to fine tune it for other versions besides v1.08 (Aural+) at that point (it's super annoying, since there's nothing technically wrong with the code...) though I probably should have.

When two of the hags are dead, this code in the third one's hit procedure should run:
if (&story == 19)
{
sp_hitpoints(&current_sprite,0)
sp_brain(&current_sprite,19)
spawn("4fend")
}


There are two things that I think are most likely to freeze it there:

1. 4fend.c seems to be saved with unicode encoding, rather than the ANSI encoding usually used in scripts. Try opening the script and saving it again in ANSI encoding. This might remove some Äs and Ös from the script, but I'm not sure if that's a problem (they're only used in variable names). (I tried uploading an ANSIed version of the script on my website, but apparently the internet hates line breaks or something. )

2. Finding sprites by a fake brain might not work in FreeDink? There is this code in the beginning of 4fend.c:
freeze(1)
int &hag1 = get_sprite_with_this_brain(19,0)
sp_brain(&hag1,0)
sp_touch_damage(&hag1,0)