Damage system based on lore

Discussion in 'Archived: Plugin Requests' started by WorwardSackward, Mar 8, 2013.

  1. Offline

    Lotsov

    The problem is that from what I can tell, PhatLoots and the plugin Lores, can only add descriptions and vanilla enchantments such as Sharpness X, but what I'm currently looking for is a way to get custom damage on a weapon. I'm looking for a way for a player to slay a mob and get a iron sword for example, and this sword will have the original damage overwritten, so instead of doing the normal 7 damage, it'll do 6~11 damage per hit.

    PhatLoots is good in the respect that it can drop items from EpicBoss monsters, but the items will only have damage values set by the enchantment rather than having it generate a random range of damage that an item can have. Similar to what RPGItems , which allows you to create a item with a minimum and maximum range a item can do damage, but with EpicBoss support.
     
  2. Offline

    Codisimus

    Lotsov I was suggesting those just for spawning the items. Something else will have to calculate the damage based on the lore like you said. I can help you configure PhatLoots to generate a random range of damage as the lore. If necessary I can add more features to suit your needs.
     
  3. Offline

    Lotsov

    That would be amazing!
     
  4. Offline

    CreeperShift

    I'm sorry for the lack of updates but I've been busy working on a website for a client, while that finding time to code my own plugins and this. I have not forgotten you!

    Also, Lotsov mentioned damage ranges, it's something I can surely add at a later date.
     
  5. Offline

    Lotsov

    I have a quick question for the both of you, seeing as how making the weapons is possible, is there any chance to do the same on the armor.

    For example make a Iron Chest plate give 80HP, thus making the character HP 100 (Seeing as how the normal HP value is 20), but at the same time have this also apply to monsters that wear it. Seeing as how PhatLoots works along side with EpicBoss, would you think such an armor that increases HP of the wearer would increase the HP of the monster as well?
     
  6. Offline

    CreeperShift

    I'm still trying to come up with a good way to store health as I don't believe you can increase vanilla MineCrafts health beyond 20.

    For Monsters, I guess that should not be such a huge issue altho it will take some time as I really just don't have the time to work on this full time ;)
     
  7. Offline

    Codisimus

    entity.setMaxHealth() and entity.setHealth(). I am pretty sure you can go as high as you want.
     
    CreeperShift likes this.
  8. Offline

    CreeperShift

    Haven't tried it out before, but that's lovely! I always thought it was capped at 20 :p
     
  9. Offline

    Lotsov

    I don't really mind how long this will take, gives me much more time to work on the map. So, if possible, take as long as you need. However, would there be any way to make the HP value increase depending on the lore?

    Such that a item named: Healthy can add HP in the range of 70-90, making items more random or is that a bit too much? This way, just as the weapons, armor drops are also random.
     
  10. Offline

    CreeperShift

    What do you mean? It takes the value from the lore and adds it to your health ;)

    Also, do you have skype or something? I need to test what I have so far :p

    I can understand why you would want the range for damage, but why for health? Would it be recalculated every hit if the player has x max health or y max health? That would just be weird :p. Or would it be decided when the player equips it? So they would just equip/unequip it until they have the max value :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  11. Offline

    Lotsov

    I do have a skype, all you need to do is search up ----------------, I'm the only one that comes up with that name.
     
  12. Offline

    CreeperShift

    Alright, added you!

    Lotsov and WorwardSackward

    I have uploaded a TEST version:
    http://creepcraft.net/LoreAttributes.jar

    What currently works:

    It takes the first value it finds, as long as the lore contains either damage or health (caps don't matter).
    Damage calculations work fine.

    Health works too, you can add to your max health and take it away when you unequip it, however it's really buggy and can easily be cheated with! It also doesn't take losing armor due to durability and death in account yet!

    There are 3 commands:
    /heal -heals you
    /health - shows ur current health
    /maxhealth shows your max health

    these commands are there for testing purposes, they don't have any permissions because this is not supposed to be used for a live server!!!!

    I'm going to say it again, if you use this on ur live server it will cause tons of problems!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
  13. Offline

    noraver

    CreeperShift
    i didnt test out damage only HP for the moment here are a few things to point out.
    shift clicking armor dose not apply HP as u can see here http://pastebin.com/3zYjPWBY
    also when armor breaks the HP is not removed from the player as u will see in the video.
    armor has no effect on mobs
     
  14. Offline

    CreeperShift

    I'm aware of all these bugs :p This wasn't a "test and tell me what works" but more like a "preview" version so show everyone I'm still on it ;)

    Still, thanks for your effort :)
     
  15. Offline

    noraver

    CreeperShift
    =P keep up the good work cant wait to see a more refined version of your work =)
     
  16. Offline

    CreeperShift

    That's going to take me a liiitle bit more time.

    I'm currently still working on a website for a client and I'm also making a plugin for my server where I've ran into a few issues, but no one in the dev section is responding to my help thread :(
     
  17. Offline

    WorwardSackward

  18. Offline

    noraver

    Thats understandable i run my own website for my products so i know about how clients can timing for there stuff. Sorry to hear about the dev not responding hope they get around to it. when have a new update for the LoreAttributes give heads up would love to test it out and play with it more =)
     
  19. Offline

    WorwardSackward

    Hey creepershift, I don't want to bother you about this too much but I wanted to know if there has been any progress made with the plugin. Please let me know when you can, thanks.
     
  20. Offline

    WorwardSackward

    I just talked with creepershift and he has stated that he is unable to continue developing the plugin due to time issues. If any developer would like to take over from where he left the plugin please let me know. CreeperShift has stated that he is willing to give the source code to the developer who wishes to take over.
     
  21. Offline

    WorwardSackward

  22. Offline

    noraver

    WorwardSackward
    about lore applying Health to the player with armor it works but it's flawed in many aspects like shiftClick, placing item in Wrong armor slot applys health over and over , so those are some of the problems about that atm
    if you like i just made this plugin it may hold you over in tell myself or someone else looking this over better and wants to make it.

    here is the plugin i just released.
    http://dev.bukkit.org/server-mods/permissions-health/
     
  23. Offline

    WorwardSackward

    Seems like it. And don't forget the lores not effecting mobs. And thank you for the suggestion, I like it!

    I still want the players to gain health through the armor so I'll see if I can get a dev interested soon.
     
  24. Offline

    CreeperShift

    This was the reason I couldn't finish it in my spare time. It works, but there are so many different ways someone could equip or lose armor, it would take long to get it bug free.
     
  25. Offline

    nighteyes604

    WorwardSackward likes this.
  26. Offline

    WorwardSackward

    I would love it if you would. You will have to talk to CreeperShift for the source code. Thank you for offering your help!
     
  27. Offline

    nighteyes604

    WorwardSackward

    I see you're online, want a version of the plugin I haven't tested yet? I can upload one for you to test now
     
    WorwardSackward likes this.
  28. Offline

    WorwardSackward

    Of course!
     
  29. Offline

    nighteyes604

  30. Offline

    WorwardSackward

Share This Page