ICF-Soft Params Core

● ARCHIVED · READ-ONLY
Started by ICF-Soft 26 posts Page 2 of 2 View original ↗
  1. HasdrubalBarca said:
    Hello, is there any way to raise stats? I found a way to make it work with VS stat system but the problem is trying to raise stats via the skill learn plugin.

    I've tried this:

    <JS On Learn Skill>
    user.setSpeechPlus(5)
    user.forgetSkill(247);
    user.refresh();
    </JS On Learn Skill>

    Which does increase the speech stat by 5 but only for one time.
    Try the below? I noticed that the semicolon was missing after the first line of code, and "set" just sets the value instead of adding the value. However, I don't have all the plugins to test this yet, so you might have to try on your end.
    <JS On Learn Skill>
    user.addSpeechPlus(5);
    user.forgetSkill(247);
    user.refresh();
    </JS On Learn Skill>
  2. @HasdrubalBarca
    With "user.setSpeechPlus(5)" you only set speech plus to a value.
    You can use something like "user.addNParam(id, 5)" with the right param type and id (starting form 0) to add to a value. I think I'll have to make a function for this.

    @zelanius
    Both NParams and PParams should be shown. CParams, due to it's nature will surely not be showing
    as should.
  3. @ICF-Soft that makes sense. In any case, I always look forward to any plugin you make. ^-^
  4. Awesome, that did the trick. For anyone curious on how to make custom params made show up on VS plugins here's how.
    From Anthony from the VS discord:

    1) Install ICF-Soft params core for MZ (I presume it has to be placed above even the Visustella Core plugin)
    2) Create a parameter in the ICF-Soft plugin manager parameter settings with "name: name1" and values as you like
    3) Set up the parameter in the Visustella Core Engine, Custom Parameters, "Parameter Name: [as it is meant to show up in the Visustella menus]", "Abbreviation: name2" (I recommend something similar to name1 so you don't get confused)
    4) Define the formula in the "Custom Parameters: Calculations" as "return (user.name1)". name1 and name2 cannot be identical because otherwise the CoreEngine does in infinite referral loop.
    5) Place the parameter in the ElementStatusCore Status menu settings, referring to it with name2. This has made a test custom parameter show up in the menu for me with values according to the formula defined in the ICF-Soft plugin.
  5. I got another question. How can I store the value of a custom param on a variable? Say the custom param of actor 1.
  6. Hello, it seems like this thread has been inactive for a very long time, but I might as well try.
    I would like to implement a system for battles which uses different mana sources for different kinds of spells using this plugin. This is a very basic question, but how do I prevent a skill from being used when not having the sufficient resource? I understand that using GROW within the notes of a skill is able to increase or decrease the parameter by a flat amount, and subtracting more than there is left causes the parameter to hit the bottom cap, but it doesn't prevent the skill from being used. I am guessing that I'm simply missing something. If anyone is still reading this thread, an answer would be greatly appreciated. Thank you for reading :)