The Dink Network

sp_blood() ?

April 28th 2013, 05:20 PM
wizardg.gif
Has anyone used this command?

sp_blood(int sprite, int seq, int num);

seq is the starting sequence of blood, num is how many sequences to randomly choose from after the first.

I've been trying to use this command so sprites that shouldn't bleed (i.e stone giants) don't, but I can't seem to get it to work.

Is there a certain way it has to be used, or does it just not work?
April 28th 2013, 08:56 PM
dinkdead.gif
That would be because sp_blood() doesn't exist

You're mixing together sp_blood_seq() and sp_blood_num().

sp_blood_seq(&sprite, &seq);
//&seq is the starting sequence this sprite uses for blood

sp_blood_num(&sprite, &num);
//&num is the *random* number of sequences for the sprite to play for blood

For example, 187 is the default &seq and 3 is the default &num, so a sprite will play a random sequence between 187 and 190.

Important note: If you change one of these only, it will not work! You need to set both of them, even if you leave one of them at the default.
April 28th 2013, 09:24 PM
wizardg.gif
I was just going by how it was set up in the DinkC reference. Thank you.