Skill Help...

Discussion in 'Javascript/Plugin Support' started by Elliott404, Nov 13, 2018.

Thread Status:
Not open for further replies.
    Tags:
  1. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm trying out Yanfly's Absorb Ailments skill, and I think I messed something up. The skill's animation works, but its effect doesn't despite that I did exactly how it was in the video.
     
    #1
  2. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,667
    Likes Received:
    7,535
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV

    I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    Oh.. I'm sorry about that. Thank you.
     
    #3
  4. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,667
    Likes Received:
    7,535
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    No worries.
     
    #4
  5. Poryg

    Poryg Pixie of the Emvee kingdom, Ham of a Hamster Veteran

    Messages:
    3,780
    Likes Received:
    9,452
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    Could be bad plugin order or a typo somewhere in your text.
     
    #5
  6. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    I doubt about the plugin order. I've made sure that I've arranged them according to Yanfly's. And as for the typo, I don't know since all I did was copy/paste. .
     
    #6
  7. SiiOs

    SiiOs Villager Member

    Messages:
    10
    Likes Received:
    0
    Location:
    California
    First Language:
    English
    Primarily Uses:
    RMMV
    Do you have both Yanfly Battle Engine and Yanfly Skill Core plugins? They need to be above the absorb ailments as well.
    Also, if you can take a screenshot both of the code you have in the skill as well as the skill itself, it would help a lot with figuring out the problem.
    As part of the skill as well, what states do you want to be absorbed? (State ID)
     
    #7
  8. Andar

    Andar Veteran Veteran

    Messages:
    28,151
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    @Elliot404
    Please show us screenshots of what you have in your game, then we can look where you might have done something wrong.
    Just because you believe that you've done everything like in the video does not mean that you really have - in fact if you've done everything correctly it would work. And there are dozens of cases where people followed a videotutorial in the wrong way.

    For example there is a scripting video where the difference between () and [] is not visible in the video and the user used the wrong one, having the bug only solved after showing us screenshots from his project and insisting that everything was done correctly like the video before that.
     
    #8
  9. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    @SiiOs @Andar
    Alright. Sorry if it took so long to reply.

    This is the screenshot for the skill
    [​IMG]

    And this is the copy/paste from Yanfly's page (in case if it's needed)


    [​IMG]
     

    Attached Files:

    #9
  10. SiiOs

    SiiOs Villager Member

    Messages:
    10
    Likes Received:
    0
    Location:
    California
    First Language:
    English
    Primarily Uses:
    RMMV
    Also in the second picture it shows the text for absorbed states. What states are you trying to make this skill absorb? Currently it will only absorb states with the ID's of 21 through 40. Do you know all of the ID's of the states you want to absorb?

    Specifically, this is the text for the state ID's that you want the skill to absorb (they're red in Yanfly's text)
    absorbedStates.push(21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
    absorbedStates.push(31, 32, 33, 34, 35, 36, 37, 38, 39, 40);

    So what you can do is change these numbers to the appropriate state ID. If you want any other work double checked, it would be helpful if you can copy and paste the exact (or take a picture) of the info text in the skill itself, as well as taking a screenshot of the state screen showing the IDs, and listing the IDs you want included for this skill. It will only then affect the specific states listed in red above. Let me know if that makes sense or not.
     
    Last edited: Nov 14, 2018
    #10
  11. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    Wait. . I have to add the stats removal in effect panel?
     
    #11
  12. SiiOs

    SiiOs Villager Member

    Messages:
    10
    Likes Received:
    0
    Location:
    California
    First Language:
    English
    Primarily Uses:
    RMMV
    In the skill, you have to specify exactly what states it will absorb.
     
    #12
  13. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm sorry. . I don't understand how or where to specify the states. . should I add stat removal in the effect. or add number in formula?
     
    #13
  14. Andar

    Andar Veteran Veteran

    Messages:
    28,151
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    no.
    you need to go to your database and see what states you have defined.
    Then you need to decide which of those states you want to be affected by this skill. "state" is the official name for the "ailments" that this skill is supposed to absorb, so you need to decide which of your states/ailments are supposed to be affected and removed by this skill.
    Make that decision as a list of numbers - the IDs of those states that need to be removed by the skill.

    and then you need to go to the skill notebox, to the line mentioned above, and replace the numbers there with the numbers you've decided on in your list.

    Or in short:
    Your mistake was to copy the notetag from yanfly without changes, when you are required to change it instead to fit to your game.

    That is something a lot of new users don't understand when they first try to use plugins or scripts: a lot of plugins need to be configured and changed to fit your game, they cannot simply be copied and ignored.
     
    Last edited: Nov 14, 2018
    #14
  15. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    @Andar
    Okay. I am somewhat getting what you mean but, I still can't figure how to make the states to get affect by the absorb skill.

    I'm sorry about that.
     
    #15
  16. Andar

    Andar Veteran Veteran

    Messages:
    28,151
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    then tell us the numbers of the states you want to be affected by this skill
     
    #16
  17. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    Just 4 states: Poison, Silence, Paralyze, and Blind.
     
    #17
  18. Andar

    Andar Veteran Veteran

    Messages:
    28,151
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    I didn't ask for their names, I asked for their ID numbers as you can read them off your database.
    The names are useless for programming and Plugins.
     
    #18
  19. Elliott404

    Elliott404 RookieGameDev Veteran

    Messages:
    427
    Likes Received:
    1,025
    First Language:
    English
    Primarily Uses:
    RMMV
    Oh, my bad.

    If the ID numbers are the priority, then it'd be 50, 60, 65, and 95.

    or 0004, 0005, 0006, 0011

    unless I missed something, sorry.
     
    #19
  20. Andar

    Andar Veteran Veteran

    Messages:
    28,151
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    the ID numbers are the numbers before the name, but without leading zeroes, so 4,5,6,11
    So in your skill notetag you have to delete the two lines
    absorbedStates.push(21, 22, 23, 24, 25, 26, 27, 28, 29, 30);
    absorbedStates.push(31, 32, 33, 34, 35, 36, 37, 38, 39, 40);
    and replace them with
    absorbedStates.push(4,5,6,11);
    (exactly as you were ordered to do so in yanflys instructions)
     
    #20
Thread Status:
Not open for further replies.

Share This Page