The Dink Network

Reply to Re: These things are absolutely not usable

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 13th 2014, 07:26 AM
knights.gif
DinkKiller
Peasant He/Him United States
The world could always use more heroes 
It took me 4 years to figure out how to do this (the time between my initial release of my first D-mod and the update that got the graphics working properly). I learned just by copy/pasting scripts and ini parts from other D-mods, and modifying what was necessary. It's a great way to learn.

This is in my ini file for the ice sword:
//ice sword swing animations
load_sequence_now graphics\ice\swing\down- 852 75 52 92 -23 -12 24 11
load_sequence_now graphics\ice\swing\left- 854 75 74 90 -23 -13 23 14
load_sequence_now graphics\ice\swing\right- 856 75 33 92 -18 -14 18 10
load_sequence_now graphics\ice\swing\up- 858 75 46 109 -17 -16 17 10

//set which frame can 'hit'

set_frame_special 852 3 1
set_frame_special 854 3 1
set_frame_special 856 3 1
set_frame_special 858 3 1
//make it delay on the third sprite for longer than 75

set_frame_delay 852 2 100
set_frame_delay 854 2 100
set_frame_delay 856 2 100
set_frame_delay 858 2 100

Then in the item script itself, there's a couple values you have to change in order for these graphics to be pulled up instead of the regular sword. The only bit of the sword script that needs to be changed is one specific line as far as I can tell.

&basehit += 100;

from the normal sword script needs to be changed to this:
&basehit += 850;

Or whatever your base number is for the swing animations, if you set it to something other than 85x. If you're using the improved scripts pack, the variable you change will instead be &jug += 100;

I hope that I explained this well enough and that it helps.