10 thoughts on “MV Dynamic Traits

  1. The Stranger's avatar The Stranger says:

    Yet another fantastic plugin, Galv. I can definitely make use of this.

    Keep up the good work. :)

  2. Dasheek King Dennis-Scurry's avatar Dasheek King Dennis-Scurry says:

    It could very well be my plugins, but tried attack times + and it doesn’t seem to work. Add skill type works. When I get into battle, the attacks are all still the same. This is my script call:
    Galv.DTRAITS.addTrait(1,34,3.5,0);

    Maybe you can help troubleshoot it.

  3. Kenode's avatar Kenode says:

    Hey Galv, I’ve been looking for a plugin which does this exact thing. I’ve been wanting to add a system that lets you change if an actor autobattles or not dynamically based on an option. I was trying Galv.DTRAITS.addTrait(2,62,1,0); to add the trait and Galv.DTRAITS.removeTrait(2,62); to remove it, but it doesn’t seem to have any effect. What am I doing wrong?

    • Galv's avatar Galv says:

      “Where there is a * above, the first id in their list is 0 instead of 1.”

      The Special Flag flagId has a * next to it, so the first selection in the list (which is Auto Battle) should be 0 instead of 1. So:

      Galv.DTRAITS.addTrait(2,62,0,0);

      Give that a try and see if it works.

      • Kenode's avatar Kenode says:

        I tried that but seems like it isn’t doing anything. I also tried it on the demo you provided, which has the plugin working with the Magic skill trait, but I can’t seem to get the autobattle trait working.

      • Galv's avatar Galv says:

        I will have to look into it when I can find the time one day

  4. DGThunderer's avatar DGThunderer says:

    Thank you for an excellent script base! I did need to modify it to suit all my needs, but you made that much easier.

  5. Eric's avatar Eric says:

    just started using it but it seems immensely useful for what I’m trying at least. Sorry to ask here but dont know where else to ask. I can make it work just fine except when I try to assign a value to an ex-param from a variable. doing it directly as a decimal works slick as a whistle but a variable version is giving me headaches. My aims to allow buying incremental boosts to various ex-params yada yada. heres what I’m using currently

    $gameVariables.setValue(16, $gameActors.actor($gameVariables.value(20)).eva * 100)

    gameVariables.setValue( 16, $gameVariables.value(16) + 1)

    $gameVariables.setValue( 16, $gameVariables.value(16) / 100)

    Galv.DTRAITS.removeTrait($gameVariables.value(20),22)

    Galv.DTRAITS.addTrait($gameVariables.value(20),22,1,$gameVariables.value(16))

    given the results I’m seeing I half wonder if variables just cant hold decimal values, only pointers on if its an error in my work or just not doable would be awesome.

    Either way thanks for all the helpful tools you’ve created and shared.

    • Galv's avatar Galv says:

      Unfortunately, I don’t have time to assist with individual objectives – I recommend asking in a forum for this kind of help. You are correct in your observation, though, the $gameVariables.setValue() function rounds decimal numbers down to the nearest integer.

Leave a reply to Eric Cancel reply