Smaug alignment

Posted by Zeno on Fri 25 Feb 2005 12:31 AM — 2 posts, 11,763 views.

USA #0
How does the alignment work on Smaug? It seems to not work...

For example a player with 0 align kills a mob that has +500 align. The players align does not change how ever many times it kills the mob.

I looked over align_compute, but I can't really see how to change it or if I'm just setting mob aligns incorrectly.

Could someone shed some more light on this issue?
Canada #1
I don't know how the SMAUG one works, but this is what I'm using on an SWR
int align_compute(CHAR_DATA * gch, CHAR_DATA * victim)
{

/* never cared much for this system

    int align, newalign;

    align = gch->alignment - victim->alignment;

    if ( align >  500 )
	newalign  = UMIN( gch->alignment + (align-500)/4,  1000 );
    else
    if ( align < -500 )
	newalign  = UMAX( gch->alignment + (align+500)/4, -1000 );
    else
	newalign  = gch->alignment - (int) (gch->alignment / 4);
    
    return newalign;

make it simple instead */

        return URANGE(-1000,
                      (int) (gch->alignment - victim->alignment / 5), 1000);

}
Simply subtracts the victims align from yours.