Download

Issue with combo sytem

So I’m currently creating an rpg and am looking to create a combo system using blueprints. So my basic idea is that I create a list using a string hooked up to keys so that different keys create different letters in the string. I then attach this to a different variable so that each set of inputs create words. And then I use an Enumerator/string list so that every combo of letters activates different animations like this. But its not working. Anyone know why?

The code worked for me with the any key execution pin plugged into the branch node. Assuming that’s not the problem, maybe something is off with your key value pairs. If it worked at the beginning and then stopped, it was because the combo string did not reset as long as the key was in the key list. So, it was possible to keep creating strings that weren’t in the combo check list.

Thanks that really helped however when I implemented montages it stopped working. Is there something I’m missing?

(Updated code)

If the animation montages aren’t firing it could be that the montages aren’t setup in the animation blueprint yet. You can take a look at this video to see if that is the case.

This Paragon asset https://unrealengine.com/marketplace…paragon-crunch has a combo system setup you can take a look at. This video goes over some of the logic in the combo system and shows the use of anim notifies.

I made a few examples of how a setup with your enum might look like.

Here are the montages and notifies I used from the example

Here’s how the notifies are called on the character.


This might be the closest example to the montage setup you have. All valid key input is stored and will be used to determine the next montage until the combo is finished. When combo LLL and LR montages are played all combo info will be reset after the ResetCombo notify triggers.

Everything not shown on the next three are the same as above.
This code only processes the first input entered while a montage is played. As long as the first input is correct while the montage plays the next montage will fire.

This code stops the combo if more than two inputs are entered during the montage.

The code resets combo if too many inputs are given during a montage.
Here if you keep spamming L you would cycle between two montages. Getting the third montage would require proper timing.