Pet Summon Plugin

● ARCHIVED · READ-ONLY
Started by Aerosys 273 posts Page 10 of 14 View original ↗
  1. Aerosys said:
    Oh, that's not supposed to happen; I made no code line in my plugin that prevents pets from getting exp. I will check after work whether there's an error in my code and notify you when I find something.

    So I might have found a bug. XD

    Sorry for the double-post, but I think this is important. After more testing, I found out why the pets weren't gaining any experience (this is in the demo project): the Pet class had a sp-parameter set to 0% for the experience, so I just set it to 100% and the pets now are gaining experience.

    But I think I found another issue, this time with the Summon Deck add-on plugin: so basically I turned off the Auto Add Summon Skills feature in the main Summon Plugin, but every time I place a pet in any place of the deck, they will learn a summon pet skill (and viceversa, every time I delete a pet from the deck, it will delete the summon skills). How do I prevent pets from auto learning new summon skills when I add them to the deck?
    Also, when summoned pets level up after battles, they learn summon pet skills, even though these skills are not set in the database nor in the pet class. I don't want pets to be able to learn summon skills. Is that possible?
  2. Makeratore said:
    Sorry for the double-post, but I think this is important. After more testing, I found out why the pets weren't gaining any experience (this is in the demo project): the Pet class had a sp-parameter set to 0% for the experience, so I just set it to 100% and the pets now are gaining experience.
    Yes, I did that once to try my Exp potions and never removed it.

    Makeratore said:
    But I think I found another issue, this time with the Summon Deck add-on plugin: so basically I turned off the Auto Add Summon Skills feature in the main Summon Plugin, but every time I place a pet in any place of the deck, they will learn a summon pet skill (and viceversa, every time I delete a pet from the deck, it will delete the summon skills). How do I prevent pets from auto learning new summon skills when I add them to the deck?
    I don't think this is the right way. The Deck system was made exactly for this purpose: You add a pet to the deck -> summoner can summon it; you remove it -> summoner no longer can. There's no need why you want to disable "Auto learn Summon Skills" in the main plugin; the plugins will handle that for you.

    Makeratore said:
    Also, when summoned pets level up after battles, they learn summon pet skills, even though these skills are not set in the database nor in the pet class. I don't want pets to be able to learn summon skills. Is that possible?
    No, pets do not learn skills to summon (other) pets. The skills that do not exist in the database that you are referring to are exclusive to the summoners.
  3. Oh sorry, maybe I forgot to say that in my game I'm using the Auto Summon state feature to summon pets at the start of every battle. Basically I don't have any summoner actor in the party. I just have the graphic for the player to let him move around the maps (I removed every normal actor in the party). The player can put the pets in the deck and every time a pet is put in the deck, the pet will be given the Auto Summon state to be instantly summoned in battles (and every time the pet is removed from the deck, its Auto Summon state will be removed as well).
    In order to achieve this effect, I used your JavaScript snippet that I found on your blog:

    JavaScript:
    const autoSummonState = $dataStates.find(state => state && 'Auto Summon' in state.meta);
    
    if (index == 0 && autoSummonState && replacedPet) {
      replacedPet.eraseState(autoSummonState.id)
    }
    if (index == 0 && autoSummonState && substitutePet) {
      substitutePet.addNewState(autoSummonState.id)
    }

    I used the same code for every pet in the deck (I just replaced the index number for every pet), so every pet can have the Auto Summon state.

    Because of this, I turned off the Auto Add Summon Skills feature in the main Summon Plugin (but I tested this by turning it on again and the problem is still there).
    And I don't want the pets to be given any summon skills because every pet is already auto summoned with the Auto Summon state and, most importantly, pets cannot summon other pets in my game.
    So I was wondering why the pets will be given the summon skills when they are put in the deck. I can show you screenshots for proof (I'm using your demo project to test this):

    1) The pet "Fox" is unlocked by adding it to the party. In the Companions menu there's no summon skill and that's okay:



    2) The "Fox" is now added to the Deck and the summon skill appears in the list:



    3) The pet "Cat" is unlocked by adding it to the party. In the Companions menu there's no summon skill for the "Cat", but it has the summon skill for the "Fox":



    4) The "Cat" is now added to the Deck and the summon skill appears:



    5) If the "Cat" and the "Fox" are removed from the deck, they won't have the summon skills anymore:



    So why are the pets gaining summon skills for the pets after being added to the deck?

    6) And also, the pets are still learning summon skills after leveling up:



    Is there a way to prevent pets learn summon skills after leveling up?

    EDIT: I just found an easy and quick fix by overriding this function:

    JavaScript:
    MK.Summoning.createDummySkill = function(pet) {
        return;
    }

    But I'm not sure if this fix is the right way to do this or if it's gonna cause other problems in my game. XD
  4. I checked both my code and the core code, and I cannot tell you why you see this message that your pet learned new skills. This message should only appear if an actor learns a skill from the database but the injected ones should not be considered.

    As this is a free plugin and I did not design it in a way that pets should be allowed to summon other pets, I would dismiss your request (sorry), however, I've just seen that you found some solution for your needs.
  5. There are two features I want.

    I'd like to know if they are currently possible (even by combining with other plugins)
    or if they may be implemented in the future.

    1. The summoner gaining a state while a pet is active.

    2. The pet intercepting some attacks for the summoner (e.g. a specified element).

    Thanks in advance.
  6. 1. You can call Common Events when a pet is called or retreats. It's in the Plugin Manager. There, you can easily add a state to your summoner. Only when a pet is leaving, you will need to find out if there's still another one on the battlefield or not.

    2. What do you mean by "intercept" ? Nevertheless, a pet is a regular actor, I suggest to google for your wish and look for tips&tricks and plugins that already exist, or open a new thread for this question.
  7. Hi there! ive been trying to use the plugin but it seems like the MV version as some issues when trying to work it with Yanfly plugins,
    ive tested it on a blank project without any other active plugins but the moment i turn on the battle engine core it seems to crash when going to battle. could be more issues with other yanfly plugins as a whole
  8. Aerosys said:
    I checked both my code and the core code, and I cannot tell you why you see this message that your pet learned new skills. This message should only appear if an actor learns a skill from the database but the injected ones should not be considered.

    As this is a free plugin and I did not design it in a way that pets should be allowed to summon other pets, I would dismiss your request (sorry), however, I've just seen that you found some solution for your needs.

    No problem! My intention was not to let pet summon other pets and I already managed to do that. Thanks for your help! :D

    Anyway, I was wondering if you could add an option to inspect pet skills in the Deck window and/or in the Menu Addon plugin to see their descriptions and an option to see the states of the pets (buffs or debuffs, etc.) and their actual hp gauges. (I wish I knew how to code these by myself as it doesn't seem too complicated, but here I am asking for this XD) :rswt
  9. How to add pet Biography?
    i can't find any tips, trick, or tutorial to do that

    thanks
  10. tamirz200 said:
    Hi there! ive been trying to use the plugin but it seems like the MV version as some issues when trying to work it with Yanfly plugins,
    ive tested it on a blank project without any other active plugins but the moment i turn on the battle engine core it seems to crash when going to battle. could be more issues with other yanfly plugins as a whole
    I already did my best to write this plugin as compatible as possible with all the major plugins, so I will have a look but I cannot promise anything right now.

    Makeratore said:
    Anyway, I was wondering if you could add an option to inspect pet skills in the Deck window and/or in the Menu Addon plugin to see their descriptions and an option to see the states of the pets (buffs or debuffs, etc.) and their actual hp gauges. (I wish I knew how to code these by myself as it doesn't seem too complicated, but here I am asking for this XD) :rswt
    I will add some more code snippets on my site so everyone can pick what they want for their game. For the skill descriptions, I cannot promise, I didn't want this screen to be interactive but maybe my mind will change eventually.

    g_melodyta said:
    How to add pet Biography?
    i can't find any tips, trick, or tutorial to do that

    thanks
    Thanks for the hint. The notetag is now described here: https://aerosys.blog/menu-addon-for-summon-system
  11. Aerosys said:
    I already did my best to write this plugin as compatible as possible with all the major plugins, so I will have a look but I cannot promise anything right now.


    I will add some more code snippets on my site so everyone can pick what they want for their game. For the skill descriptions, I cannot promise, I didn't want this screen to be interactive but maybe my mind will change eventually.


    Thanks for the hint. The notetag is now described here: https://aerosys.blog/menu-addon-for-summon-system
    It’s all good! Thanks for the quick reply. Let me know if anything pops up regarding it!
  12. Aerosys said:
    I will add some more code snippets on my site so everyone can pick what they want for their game. For the skill descriptions, I cannot promise, I didn't want this screen to be interactive but maybe my mind will change eventually.

    Thank you so much for your help! :)
    Maybe showing the skill descriptions could be totally optional.
  13. Hi!

    Is there a way to disable the pet's in-battle UI? It doesn't really show anything anyways and messes with the other party member's UI (the blue selection box automatically resized as if there are 5 party members).
    Thanks in advance.
    https://ibb.co/26QJNLm
  14. Makeratore said:
    Anyway, I was wondering if you could add an option to inspect pet skills in the Deck window and/or in the Menu Addon plugin to see their descriptions and an option to see the states of the pets (buffs or debuffs, etc.) and their actual hp gauges. (I wish I knew how to code these by myself as it doesn't seem too complicated, but here I am asking for this XD) :rswt
    Well, I finally decided that "inspect Skills" won't come in the early future, sorry.

    However, I added some code snippets here: https://aerosys.blog/menu-addon-for-summon-system so game devs can better design their windows as they need. Here's one example:

    1717496986253.png

    You need to get the latest version of the Menu Plugin (version 0.0.5)!

    seikenproductions said:
    Hi!

    Is there a way to disable the pet's in-battle UI? It doesn't really show anything anyways and messes with the other party member's UI (the blue selection box automatically resized as if there are 5 party members).
    Thanks in advance.
    https://ibb.co/26QJNLm
    Exceeding the party limit (i.e. 5 actors) is no longer maintained, sorry. The core code is restrictive here, and it's just a matter of time until it breaks the next time.
  15. Aerosys said:
    Well, I finally decided that "inspect Skills" won't come in the early future, sorry.

    However, I added some code snippets here: https://aerosys.blog/menu-addon-for-summon-system so game devs can better design their windows as they need. Here's one example:

    View attachment 307383

    You need to get the latest version of the Menu Plugin (version 0.0.5)!

    Wow, thank you so much! This is very helpful! Keep up the good work! :D
  16. Aerosys said:
    Well, I finally decided that "inspect Skills" won't come in the early future, sorry.

    However, I added some code snippets here: https://aerosys.blog/menu-addon-for-summon-system so game devs can better design their windows as they need. Here's one example:

    View attachment 307383

    You need to get the latest version of the Menu Plugin (version 0.0.5)!


    Exceeding the party limit (i.e. 5 actors) is no longer maintained, sorry. The core code is restrictive here, and it's just a matter of time until it breaks the next time.
    Aww...thats too bad. But thanks for replying. Have a wonderful day :D
  17. Aerosys said:
    I already did my best to write this plugin as compatible as possible with all the major plugins, so I will have a look but I cannot promise anything right now.


    I will add some more code snippets on my site so everyone can pick what they want for their game. For the skill descriptions, I cannot promise, I didn't want this screen to be interactive but maybe my mind will change eventually.


    Thanks for the hint. The notetag is now described here: https://aerosys.blog/menu-addon-for-summon-system

    Nice, Thanks for the reply and your works
  18. hello.

    I would love to summon characters like in Final Fantasy X, is that possible?

    Removing all actors then summoning one. Re-adding them when the summon is gone.


    cheers.1
  19. Muk adel heid said:
    hello.

    I would love to summon characters like in Final Fantasy X, is that possible?

    Removing all actors then summoning one. Re-adding them when the summon is gone.


    cheers.1
    I actually started working on a plugin for this, but then didn't find a good way to implement transition effects, and then focused on other things. Anyway, I just uploaded what I have so far, you can use it as it is, and also give some feedback - Then you need to hope that I will eventually finish it one day. It's not that high on my list.


    Instructions:
    Basically, the same as with the regular pets; the only difference is that you type <Giant Pet> instead of <Pet> in the notetag box.
  20. Aerosys said:
    I actually started working on a plugin for this, but then didn't find a good way to implement transition effects, and then focused on other things. Anyway, I just uploaded what I have so far, you can use it as it is, and also give some feedback - Then you need to hope that I will eventually finish it one day. It's not that high on my list.


    Instructions:
    Basically, the same as with the regular pets; the only difference is that you type <Giant Pet> instead of <Pet> in the notetag box.
    Ama zi ng.

    It works as intended, You nailed it.


    There's only 1 thing; when you use the escape command while the summon is in the battle your party becomes unusable, thus when you start a battle the summon is still there.
    (I don't pretend to use the escape command tbh. So I don't mind).

    thank you for it. Keep doing the god's work!