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, 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.
Entire forum
SMAUG
SMAUG coding
World War Help
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Malti
USA (55 posts) bio
|
Date
| Fri 13 Apr 2007 05:22 PM (UTC) |
Message
| Ok everyone, I am totally lost. I know I can handle the coding but I am unsure of where to start (file and psudocode wise). So, Here is my goal. I am going to do a complete PVP mud, where you select between 3 or 4 races and your class. You get teleported to the "hometown" of your race. So far, so good. Everyone then is PVP, and you get honor points based off of killing other people of other races, and you lose points for killing your own. From there, I want to have a scoreboard of who is the top 5 in honor points for each race, also in the who command print out their personal points. I tried to examine the PKill code, but Im so confused as to where each part of the script is and how to alter it. Any ideas would be greatly appreciated. | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #1 on Fri 13 Apr 2007 06:04 PM (UTC) |
Message
| The is_safe function is used to determine if the target can be attacked or not. The is_pkill function determines if the target is able to be PKed. The can_pkill determines if the player can PK. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | top |
|
Posted by
| Malti
USA (55 posts) bio
|
Date
| Reply #2 on Fri 13 Apr 2007 08:37 PM (UTC) |
Message
| Fair Enough..Any Suggestions for the whole honor points system, maybe something I could look at for an idea?
| top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #3 on Fri 13 Apr 2007 09:25 PM (UTC) |
Message
| You'd first need to create a new variable for players. After that, I think you would want to edit the raw_kill function and add ifchecks against the races etc, and then modify the new variable as needed. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.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.
11,192 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.