Capture Enemies

● ARCHIVED · READ-ONLY
Started by DreamX 143 posts Page 3 of 8 View original ↗
  1. DreamX said:
    Let me know exactly what you had to do to cause the error with flare laws and we'll see if we can make a compatibility patch.

    There's nothing in particular that I have done, I've not set anything that actually does anything with the conflicting script, its just activated.


    With your script I've just set everything up as normal, so I'm unfortunately not sure where the conflict is, sorry.
  2. Hello Dream


    I'm getting a "Cannot read property "name" error".


    Did I forget something?

    Cannot.PNG
  3. Goldschuss said:
    Hello Dream


    I'm getting a "Cannot read property "name" error".


    Did I forget something?


    View attachment 37649

    Try the latest version that I uploaded and make sure that the capture_actor_id notetag value is an id of an actor that exists in the database.
  4. 1. When does this error occur?


    2. Try to disable all other plugins until you find which one is incompatible. Then let me know which one it is and post the error you get again.
  5. @DreamX Sorry for my late response, I wasn't notified of it.



    Anway, I have 2 kind of error messages, both occur with @Yanfly's CTB Battle system plugin.


    The first error (As seen above) shows, if I hit an enemy with a catch skill.


    Here's the "other" error I mentionend and this error occurs when the battle starts.


    CTB Error.PNG
  6. Goldschuss said:
    @DreamX Sorry for my late response, I wasn't notified of it.



    Anway, I have 2 kind of error messages, both occur with @Yanfly's CTB Battle system plugin.


    The first error (As seen above) shows, if I hit an enemy with a catch skill.


    Here's the "other" error I mentionend and this error occurs when the battle starts.


    View attachment 37822

    Make sure that my plugin is under Yanfly plugins, as stated in the first post.


    Edit: Nevermind. It seems it still occurs when it is under. I'll fix this problem.


    Edit 2:


    @Goldschuss v1.8 - Compatible with Yanfly CTB.
  7. Thank you, I'll test it this evening
  8. Hi Dreamx


    Using your plugin and I can get it to work, however when i capture a monster its as if the actor isnt there?


    They appear in my party but i cant directly give them EXP, or in the case of using the 'level up events' plugin it ignores the level up event.


    If i add the actor to my party manually it works fine. Any ideas?
  9. ditsky said:
    Hi Dreamx


    Using your plugin and I can get it to work, however when i capture a monster its as if the actor isnt there?


    They appear in my party but i cant directly give them EXP, or in the case of using the 'level up events' plugin it ignores the level up event.


    If i add the actor to my party manually it works fine. Any ideas?

    This is because the actor you are capturing is technically a copy. I did this to allow for capturing multiple kinds of the same actor. Just adding the original actor from the database almost defeats the purpose because you can already do that via normal event commands. So I must ask about the capture system in your game, can you capture more than one of the same actor? If so, you'll need to use javascript to do things like add xp to them, and I can help you with that. Let me know.
  10. DreamX said:
    This is because the actor you are capturing is technically a copy. I did this to allow for capturing multiple kinds of the same actor. Just adding the original actor from the database almost defeats the purpose because you can already do that via normal event commands. So I must ask about the capture system in your game, can you capture more than one of the same actor? If so, you'll need to use javascript to do things like add xp to them, and I can help you with that. Let me know.



    Ah ok, yeah capturing multiples is kind of key to what im planning. There's 2 issues i've come across, one being that i cant apply XP direct to actor and the other being i cant then apply events to captured actors (example being when captured actor is level X then do Y.
  11. ditsky said:
    Ah ok, yeah capturing multiples is kind of key to what im planning. There's 2 issues i've come across, one being that i cant apply XP direct to actor and the other being i cant then apply events to captured actors (example being when captured actor is level X then do Y.

    Here's an example function of how to find all of the party members that have a base actor id (the id of the actor they are copied from):


    searchBaseId = function () {
    // id you're searching for
    var baseId = 7;

    // array of party members that have this base actor id
    var partyMembers = $gameParty.members().filter(function (member) {
    return parseInt(member.baseActorId()) === parseInt(baseId);
    });
    };


    From there you can start doing things like assigning ids to variables.


    Example:


    searchBaseId = function () {
    // id you're searching for
    var baseId = 7;

    // array of party members that have this base actor id
    var partyMembers = $gameParty.members().filter(function (member) {
    return parseInt(member.baseActorId()) === parseInt(baseId);
    });

    // check if we found any actor first
    if (partyMembers[0]) {
    // set the id of the first actor from the array to variable 5
    $gameVariables.setValue(5, partyMembers[0].actorId());
    }

    // check if there is a second actor we found
    if (partyMembers[1]) {
    // set the id of the second actor from the array to variable 6
    $gameVariables.setValue(6, partyMembers[1].actorId());
    }

    };


    You can use this function if you put it into a plugin file and call it with a script call, like


    searchBaseId()


    If you need additional assistance you can ask here or the javascript help section on the forum. If you have the id of the actor in a variable you can use normal event commands with them. Just use that variable.
  12. @DreamX I wanted to request something for this Plugin.


    I want to make it so, that it is possible to "capture" (in my game, it's called "recruitment") the enemy after the battle.


    So basically, you have to defeat them first in order to earn their respect, and then they may join your team after, much like Pokemon mystery dungeon or Tales of Symphonia 2.


    The capture rate can then be increased by using further items or by other factors (such as, how many monsters are already in my party, how strong are they etc...)


    Regards


    Goldschuss
  13. Goldschuss said:
    @DreamX I wanted to request something for this Plugin.


    I want to make it so, that it is possible to "capture" (in my game, it's called "recruitment") the enemy after the battle.


    So basically, you have to defeat them first in order to earn their respect, and then they may join your team after, much like Pokemon mystery dungeon or Tales of Symphonia 2.


    The capture rate can then be increased by using further items or by other factors (such as, how many monsters are already in my party, how strong are they etc...)


    Regards


    Goldschuss

    Are these battles evented or random?
  14. I probably have to use random encounters, due to the lack of walking sprites.


    Why does it matter?
  15. Goldschuss said:
    I probably have to use random encounters, due to the lack of walking sprites.


    Why does it matter?

    You could event the capture stuff if it wasn't random battles.


    Let's see, so if I understand you correctly what you want is basically the same thing but you need to defeat the enemies in the normal way, then they have a chance to join after the battle. The chance is done the same way it already is, but with extra factors. Is that correct?
  16. DreamX said:
    You could event the capture stuff if it wasn't random battles.


    Let's see, so if I understand you correctly what you want is basically the same thing but you need to defeat the enemies in the normal way, then they have a chance to join after the battle. The chance is done the same way it already is, but with extra factors. Is that correct?

    I see, yeah that'd make sense. But with eventing, you couldn't clone actors I guess.


    And yes, you got that right :)
  17. Goldschuss said:
    I see, yeah that'd make sense. But with eventing, you couldn't clone actors I guess.


    And yes, you got that right :)

    You actually can clone actors with events. You can use a plugin command provided my plugin.


    Anyway, I'll work on your request.
  18. thank you. Before you start, i'd like to add something optional (not a must, just nice-to-have)


    It would be great if the recruitment process could happen after the battle ends but still inside the battle screen before going back to the map.


    Maybe before or after the victory aftermath.


    Regards
  19. Can't wait to try out this system for myself!
    Great work here!


    EDIT 1: Hey, so I'm trying out your Plugin, and it's just great!
    I'm able to capture monsters with ease - you've really out done yourself here!
    I did notice that my captured monsters are Level 1, even though the Actor's initial level that it corresponds with is set at 5.]


    Is there any way to fix this?


    Once again, great plugin DreamX!
  20. Goldschuss said:
    thank you. Before you start, i'd like to add something optional (not a must, just nice-to-have)


    It would be great if the recruitment process could happen after the battle ends but still inside the battle screen before going back to the map.


    Maybe before or after the victory aftermath.


    Regards

    Sure. I want to work on this today so can you tell me in as much detail as possible what you want to contribute to the chance?


    Because right now, the only thing that plugin takes into account right now is hp, the capture item you used and states. The former two wouldn't apply because you have to defeat enemies instead of capturing them with an item.


    Alternatively, I could just have you define the formula to determine the chance yourself, but that would require javascript knowledge on your part.