I'm working out a dual tech system using Visustella's CTB.
Basically, Actor 1 chooses a skill that involves Actor 3. Rather than being able to immediately cast this skill, the skill is selected, and then automatically cast when Actor 3's turn comes up.
It's a risk reward system based on turn order.
I'm unsure how to make the action happen later specifically when a particular actor's turn comes up.
Any advice?
You can try to use some form of variable that requires a lock to be acquired before the next actor's tirm come up. I am sure there is an event fired when there is a turn change, but cant remember
Not sure if this matters, but I may also try the STB. Admittedly I'm a relative JS novice, so getting my head around this logic and then will try to tackle the syntax.
1. When Actor 1 chooses a dual skill and then selects a target, i need to store that target data as a variable, and possibly trigger a switch?
2. After the skill is selected, Need to move actor 1 in the turn order behind Actor 3 (other actor involved). Not sure how to conditionally move an actor behind another actor in turn order. Not sure if this is possible.
3. WHEN Actor 3's turn comes up, need to auto trigger the skill based on the switch, along with implementing the target data variable.
4. need to 'spend' actor 1 & 3's turns thereafter.
Seems pretty complex. But let me know if I'm thinking of all the steps right.
You got the basic idea right.
What u need to find out is that in step2,
there should be a function somewhere that determines the actor coming in. In that function, it should be check weather the variable is set, and if it is set, auto activate the spell.