Damage system based on lore

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

  1. Offline

    nighteyes604

    WorwardSackward

    Yes, need a basic explanation? I followed most of your initial post, in a few minutes I'll edit post to include everything.

    Health lore is applied whenever a player: closes inventory, logs in, respawns. (Might be missing some events but you can help tell me what with testing :rolleyes:)

    For health lore: Looks for +(number) Health. That's + then a number, then a space, then health (not case sensitive). Only the first instance of health in the lore is applied, so if you have +5 health +5 health on the same item for some reason, it'll only take the first. For other entities, it will take their maxhealth + the bonus (not exactly sure if it works on mobs or not.. will need to test this as well).

    All items equipped count towards health.

    --------

    For damage lore: Damage is checked only when damage occurs. It takes damage bonuses from any equipped armor, as well as the item in the player's hand when the damage occurs.

    Items can either be X-Y Damage or +Z damage. If any item is X-Y that will dictate damage done, and the +Z will apply afterwards. So if I have a helm thats +5 damage, and a sword that's 10-15, my damage will be somewhere between 15 and 20. If I only have a helm that's +5 damage, damage done will be whatever minecraft would normally do, +5.

    Does that make sense? Damage is a little confusing because I wasn't sure how you wanted to do it...Let me know if you need any debug commands and I can add them as well. Currently the only command is /hp and /loreattributes. /loreattributes just sets chestplate to have +50 health because I had no idea how to test it otherwise :)
     
  2. Offline

    WorwardSackward

    From what I'm getting, I'm getting 1 shotted from anything. Zombies spawn with 500 health but they take 50 hearts everytime the sun burns them. When I punch the zombie with an iron sword with 100 damage it did 200 damage..

    Edit: Wearing armor does not change health, at least not according to the /hp command
     
  3. Offline

    nighteyes604

    WorwardSackward

    Hmm... Ok I'll have to double check. What's the lore of your armor? Health should work at least
     
  4. Offline

    WorwardSackward

    Ah okay i didn't realize there needed to be a + sign
     
  5. Offline

    CreeperShift

    Shit, that is so smart. Why didn't I think of this instead ._.
     
  6. Offline

    nighteyes604

    You probably would have once you kept going and if you were less busy XD it's still not 100% perfect but it works for most cases. For mobs I use the target event so when it target's a player.
     
  7. Offline

    CreeperShift

    Yeah well, I was so focused on getting it to work right when they placed it into the slot >_> Also, don't forget that they can lose armor due to being damaged ;)
     
  8. Offline

    nighteyes604

  9. Offline

    MergedFlame

    wait how do you set the lore to the items?
     
  10. Offline

    noraver

    there are many plugins that can be used to set lore to items
     
    WorwardSackward likes this.
  11. Offline

    MergedFlame

    what is the plugin and the command for the lore?
     
  12. Offline

    CreeperShift

    *ding* *ding* *ding* idiot alarm
     
  13. Offline

    nighteyes604

  14. Offline

    Lotsov

    I know this might sound a bit crazy, but is it possible to feature % damage?
    Say for example, have a sword that deals 10 damage, and have a armor that provides 20% damage boost, then have the sword apply 12 damage per hit?

    These numbers are all just thrown in there for example.
    If this is impossible, just skip this idea.

    From what I see, this is working great, can't wait to see how it will turn out in the future.
     
    WorwardSackward likes this.
  15. Offline

    np98765

    Jamesthatguy and CreeperShift like this.
  16. Offline

    CreeperShift

    Thank you :) Nice to see that the report gets answered so fast!
     
    Jamesthatguy likes this.

Share This Page