📧 Message Board Archive

QUESTION 13
In a dmod, if you create your own weapon\item, you draw an the icon for it and store it in graphics/blah, howdo you make it so that the weapon uses that icon????

i looked at the lot source, but that's no help!!!
Re: QUESTION 13
: In a dmod, if you create your own weapon\item, you draw an the icon for it and store it in graphics/blah, howdo you make it so that the weapon uses that icon????



: i looked at the lot source, but that's no help!!!



Check out the command add_item() and add_magic() which require a script and references to a graphic sequence and frame number. Make sure you've written a dink.ini load graphics line for your new grapics.



How?
Make sure you've written a dink.ini load graphics line for your new grapics.





in what format??



Re: How?
: Make sure you've written a dink.ini load graphics line for your new grapics.



: in what format??



dink.ini is the file that loads graphics in your DMOD directory to add a sprite that moves you do something like this:



load_sequence graphics\blscrp\blcp1- 881 75 59 45 -38 -23 40 34

load_sequence graphics\blscrp\blcp3- 883 75 60 47 -47 -30 41 32

load_sequence graphics\blscrp\blcp5- 885 75 60 47 -47 -30 41 32

load_sequence graphics\blscrp\blcp7- 887 75 59 44 -38 -19 43 36

load_sequence graphics\blscrp\blcp9- 889 75 60 43 -50 -19 43 36



load_sequence graphics\blscrp\blcp2- 872 75 60 60 -38 -33 40 13

load_sequence graphics\blscrp\blcp4- 874 75 75 72 -47 -48 41 10

load_sequence graphics\blscrp\blcp6- 876 75 59 72 -43 -47 43 4

load_sequence graphics\blscrp\blcp8- 878 75 60 67 -50 -37 43 6



set_frame_special 872 5 1

set_frame_special 874 5 1

set_frame_special 876 5 1

set_frame_special 878 5 1



These commands look graphics labelled blcp1-**.bmp into sequence 881. Check out the dink.ini editing guide by Gary Hertel, for a detailed explanation.