Random Item Prefixes & Suffixes

● ARCHIVED · READ-ONLY
Started by DreamX 228 posts Page 12 of 12 View original ↗
  1. DreamX said:
    v1.20d - Allows for proper custom parameter setting with Quasi's Param Plus.


    Edit: Make sure to have the latest version of their plugin.
    How can I add one quasi param to randomize with items?
    I tried several things but they do not add up together.

    For example if I would use HRT into the <Prefix Suffix Effect> set. The next set with the same HRT will not add up together.
    The <params> set (from quasi) does not add to any random item sadly. Maybe I have the plugins in the wrong order, or I am doing it wrong. Please help :(
  2. Hey!
    Sorry I know it's a kind of necro-posting but I have a really important question. First, this plugin is like REALLY cool. But I have a problem, I'm bad à JS and I wonder how to had random element rate as bonus in suffix / affix. Can you please help me ?

    Thanks a lot in advance !
  3. It has been forever since I have used MV, let alone this plugin. I believe all the instructions are still intact. I'm not sure if it is set up to allow an element rate as a bonus. You're asking a lot from people by necro-posting this thread. I doubt many others will reply at all. My advice is to copy and paste the plugin's instructions into Chat GPT and ask your questions there. It will give you advice on how to use the plugin.

    I suggest you learn more about coding; it's better than saying you're bad at it. Most coding questions can be handled with any number of AI tools now. Always remember to never alter code without the author's permission.
  4. Yawgmoth said:
    You're asking a lot from people by necro-posting this thread.
    No, it's literally the point of the thread. The alternative would be to post a new thread with the question in Plugin Support and link back to here, which makes no beneficial difference.

    Yawgmoth said:
    My advice is to copy and paste the plugin's instructions into Chat GPT and ask your questions there. It will give you advice on how to use the plugin.
    ...
    Most coding questions can be handled with any number of AI tools now.
    This is very poor advice.

    AI does not correctly understand code, and can not reliably interpret and explain what it does. It often gives incorrect instructions on how to use plugins (you can find multiple posts here where ChatGPT gave notetags that are combined from multiple plugins or just don't exist at all).

    The majority of people who have tried to do what you describe end up posting here again with completely nonfunctional code that AI generators made up - because that's what generation is.

    And then if you do run into trouble getting your generated code to work - which is very likely - the rules of the forum prohibit you posting it to request help with. So this recommendation is a good way to get left out in the cold, not knowing any more than you did before.

    Yawgmoth said:
    Always remember to never alter code without the author's permission.
    This is also functionally pointless. You should not distribute modified code unless the author's terms permit it, but there's no reason not to tweak a plugin to work the way you need it to for your game. Also, the terms in the first post of this thread explicitly allow it, so I'm not sure what you're getting at.

    Krythias_san said:
    I wonder how to had random element rate as bonus in suffix / affix. Can you please help me ?
    You would use the Prefix Suffix Effect to construct and apply the trait to the item.

    I'm not sure from your question whether you're asking for the element to be random, the rate to be random, or both. So I'll give you a demonstration using both and you just take whatever you need from it.

    Code:
    <Prefix Suffix Effect>
    // List the element IDs you want to choose from
    let elemIds = [2, 4, 5, 7];
    
    // Define the minimum and maximum for the rate, in integer
    let rateMin = 25, rateMax = 70;
    
    // Determine a random value between the minimum and maximum rates
    let randomRate = Math.randomInt(rateMax - rateMin + 1) + rateMin;
    
    // Turn it into a decimal rate
    randomRate /= 100;
    
    // Construct the trait object
    
    let trait = {code: 11,
                     dataId: elemIds[Math.randomInt(elemIds.length)],
                     value: randomRate};
    
    // Add the trait to the item
    newItem.traits.push(trait);
    </Prefix Suffix Effect>

    The above code is untested, but looks like it should work - if you need any further help, feel free to ask any of the humans on the forum who are very willing to assist :stickytongue:
  5. @ATT_Turan
    I did not think anyone would reply to a thread this old. I have been away from the community for a very long time. I am glad you were able to assist Krythias_san. My advice was to only copy and paste the instructions into Chat GPT and ask questions about the instructions. The second paragraph is where I suggest they learn more about coding, not for this specific problem but for all future ones they may have. Its fine to ask for help on the forums but a better solution is to put in some work yourself and not be at the mercy of waiting for a reply on the forums. I never once told them to generate AI code (You have made an incorrect assumption). AI is a learning tool and does not replace a person's creativity. As for my statement to never alter code without an author's permision that was not in regards to this plugin, that's why it was in the second paragraph with my suggestions for the future. It was just a reminder.
  6. Yawgmoth said:
    As for my statement to never alter code without an author's permision that was not in regards to this plugin, that's why it was in the second paragraph with my suggestions for the future. It was just a reminder.
    I'm even more confused. Whether this specific comment was directed at this specific plugin or something else, it's at best misleading as the vast majority of plugin writers explicitly state that anyone is free to modify their plugins. In fact, I've yet to stumble upon a plugin that states otherwise...

    Also...
    Yawgmoth said:
    My advice is to copy and paste the plugin's instructions into Chat GPT and ask your questions there.
    You did recommend ChatGPT to solve problems, knowing (or maybe you don't know?) that ChatGPT will spew lies without hesitation. This should never, under any circumstances be valid advice, IMHO. If all else fails, then maybe as a last resort, I can see it being useful. It's also not like this forum has had a track record of not helping people; quite the opposite.

    My two cents.
  7. Hi maybe someone can help I have an issue with the plugin, likely I'm doing something wrong.
    I get the following item names show up for all items - strong sword of power undefined
    So everything works, in that it applied a prefix and a suffix but at the end of every prefixsuffix item it shows the word undefined.

    <Prefixes>

    51 52 53 54 55 56 57 58 75%

    71 72 73 74 75 76 77 78 50%

    </Prefixes>



    <Suffixes>

    61 62 63 64 65 66 67 68 100%

    </Suffixes>

    here is the item that is using the slots

    First set of pre fixes
    <prefixSuffixParameters: ATK 1|10>
    <prefixSuffixParameters: DEF 1|10>
    <prefixSuffixParameters: MAT 1|10>
    <prefixSuffixParameters: AGI 1|10>
    <prefixSuffixParameters: MHP 1|10>
    <prefixSuffixParameters: MMP 1|10>
    <prefixSuffixParameters: LUK 1|10>
    <prefixSuffixParameters: MDF 1|10>

    1st set of siffuxies
    <prefixSuffixParameters: ATK 1|10>
    <prefixSuffixParameters: DEF 1|10>
    <prefixSuffixParameters: MAT 1|10>
    <prefixSuffixParameters: AGI 1|10>
    <prefixSuffixParameters: MHP 1|10>
    <prefixSuffixParameters: MMP 1|10>
    <prefixSuffixParameters: LUK 1|10>
    <prefixSuffixParameters: MDF 1|10>

    2nd set of prefixes
    <prefixSuffixParameters: ATK 1|10>
    <prefixSuffixParameters: DEF 1|10>
    <prefixSuffixParameters: MAT 1|10>
    <prefixSuffixParameters: AGI 1|10>
    <prefixSuffixParameters: MHP 1|10>
    <prefixSuffixParameters: MMP 1|10>
    <prefixSuffixParameters: LUK 1|10>
    <prefixSuffixParameters: MDF 1|10>

    I had this working in a previous RPG maker mz project which I no longer have access to so have previously
    not had this issues with the plugin.
    Using in a RPG maker MV project, so sure why I get this bug

    any help would be great thanks :)