Gammon Forum
Entire forum
SMAUG
Running the server
Smaug alignment
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Fri 25 Feb 2005 12:31 AM (UTC) |
Message
| 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? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Greven
Canada (835 posts) bio
|
Date
| Reply #1 on Fri 25 Feb 2005 12:41 AM (UTC) |
Message
| I don't know how the SMAUG one works, but this is what I'm using on an SWRint 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. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
8,044 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.