StatReset
Latest Version: 1.0 (February 8th, 2012)
This is a simple plugin that takes the RPG plugin, mcMMO, to the next level. When the player dies, a user-specified penalty is applied to the chosen skill(s). This feature can be turned off per player or even per world with the use of permissions.
As this is an extension to mcMMO...mcMMO is required!
PERMISSIONS:
statreset.user.check - Allows usage of the /statreset check command.
statreset.user.reset - If true, the player's skills will be reset on death. If false, no stat loss will occur.
statreset.admin.deathmessage - Allows usage of the /statreset deathmessage command.
COMMANDS:
(/sr is the alias of /statreset)
/statreset check - Shows if StatReset on death is on/off.
/statreset deathmessage - Shows the displayed death message (for debug).
CONFIG:
type - The type of penalty; "level" to remove levels or "experience" to remove experience.
penalty - When using type "level", this is the number of levels remove and if the number is set to 0, ALL levels are removed. When using type "experience" this is the percentage of current experience to be removed (eg 100 = 100% and 17 = 17%).
affectedSkills - the list of the skills that are affected by the penalty.
deathMessage - the string that is displayed when a player's stats are reset. Use "&skills" to display the skills affected and "&penalty" to display the applied penalty.
@Lumireaver
The plugin already as the capability of removing a percentage of levels rather than experience, however the percentage is global. I'll see if I can work in a way to set the value per skill in the next update as well as a compatibility patch.
If you choose to continue working on this plugin, could you add a way to remove a percentage of levels (not experience, so dying at lv100 leaves you at lv50, and dying again would leave you at lv25...) This would punish higher level players more for dying than it would lower level ones, which adds a bit of balance, I think.
Additionally, if certain skills could be handled differently instead of being exempted entirely, that would also be nice. (IE: All skills lose 50% except fishing and repair, which only lose 25%...)
I haven't gotten the chance to actually use your plugin since it's currently incompatible, but this seems to be precisely what I'm looking for, and regardless of what you chose to do, I thank you for your contribution to the community. :I
edit: Oh, it seems I've misunderstood what you meant by the level penalty in the first place. I thought the level setting just took a set amount of levels, and not a percentage.
Creates errors when I use it with the latest version of mcMMO and CB1.2.5, will it be updated?
works with 1.2.3?
@SHiLLySiT
Yep works properly now thanks!
@mrdeadlock
I have uploaded 1.0.1 that patches the problem you found. The file is waiting for approval.
Awesome. I can't wait!
@mrdeadlock
Oh, I see what you mean. That was an oversight on my part because I thought the removeXP method from mcmmo handled de-leveling. I'll fix it in a patch sometime this week.
The way it is right now, if you die with level 9 0/1200 (towards level 10) you wont lose anything. I have it set so that when you die you lose 100% of your experience (full wipe of your in progress leveling) but if you die going back to your stuff, there's no penalty, I want to make it more of a challenge, and have a way to lose levels or experience depending on what/how much you'll lose. OR if experience is all at 0% you lose X levels
@IronPython
It is already set to remove a percent of the current level. The percentage can be set with the penalty node in the config file.
@SHiLLySiT
can you set it up to be % for level that way when u die you lose 2% of your current level that way its not a fix number
@mrdeadlock
Are you asking: if the "experience" mode is set and the player is at 0 exp for the current level, the player shouldn't lose anything at all?
Would it be possible to make the penalty a lil more robust. For example have a 'percentage' removed of experience, but if the skill is at 0/1000 experience but level 9, they'd then lose that portion. If a skill is at 0 exp and you have exp set, it won't downgrade the skill a level. Does that make sense? My explanation sounds like crap.
Looking forward for an update! =]
Should be basically this framework for your listener where you replace the hardcoded 0.25 with a config value drawn from configuration:
Just to let you know that we are on watch for the new version =)
My need would be 50 % loss upon death, until that we keep on losing everything ;)
Aw man, I really needed a plugin like this. Im guessing it wont be updated? :(
@teegee543
Ah, sure! I'll push out an update soon with configurable death punishments. =]
Great idea! Can you add an additional config option that takes away a percentage of the total experience for each skill when someone dies? Taking away all of a person's experience is too cruel, but it would certainly make death a little scarier.