Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Luck

Luck

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Tseris   (98 posts)  Bio
Date Fri 12 Oct 2007 02:04 AM (UTC)
Message
Trying to become more familiar with Smaug code, and Ive never been on a mud that used the luck attribute before. Read the helpfile on it, but thats pretty vague. Exactly what does this have an effect on? Trying to decide whether or not to keep it.

Thanks,
Tseris
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 12 Oct 2007 02:13 AM (UTC)
Message
I did this on the source code:


grep -w lck *.c


I only got 28 lines of response, most of which were simply printing the luck value. Looks like it doesn't do much.

It seems to affect polymorph a bit.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Tseris   (98 posts)  Bio
Date Reply #2 on Fri 12 Oct 2007 02:18 AM (UTC)
Message
Heh ok sounds good. Im not a big fan of it anyway. I think when I actually get my mud up and running Ill just remove it from the score screen and anything the players can see. If it actually has some purpose, so be it, but players will never know.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #3 on Fri 12 Oct 2007 08:30 AM (UTC)
Message
Actually it does quite a lot of stuff... try grepping for 'get_curr_lck' or 'chance' (which makes use of get_curr_lck) for a bunch of examples. (The problem was the -w flag, which only returned full words, and not 'lck' in bigger words.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


14,692 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.