AP - Stat Distribution

Discussion in 'JS Plugin Releases (RMMV)' started by Alistair, Jun 25, 2016.

  1. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV

    ~ Stat Distribution~



     


    For the latest updates please visit my blog. This is merely an introduction topic.


     


    So here's my take on this popular system. With this plugin your actors gain Points upon levelling up that can be spent to increase your heroes' params. This is essentially Plug & Play but you should definitely take a look at all the plugin parameters. Instructions on how to use this plugin with Yanfly's Menu Manager can be found inside my plugin's help file.

    For now there are two notetags that can be used in the noteboxes of Actors and Classes:


    <Initial Points: x>


    This notetag makes the Actor/Class start with x Distribution Points.
    This notetag will ignore the default setting from the plugin parameters.
    Actor notetags take priority over Class notetags.


    <Level Points: x>


    This notetag makes the Actor/Class gain x Distribution Points upon levelling up.
    This notetag will ignore the default setting from the plugin parameters.
    Actor notetags take priority over Class notetags.


    [​IMG]

    Edit: While I do recommend a screen height of at least 768 for the stat distribution scene to look exactly like on the picture above, this plugin still works if your screen height is smaller. The scene will look like this:


    [​IMG]



     


    Terms of Use, Download and some more words on Usage can all be found on my blog.


    PS: I can't believe Brexit.
     
    Last edited by a moderator: Jun 26, 2016
    #1
    laaghisce, Dragonarkon, Volis and 9 others like this.
  2. Asuras

    Asuras Villager Member

    Messages:
    28
    Likes Received:
    17
    First Language:
    English
    Thanks for sharing this, just what I wanted for my game!
     
    #2
    Alistair likes this.
  3. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    Glad you like it. :D
     
    Last edited by a moderator: Jun 26, 2016
    #3
  4. Asuras

    Asuras Villager Member

    Messages:
    28
    Likes Received:
    17
    First Language:
    English
    Didn't have a change to fully play around with it yet. But is there away so when a character levels up. It displays how many points is gained. To give players an indication when they gain points.
     
    #4
  5. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    I'll keep this in mind for the next update.
     
    #5
  6. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    @Asuras


    I updated the plugin. Check it out.
     
    #6
  7. Fernyfer775

    Fernyfer775 Veteran Veteran

    Messages:
    1,297
    Likes Received:
    800
    First Language:
    English
    Is there a confirmation before a player puts the point into a certain stat, just in case they miss-click? 


    It looks great though man, thanks for this.
     
    #7
  8. Asuras

    Asuras Villager Member

    Messages:
    28
    Likes Received:
    17
    First Language:
    English
    @Alistair


     After a victory, a window pops up and it just says undefined over and over. I assume that message is suppose to give players an indication as to how many points to got upon level up?
     
    Last edited by a moderator: Jun 30, 2016
    #8
  9. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    @Asuras


    I can't reproduce that behaviour.


    1.png
     
    #9
  10. Asuras

    Asuras Villager Member

    Messages:
    28
    Likes Received:
    17
    First Language:
    English
    Had to put it over all of Yanfly's plug-ins to work but the info flash by really quick. If I disable yanfly's aftervictory plug-in, it displays the next characters points 3 times on the character before.


    [​IMG]
     
    #10
  11. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    @Fernyfer775


    I think I can add this.


    @Asuras


    Hmm. It's hard to fix this because it's working for me. I've updated the plugin again, please redownload. Make sure that Victory Aftermath is updated as well (and don't forget double-clicking the plugins in the plugin manager). Place my plugin below Yanfly's plugins.
     
    #11
  12. Asuras

    Asuras Villager Member

    Messages:
    28
    Likes Received:
    17
    First Language:
    English
    @Alistair


    Thanks it works now. Could you add an option to disable the message if we want to add the message to a existing victory message such as Yanfly's? Could you provide the line of code that displays that message. So we (I) can try and added to yanfly's plugin?


    Thanks!
     
    Last edited by a moderator: Jul 1, 2016
    #12
  13. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    Can you make the distribution point a formula so that the amount gained isn't static?  Maybe even make so you can get more point under certain conditions?
     
    #13
  14. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV


    There is already an option to disable the message. The function that displays the amount of points gained is actor.displayDistributionPoints();



    I'm planning to do this in the next update.
     
    Last edited by a moderator: Jul 3, 2016
    #14
  15. kl4ss1c

    kl4ss1c Villager Member

    Messages:
    14
    Likes Received:
    0
    any ideas on why this is happening?

    apstatserror.png
     
    #15
  16. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    Looks like another plugin changed the default width of Window_Command. The selection window of my plugin just calls the default function for the window width. I'll fix this with the next update.
     
    #16
    Solis likes this.
  17. Solis

    Solis Veteran Veteran

    Messages:
    366
    Likes Received:
    84
    First Language:
    English
    Yeah, I have the same issue but mine looks slightly different; but I know it's b/c of another plugin I use  changes the default width. Is it possible to put four stats on left, and four stats on right?
     
    #17
  18. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    The plugin has been updated:

     * V1.03


     * - You can now use formulas for notetags and the following plugin parameters:


     *   ~ Initial Points


     *   ~ Level-Up Points


     *   ~ Maximum Points


     *   ~ All the "Growth" Parameters (e.g. HP Growth)


     *   ~ All the "Points needed" Parameters (e.g. HP Points Needed)


     * - The command window width should no longer be altered by other plugins


     *


     * In formulas, you may use s[x] for switch x, v[x] for variable x and a or user


     * for the actor in question.
     
    #18
  19. firestalker

    firestalker Veteran Veteran

    Messages:
    326
    Likes Received:
    37
    First Language:
    English
    Primarily Uses:
    RMMV
    Is there new note tags for individual actors or classes?  so you can make a class/actor raise different stats at a different speed than the others?  what about making the points needed different each actor/class?


    Just curious...  I wasn't sure on the changes.
     
    #19
  20. Alistair

    Alistair Treasure Hunter Veteran

    Messages:
    269
    Likes Received:
    171
    Location:
    Munich, Germany
    First Language:
    English
    Primarily Uses:
    RMMV
    I didn't add seperate notetags but you can use formulas like "user._classId === 2 ? 300 : 50" for the HP Growth Param.


    My example means: If the actor's Class ID is equal to 2, HP will grow by 300 otherwise it'll grow by 50 points.


    Class 2 could for example be the Warrior Class.


    The same thing applies for the "Points Needed" parameters. You could make Warrior's pay less than other classes to increase HP: user._classId === 2 ? 1 : 2


    In this example, Warriors will pay only 1 point to increase HP while other classes will have to pay 2 points.
     
    #20

Share This Page