Yanfly Job Points Question - Gain at level up

Discussion in 'Javascript/Plugin Support' started by Craig, Nov 18, 2015.

  1. Craig

    Craig Veteran Veteran

    Messages:
    47
    Likes Received:
    65
    First Language:
    English
    Primarily Uses:
    RMMV
    Hey guys! I know next to NOTHING about JS, but was wondering if someone could help me with Yanfly's Job Points plugin.

    I know you can change the parameters to only give JP at level up, but I don't know the correct variable name for what I am trying to do.

    I would like each actor to gain 100 JP + (whatever their new level is x 1.5).

    So essentially 100 + (actorlvl * 1.5), but obviously that doesn't work, because I don't know the correct way to write it, lol.

    Can someone help me out? 

    Oh, and I would also like the JP aftermath screen to only show if someone levels up. Is that possible?

    Thanks in advance!
     
    #1
  2. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    39
    First Language:
    English
    pretty sure it would be 100+(this.Level*1.5) and about it showing only if someone levels up, without editing the code, no it isnt posible currently
     
    #2
  3. Craig

    Craig Veteran Veteran

    Messages:
    47
    Likes Received:
    65
    First Language:
    English
    Primarily Uses:
    RMMV
    That's for replying!

    I tried that (actually decided I would rather use 100*(this.Level*1.5) instead. It no longer crashed the game at the end of a battle when I would level up, but when the JP aftermath comes up, everyone who level's up receives "NaN" JPs. When I open the skill screen they have received 0 JP :(
     
    #3
  4. kiriseo

    kiriseo Veteran Veteran

    Messages:
    229
    Likes Received:
    74
    First Language:
    German
    You have to use

    100 * (this.level * 1.5)

    with a small "l" instead of a big "L".
     
    Last edited by a moderator: Nov 18, 2015
    #4
    Craig likes this.
  5. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    39
    First Language:
    English
    sorry about that, i was half asleep when i wrote that. but yea use small l instead of big
     
    #5
  6. Craig

    Craig Veteran Veteran

    Messages:
    47
    Likes Received:
    65
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you so much! Works perfectly :D I guess I need to start learning a little JS!
     
    #6
  7. MuteDay

    MuteDay Mutation Engine Veteran

    Messages:
    253
    Likes Received:
    39
    First Language:
    English
    lol only if you want to, if not feel free to post your questions or message me with your questions
     
    #7

Share This Page