The Dink Network

Reply to Re: does any1 no the ini stuff & the seq no. & the frame no. 2 put in 2 make the weapons work?

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:
 
 
August 3rd 2004, 06:13 AM
goblinm.gif
The file doesn't seem to come with inventory icons, which are what the numbers in add_item are for (you could have it look like a sack of pig feed in the inventory, which would be add_item("item-axe", 438, 2). But adding the actual in-game graphics involves editing your dink.ini (that of your dmod, not the default one) and is more than a little complicated.

Here's what going on: judging by the scripts, the axe is designed to replace the sword. So, here is a line in the dink.ini for the sword:

load_sequence_now graphics\dink\sword\hit\d-sa2- 102 75 52 92 -23 -12 24 11

The number "102" assigns this set of bmps (Dink facing south and swinging a sword) to sequence 102. Now, if you plan on overwriting the sword to put in the axe, you need to comment or delete the following sequence assignments from your dmods dink.ini:

(Sword idle)
12, 14, 16, 18

(Sword walk, all 8 directions)
71, 72, 73, 74,
76, 77, 78, 79

(Sword hit)
102, 104, 106, 108

That means when you see a line like:
load_sequence_now graphics\dink\walk\ds-w9- 79 43 38 72 -14 -9 14 9
which is Dink walking with a sword, you have to either put // before it or delete it.

Now, to add graphics!
Open the item-axe script, and you'll see a bunch of lines like this:
init("load_sequence_now graphics\dink\axe\walk\d-sw1- 71 43 64 69 -14 -10 14 10");
I believe that the lines you want to add to your ini are the things within the quote marks. So you copy and paste etc. Then all should work.

If you don't want to overwrite the sword, you could put the graphics into various unused sequences. You want to find three sets of ten consecutive unused sequences (Heh, I assume that an sp_base_walk has to be a multiple of 10) to assign to the axe graphics, say 850-859 for the hit, 860-869 for the walk, and 880-889 for the idle. Then you would modify the item-axe script accordingly. (Remember, then, to change it from &basehit += 100 to &basehit += 850 or whatever). Im sure this is horribly confusing, but if you play around with it, it'll work out.

One more thing... don't forget to add the item-axe script to your story folder.