How do I make a "vampiric" (drain) weapon?

Discussion in 'Javascript/Plugin Support' started by Amane Kagari, Oct 27, 2015.

  1. Amane Kagari

    Amane Kagari Knight Regalius of Regisia Kingdom Veteran

    Messages:
    130
    Likes Received:
    802
    Location:
    Somehwere
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm not sure where to post this. (Please move it to a proper place mods if I posted in a wrong section.) But I need help on something. I am trying to make a "vampiric" type weapon that drains while dealing damage but I have no idea how to make one. I know there has to be a script involved but I'm not sure which one. So can anyone help me please? 

    Thanks a bunches. ^_^
     
    #1
  2. Joronjo

    Joronjo Veteran Veteran

    Messages:
    155
    Likes Received:
    29
    First Language:
    English Spanish
    You can make one with the stock plugins and database. Using the "weaponskill" plugin from kadokawa you can assign an "HP/MP drain skill" to the weapon. If you have any scripting knowledge you can also make a custom formula with  Yanfly's Item Plugin and using Lunatic mode.
     
    #2
    Amane Kagari likes this.
  3. Amane Kagari

    Amane Kagari Knight Regalius of Regisia Kingdom Veteran

    Messages:
    130
    Likes Received:
    802
    Location:
    Somehwere
    First Language:
    English
    Primarily Uses:
    RMMV
    If I have all the yanfly scripts all I have to do is like put something in the notes or do I need to do separate script?

    I mean I want a weapon that drains HP when attacking. 
     
    Last edited by a moderator: Oct 27, 2015
    #3
  4. Joronjo

    Joronjo Veteran Veteran

    Messages:
    155
    Likes Received:
    29
    First Language:
    English Spanish
    Then, using the "weaponskill" plugin you just make an HP draining skill and assign it to the weapon (regardless how you do it, you will still need to use notetags. The difference is how complex you want to make it)
     
    #4
    Amane Kagari likes this.
  5. Amane Kagari

    Amane Kagari Knight Regalius of Regisia Kingdom Veteran

    Messages:
    130
    Likes Received:
    802
    Location:
    Somehwere
    First Language:
    English
    Primarily Uses:
    RMMV
    How do I assign a skill to a weapon? I'm kinda confused on that part. I know it's not adding skills because that would only add an external skill that you have to use. Do I just add like a skill id number in the notes section of the weapon itself or is it something else?

    (I'm just messing around with stuff by trying to make a "Vampire's Blade" that drains life as it attacks. I know it involves some sort of skill thing as far as I know. But I'm just a bit confused on how to make it actually work.)
     
    #5
  6. Kes

    Kes Global Moderators Global Mod

    Messages:
    21,060
    Likes Received:
    10,702
    First Language:
    English
    Primarily Uses:
    RMVXA
    To assign a skill to a weapon - open up the weapon tab on the data base.  Top right corner you will see a section called 'Traits'.  Click on the next empty line.  Click on the 4th tab 'Skill'  

    Click on 'Add skill' and select the skill you want to assign to that weapon.  Click OK.
     
    #6
    Amane Kagari likes this.
  7. Amane Kagari

    Amane Kagari Knight Regalius of Regisia Kingdom Veteran

    Messages:
    130
    Likes Received:
    802
    Location:
    Somehwere
    First Language:
    English
    Primarily Uses:
    RMMV
    I guess what I meant was making it use skills automatically not adding skills to be used. That part I got so far from reading the script notes but somehow when I set it to automatically use a drain skill I've made it ends up making all damages 0 for some reasons. I don't know if I messed up something but I was trying to make it have the same attack as a weapon. 

    Here's a few screenshot:

    This is what I did for the weapon section:

    https://gyazo.com/4e5b7a15afb322d951aaeb3386951f09

    And skill 23 is my drain skill: 

    https://gyazo.com/d63702813896cfe8ea22969159f96381

    I may had messed something up by mistake.
     
    Last edited by a moderator: Oct 27, 2015
    #7
  8. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,302
    Likes Received:
    805
    First Language:
    English
    I don't think it can register two skills.

    Try deleting the <skill_id: 1> tag and see if it works.
     
    #8
    Amane Kagari likes this.
  9. Amane Kagari

    Amane Kagari Knight Regalius of Regisia Kingdom Veteran

    Messages:
    130
    Likes Received:
    802
    Location:
    Somehwere
    First Language:
    English
    Primarily Uses:
    RMMV
    That was actually my second try. My first try was with only skill 23 (my drain skill's ID) and it was 0 damage. And I just tried out what the other poster said and still not working as I wanted it. 

    Edit: I got something working so I guess I've already solved it. Thanks for the help everyone. I've figured out the problem now.
     
    Last edited by a moderator: Oct 28, 2015
    #9

Share This Page