Fomar0153's ATB/stamina script
Yanfly's Skill restrictions script
I'm no expert scripter but based on what I can tell, these two are overwriting the same methods and it's a wonder my game hasn't flung up a script error yet because they are both installed.
Basically as it stands, due to how both of these scripts are coded, skill cooldown counters won't update properly in battle.(As in if the skill has a cooldown of 5, it won't count down at all to zero, it just remains at 5 which leaves the skill unusable after its used once)
All I'm asking for is someone to create a patch that will allow yanfly's script to update its cooldown counters on skills. Nothing more, nothing less.
Requesting a compatibility patch for Yanfly's skill restriction script and ATB/Stamina Based Battle
● ARCHIVED · READ-ONLY
-
-
I looked at the two scripts, and I think if you move Formar's script above Yanflys that should fix the problem. Yanfly has all aliased or new methods, and Formar has the oeverwitten methods. Try that and see what happens.
-
No dice, same result. :(
-
Hmmm...ok, I had no luck finding the conflict. Formar only overwrites the update command at the start of the turn that I could see, chances are it is somehow related to that. However, I didn't see where Yanfly's skill restrictions called update....I'll poke at it, but my scripting knowledge (especially with battle systems) is mostly limited to seeing if they will play nice together and occasionally one line edits to make it behave better in my game.
Do you have any other scripts at all? Anything that calls that update method Formar called might cause the issue (Yanfly Battle engine by chance?). -
Yep, I use yanfly battle engine. is that a cause?
-
Yep. Both Yanlfy and Formar overwrote on_turn_end it appears, and Formar's script is getting priority, so the cooldowns are not processing.
Try this and see if it works. I can't actually test it at the moment, but it does compile correctly at least. All I did was merge the two update commands from the battle engines into one function (using Formar's version as a base, as I assume you have Yanfly battle engine then Formar's script?), and copy/pasted the update cooldown line. Put it last in your scripts.
http://pastebin.com/vKH76bLj
If you had it Formar then Yanfly's battle engine, it will be a quick edit to make it match your old behavior, just let me know. -
Nope, not working. >.<
Edit: Would yanfly's battle symphony have any effect on this? -
Probably. I don't use battle symphony myself, so no idea. But anything that has any effect on the battle system is probably going to affect this, so you are going to need a patch to make *all* of them play nice.
-
Well, I found out that by pasting
$game_party.update_restrictions$game_troop.update_restrictionsinto your patch caused it to refresh the skill but the problem is that it makes it as if the cooldowns were never applied so that didn't work. :/ -
Hmmm....Afraid I'm stumped at this point on how to get all of them to play nice. Anyone else out there got an idea?
-
AH-HA! I did a bit of searching a found an easy fix on an OLD PAGE the script existed on a third party site
Turns out adding:
@subject.update_cooldowns
Right after a given line fixed it! -
I tried putting that in Formar’s script but all it does is give me a nomethoderror. Any solutions?AH-HA! I did a bit of searching a found an easy fix on an OLD PAGE the script existed on a third party site
Turns out adding:
@subject.update_cooldowns
Right after a given line fixed it! -
@UlfPeddicord, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
Please make a new thread instead.