Hello, everyone! Here I am, boring everybody with my problems.
So, I'm trying to make a Pass-turn system that works as follows: each actor will have a skill called "Pass". When used, the user will allow the next character to act. For example: A, B, C, D are the actors, A uses "Pass", so the order changes to B, C, D, A.
Before adding anything else, I'll tell you that I'm using Olivia OctoBattle (excellent plug-in, by the way), and I have the following components active:
- Weakness Display System;
- Boost point System;
- Victory Screen UI;
- Order Turn Battle (OTB ).
The only change I made in the plugin is in the MakeActionOrderOTB function, so that actors always act first: with four enemies (E,F,G,H) and four actors (A,B,C,D), the turn will always be: A,B,C,D,E,F,G,H, unless it's an ambush.
So, I could I do this? I would prefer not to use other plugins, since I'm trying to learn, but in case you know someone that does it very well, I can look through its code and understand how the author did it.
The only caveat is that I would prefer not to swap the characters around with the swap function (because the main character should always be the leader, in my project), but if this is the only solution I will do it. At worst, I will then have an event happen at the end of battle that brings the party formation back to its original order.
Thanks in advance! I hope I explained the problem well...
EDIT: I managed to make it work with partySwap, because change the turn order by coding was getting quite complicated. If you guys have any idea, though, please share it with me
EDIT 2: I put the <Instant> notetag from Yep_Instant Cast in the skill "Pass", and now I have the following problem. Let's say that A passes turn to B, now everytime B uses any skill at all, the game crashes, the message is: TypeError: cannot read property 'scope' of null. This is the entire screen:
I tried following it, but I have no idea what to do to solve the problem...
So, I'm trying to make a Pass-turn system that works as follows: each actor will have a skill called "Pass". When used, the user will allow the next character to act. For example: A, B, C, D are the actors, A uses "Pass", so the order changes to B, C, D, A.
Before adding anything else, I'll tell you that I'm using Olivia OctoBattle (excellent plug-in, by the way), and I have the following components active:
- Weakness Display System;
- Boost point System;
- Victory Screen UI;
- Order Turn Battle (OTB ).
The only change I made in the plugin is in the MakeActionOrderOTB function, so that actors always act first: with four enemies (E,F,G,H) and four actors (A,B,C,D), the turn will always be: A,B,C,D,E,F,G,H, unless it's an ambush.
So, I could I do this? I would prefer not to use other plugins, since I'm trying to learn, but in case you know someone that does it very well, I can look through its code and understand how the author did it.
The only caveat is that I would prefer not to swap the characters around with the swap function (because the main character should always be the leader, in my project), but if this is the only solution I will do it. At worst, I will then have an event happen at the end of battle that brings the party formation back to its original order.
Thanks in advance! I hope I explained the problem well...
EDIT: I managed to make it work with partySwap, because change the turn order by coding was getting quite complicated. If you guys have any idea, though, please share it with me
EDIT 2: I put the <Instant> notetag from Yep_Instant Cast in the skill "Pass", and now I have the following problem. Let's say that A passes turn to B, now everytime B uses any skill at all, the game crashes, the message is: TypeError: cannot read property 'scope' of null. This is the entire screen:
I tried following it, but I have no idea what to do to solve the problem...