Lunatic Code: Olivia Weakness Display Help

● ARCHIVED · READ-ONLY
Started by Lnik3500 2 posts View original ↗
  1. Hello, I'd like a bit of your guy's help please.
    I'm trying to code something where a skill would be of a random element, but would always take random weakness of the enemy if there are any that are known. To do that, I'm trying to to do the following:

    1. Get the elements
    2. Check if any of them are shown as a weakness with the plugin
    3. Put any that are into an array
    4. Check if the array is empty
    5. Add a random element if the array above is empty, otherwise add a random element that is in the array.

    To do that, I was trying to read the plugin made by her, but I can't seem to find the function that would help me achieve this. Does any of you know how I could find the function I am looking for? I'm sure it's in her plugin, but I can't seem to find which one and how to apply it. Thanks

    Here is the link to her plugin: https://fallenangelolivia.itch.io/weakness-display
  2. Bump