The Dink Network

Reply to Re: Updated Files: Malachi and Achievements

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:
 
 
September 18th 2014, 08:50 PM
custom_coco.gif
CocoMonkey
Bard He/Him United States
Please Cindy, say the whole name each time. 
Thanks, Dan.

On Malachi the Jerk: I originally intended to wait until Robj finished posting the Let's Play to update this DMOD, but in retrospect that was a dumb idea anyway.

I finally figured out the problem with the Mudwalk speed change that people have been complaining about since right after the initial release - at least, I hope I have. I could never reproduce the bug myself anyway.

Here's what I think the problem was: Before changing Dink's speed, I would check to see whether he was wearing the Herb Boots. For some reason, I did this by checking Dink's actual speed, like this:

int &dinky = sp_speed(1, -1)

if (&dinky == 3)
{
set_dink_speed(4)
sp_frame_delay(1, 75)
}

if (&dinky == 6)
{
//they've got the herb boots on, so make speed normal
set_dink_speed(3)
sp_frame_delay(1, 0)
}


This usually worked - and it always did for me - but I don't think sp_speed is designed to directly report the value from set_dink_speed, so it's unreliable. I changed it to what I would have done in the first place if I weren't crazy. If you know anything about DinkC, you already know what I changed it to:

int &dinky = compare_weapon("item-bt")

if (&dinky == 0)
{
set_dink_speed(4)
sp_frame_delay(1, 75)
}

if (&dinky == 1)
{
//they've got the herb boots on, so make speed normal
set_dink_speed(3)
sp_frame_delay(1, 0)
}


Yup, it took me this long to figure out that I should have done it the obvious way instead of the dumb way. I have no idea why.