Hello folks!
The context: I'm working on a demo to build a game on top of, and have hit certain walls while trying to develop a class. Said class is supposed to be a vampire which works off of a very simple combo system as well as a stacking bleed mechanic.
Issue 1 resolved! Now I need help with the second one.
If anybody can help with one or either of these issues, I'd be most grateful. Thanks in advance!
The context: I'm working on a demo to build a game on top of, and have hit certain walls while trying to develop a class. Said class is supposed to be a vampire which works off of a very simple combo system as well as a stacking bleed mechanic.
Issue 1 resolved! Now I need help with the second one.
The first issue I've been having has to do with the combo system. How it's supposed to work is that the actor casts an instant skill(opener) using mana and then another non-instant skill(finisher) becomes available. The notetags I have on both skill are as follows:
Opener Skill:
Finisher Skill:
I will admit, I'm a complete noob when it comes to JS. The codes have been put together by stitching together what I could find on the YEPSkillcore document as well as some threads I've found on the forums. I'm assuming I've made some sort of basic mistake because it doesn't work (Even after casting the opener, the finisher remains hidden).
Opener Skill:
JavaScript:
<Instant Cast>
<Skill Claw Cooldown: 1>
<Custom Execution>
$gameSwitches.setValue[1] == true;
</Custom Execution>
Finisher Skill:
JavaScript:
<Custom Show Eval>
if ($gameSwitches.value[1] == true) {
visible = true;
} else {
visible = false;
}
</Custom Show Eval>
<Custom Execution>
$gameSwitches.setValue[1] == false;
</Custom Execution>
I will admit, I'm a complete noob when it comes to JS. The codes have been put together by stitching together what I could find on the YEPSkillcore document as well as some threads I've found on the forums. I'm assuming I've made some sort of basic mistake because it doesn't work (Even after casting the opener, the finisher remains hidden).
Now, I believe the second issue will be more complicated to solve, if even possible. What I want to do is to have certain skill add a stacking debuff onto the enemy, and then certain other skills will make use of that debuff.
Using YEPBuffStatesCore, I know it is possible to make a stacking status. And I believe I can define a variable inside the status to keep track of how many stacks there are.
The issue arrives when I want to access that variable outside of the status, ie. having skills that deal different amounts of damage based on number of stacks. I've been reading up on posts even tangentially related to what I'm trying to do but so far I haven't been able to find a method to make this work and have seen some posts that make me think it may not be possible at all.
If what I want to do is not possible at all, I've come up with a secondary solution but again, I'm not positive this is possible either.
Secondary Method:
Instead of skills making use of the bleed variable that is defined within the status, they can add invisible states. Then, the bleed status itself can have a turn end effect which will check for these states, and depending on which one is active on the enemy, will execute a different effect using the bleed variable.
So ultimately, my question is that: Is there a way to do this with the first method? Is there a way to refer to a variable defined inside a status, by skills/items outside of it.
If that is not possible, would the second method work?
Using YEPBuffStatesCore, I know it is possible to make a stacking status. And I believe I can define a variable inside the status to keep track of how many stacks there are.
The issue arrives when I want to access that variable outside of the status, ie. having skills that deal different amounts of damage based on number of stacks. I've been reading up on posts even tangentially related to what I'm trying to do but so far I haven't been able to find a method to make this work and have seen some posts that make me think it may not be possible at all.
If what I want to do is not possible at all, I've come up with a secondary solution but again, I'm not positive this is possible either.
Secondary Method:
Instead of skills making use of the bleed variable that is defined within the status, they can add invisible states. Then, the bleed status itself can have a turn end effect which will check for these states, and depending on which one is active on the enemy, will execute a different effect using the bleed variable.
So ultimately, my question is that: Is there a way to do this with the first method? Is there a way to refer to a variable defined inside a status, by skills/items outside of it.
If that is not possible, would the second method work?
If anybody can help with one or either of these issues, I'd be most grateful. Thanks in advance!