The Dink Network

Reply to IFF System!

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:
 
 
November 27th 2009, 08:15 AM
knights.gif
pathfinder
Peasant He/Him China
I love hanging ON LINE without doing anything... 
Still feel troubled about how to make soldiers to identify who is enemy and who is friend in a battle? This one will end the trouble forever.

...
&miff = 1 //Let's assume that this is the king's knight,so &miff equals 1.
sp_custom("iff",&current_sprite,&miff);
...
//This is targeting system.
target:int &enemy_number = &devil+&karl+&others;
if (&enemy_number == 0)
{
goto get_this_position
}
int &mtarget = get_rand_sprite_with_this_brain(9,&current_sprite);
sp_target(&current_sprite,&mtarget);
int &tiff = sp_custom("iff",&mtarget,-1);
if (&tiff = &miff)
{
goto target;
}
...
get_this_position p_brain(&current_sprite,16); //Peace time,let's wander around.
...
//dead,king's knights have one loss.
void die(void)
{
...
&king -=1;
...
}