Hi! In my RPG one of the player character works kind of like a constructor snake. It's actually a slime that attaches to an enemy. During its turn, it can use one of its abilities to attach to an enemy. Once it uses this ability, it has to use its turn to either keep constricting the enemy or unstick so it can target someone else.
I did this the following way:
The player has an ability called Attach. Once you use it, the character gains the state "attached" while giving the enemy one stack of the "goo" state. (Not important for this right now so I won't dwell on it)
Attached gives the character two abilities: "Stay attached" and "Unstick". It also restricts any other action from this character. Whenever you use Unstick, the character loses the "attached" state, so it can attack as usual, use other skills, etc.
Stay attached should target the enemy targeted by the Attach ability only, but I don't know how to do that. Could there be a way for it to happen?
I did this the following way:
The player has an ability called Attach. Once you use it, the character gains the state "attached" while giving the enemy one stack of the "goo" state. (Not important for this right now so I won't dwell on it)
Attached gives the character two abilities: "Stay attached" and "Unstick". It also restricts any other action from this character. Whenever you use Unstick, the character loses the "attached" state, so it can attack as usual, use other skills, etc.
Stay attached should target the enemy targeted by the Attach ability only, but I don't know how to do that. Could there be a way for it to happen?