Bobstah's Enhanced Equipment, Item, Items Command, Skill, and Skill Type Restrictions 1.5.3

● ARCHIVED · READ-ONLY
Started by Bobstah 85 posts Page 2 of 5 View original ↗
  1. I noticed that when using two groups with the same state condition type for a skill, it seems like only one group is checked.

    <Restrict>State: 11</Restrict><Restrict>State: 12</Restrict>In the enclosed case, only State 12 seems to count as a restriction. When State 11 is applied, the skill remains restricted instead of being active.
  2. What does "Error:object too deep" mean?

    I was making a skill that required state 45 to use.

    It gives the the error when the actor got the state and I open the skill menu during battle.

    <Restrict>

    State: 45

    </Restrict>

    The only plugin that has to do with skills is Yanfly Skill Core, Instant Cast, and Cooldowns.  But I turn them off and still get the error.

    Also tried.

    <Restrict>

    Custom: ($a.states().indexOf(45) !== -1;)

    </Restrict>

    Gave me the same error.
  3. snorlord said:
    I noticed that when using two groups with the same state condition type for a skill, it seems like only one group is checked.
    Naffington said:
    What does "Error:object too deep" mean?

    I was making a skill that required state 45 to use.

    It gives the the error when the actor got the state and I open the skill menu during battle.
    I'm looking into these problems now. Thanks for letting me know!
  4. snorlord said:
    I noticed that when using two groups with the same state condition type for a skill, it seems like only one group is checked.

    <Restrict>State: 11</Restrict><Restrict>State: 12</Restrict>In the enclosed case, only State 12 seems to count as a restriction. When State 11 is applied, the skill remains restricted instead of being active.
    I copied your exact setup and was unable to duplicate the problem. Did you determine if another state, weapon, armor, or trait is restricting this skill? My plugin checks the built-in functionality first. If that succeeds, it continues on to the Enhanced Restrictions. If it isn't any of those, I'll PM you a debugging copy of the plugin you can use to help me determine exactly what is happening.

    Just to clarify, if one set of restrictions is met, it considers all restrictions good. This is by design to allow you to create restriction groups. Logically, each group is separated by an OR operator, so If Group1 === true OR Group2 === true, etc.

    Naffington said:
    What does "Error:object too deep" mean?

    I was making a skill that required state 45 to use.

    It gives the the error when the actor got the state and I open the skill menu during battle.

    Gave me the same error.
    I could not duplicate this problem either using all of the plugins you have except Yanfly's Instant Cast.  Can you tell me if the "Error: Object too deep" error message contains anything about JsonEx if you press F8 on your keyboard and look inside the window that opens up?
  5. When I was looking for a solution to shared costs in my dualtech script, I suggested using something exactly like this to block the skill if the shared cost isn't met (since checking each cost individually, which works fine for individual costs like MP and TP, doesn't work so well when the cost is shared, like inventory items.) I hadn't implemented it, because a. I wanted to focus on other things at the time, and b. I was sure someone must have made one.
  6. Bobstah said:
    I could not duplicate this problem either using all of the plugins you have except Yanfly's Instant Cast.  Can you tell me if the "Error: Object too deep" error message contains anything about JsonEx if you press F8 on your keyboard and look inside the window that opens up?
    pkIA1YV.png

    I have located the plug in that's causing the problem.  It is Ellye's State Damage

    http://forums.rpgmakerweb.com/index.php?/topic/48631-ellyes-state-damage/

    It works fine when I have that plug in turned off.

    Is it possible to make it compatible?
  7. Bobstah said:
    Version 1.3.2 is now available! Fixed an issue with armor restrictions and added Ellye State Damage compatibility! Download

    Yep! :)
    I updated it to 1.3.2 and it still gives me the same Object too deep error with the same JsonEx error. when I turn on Ellye State Damage.

    I also tried placing Ellye under this script and then saved and it still didn't work.

    Do you think there are other things in Ellye State Damage plug in that's causing this?

    Also, the new update made another error if Ellye State Damage is turned off and to only way to make it work is to delete Ellye State Damage entirely from plug in manager.

    So I have to choose between TypeError or Object too deep error. 

    X3jtcIc.png
  8. Version 1.3.3 is now available! Fixed a crash bug that would occur if Ellye's State Damage was disabled in the Plugin Manager. Download

    Naffington said:
    I updated it to 1.3.2 and it still gives me the same Object too deep error with the same JsonEx error. when I turn on Ellye State Damage.

    I also tried placing Ellye under this script and then saved and it still didn't work.

    Also, the new update made another error if Ellye State Damage is turned off and to only way to make it work is to delete Ellye State Damage entirely from plug in manager.
    I was able to fix the issue where if Ellye's State Damage is turned off, the game would crash. Apparently RPG Maker MV still loads plugin variables even if a plugin is disabled. That's fun.

    As to your other problem, I was unable to replicate it in an entirely new project containing only my Enhanced Restrictions and Ellye's State Damage. I tried both with Ellye's first and Enhanced Restrictions first.

    Maybe try downloading the latest version of Enhanced Restrictions and also Ellye's Damaging States to see if it helps.
  9. Version 1.3.3a is available! Fixed another bug related to Ellye's State Damage. Download

    I found another bug that would cause my patch to not restore Ellye's functionality. That has now been corrected.

    (As an aside, I had a state with Ellye's damage tags on it and when I went to unequip some armor for another plugin I am testing, the game crashed. This happens in the base equipment scene, so there isn't any way I can fix this via this plugin. )
  10. Thank you, too deep error seems to be gone and is now working after 1.3.3a!  
  11. Naffington said:
    Thank you, too deep error seems to be gone and is now working after 1.3.3a!  
    Glad to hear it. If you have any other issues, please let me know!
  12. Version 1.4 is now available! The first global restriction, SType, has been added! Download

    This was made as requested by user DadaKen in my Battle Command List thread. You can now place this notetag inside of any actor to globally restrict skill types:

    <Restrict SType: 1>

    StatMin(tp): 100

    </Restrict>

    This will prevent someone from using Skill Type 1 unless the actor/enemy has 100 TP.
  13. How could I restric a skill for actor 1 if actor 3 has X state?

    Also, amazing plugin ^^
  14. gambitben said:
    How could I restric a skill for actor 1 if actor 3 has X state?

    Also, amazing plugin ^^
    If this skill is only for Actor 1 and they can only use this if Actor 3 has state X:

    <Restrict>

    Actor:1

    Custom: $($gameActors.actor(3)._states.indexOf(X) !== -1)

    </Restrict>

    If this skill can be used by any actor as long as Actor 3 has state X:

    <Restrict>

    Custom: $($gameActors.actor(3)._states.indexOf(X) !== -1)

    </Restrict>

    If this skill is only for Actor 1 and they can only use this if Actor 3 does not have state X:

    <Restrict>

    Actor:1

    Custom: $($gameActors.actor(3)._states.indexOf(X) === -1)

    </Restrict>

    If this skill can be used by any actor as long as Actor 3 does not have state X:

    <Restrict>

    Custom: $($gameActors.actor(3)._states.indexOf(X) === -1)

    </Restrict>

    If this skill can be used by other actors without this limitation, only Actor one is limited:

    <Restrict>

    Actor: 1

    Custom: $($gameActors.actor(3)._states.indexOf(X) !== -1)

    </Restrict>

    <Restrict>

    !Actor: 1

    </Restrict>

    Does this answer your question?
  15. Suddenly%20Error.png

    help me please.. what happen? :'(

    before use this update, it's work well.. :'(
  16. Radis3D said:
    help me please.. what happen? :'(

    before use this update, it's work well.. :'(
    Looks like a skill type of 0 is somehow making it through to the method where I check to see if a battler can use a skill type.

    I'll have a fix out for this later this morning. Thanks for your patience! :)
  17. Version 1.4.1 is now available! Fixed a crash bug that would occur if you did not restrict any skill types. Download

    Radis3D said:
    help me please.. what happen? :'(

    before use this update, it's work well.. :'(
    I've fixed this bug. Thank you for reporting it!
  18. thank you for answering (replying)

    i'll update my script later.. :)
    an thank you for fixing :3
  19. Holy crap, this is so much better than the one I've been working on ... I'm a bit jealous