x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to Implement a Turn Based Combat System?

Hi,

My team and I are working on a game that will feature a turn based combat system like Valkyria Chronicles. Unfortunately I am at a loss as to where to begin when it comes to implementing this kind of combat system in UE4. Can you point me in the direction of documentation, tutorials, or anything else you think would be helpful in implementing this kind of system? Also, I want to stick to Blueprint implementation as much as possible.

Thanks,

Valkyria Chronicles Gameplay Example: https://www.youtube.com/watch?v=p-0RY4TTNwE

Product Version: Not Selected
Tags:
more ▼

asked Jul 10 '14 at 04:43 PM in Blueprint Scripting

avatar image

firstplayer
6 3 5 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

How much do you know about blueprints? Your question shouldn't be "How do I do X system in Unreal Engine 4?" but "How do I do this very specific part of a feature in Unreal Engine 4?". If you ask yourself that question, it will be much easier to find ways to learn the tools because most of the time you aren't going to find a tutorial for your particular case.

I haven't played Valkyria Chronicles but it seems the turn based works this way:

1) Your character has a bar which defines how much you can do in a turn. Think of it as a variable from 0 to 100. Every action drains something from that variable. You can connect your action specific events to that value. (Say, the press w to move drains 1, the press space to jump drains 10). Once your variable hits 0, your turn ends and you disable player input. Any basic blueprint tutorial should cover that.

2)Once your turn ends, it is the enemy's turn to move. This would work the same as with your player. Every single action drains from the variable. You could have a bool that defines if it is player turn or enemy turn to define if they should move or not. In this case, just look up for blueprint AI and blueprint communication.

3) If there are multiple characters to control, look up the posses and unposses functions.

more ▼

answered Jul 10 '14 at 05:19 PM

avatar image

dissonanceint
1k 42 28 65

avatar image firstplayer Jul 10 '14 at 06:12 PM

Thanks for your answer! I will begin looking at the Blueprint AI docs and content examples.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question