The Dink Network

Reply to Re: 2 more development qestions.

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:
 
 
April 5th 2011, 07:05 PM
spike.gif
Something like this should work for checking that it's Dink punching the sprite:

if (sp_brain(&missle_source,-1) == 1)
{
int &dogfist = compare_magic("dog-fst");
if (&dogfist == 1)
{
say("Dink came and whacked me good, SOB, I am now turning into a puppy.",&current_sprite);
//etc
}
}


There's a problem, though, in that this works just as well if Dink just has dog fist *armed* and hits the thing with his normal fist. Maybe checking &magic_level or some fidgetry with globals... I don't know.