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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to put choices in game

Hey I'm new to UE4 and I was wondering how I would incorporate choices into part of a game, which will have consequences later in the game? For example: (Steal the money) or (Leave it).

Thank you.

Product Version: Not Selected
more ▼

asked Jun 20 '17 at 05:31 PM in Using UE4

avatar image

1 1 1

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

3 answers: sort voted first

Hello, you can use my plugin to create choice based games. It doesnt require blueprint or c++ experience. You just need to create your sequencers and use the plugin to connect them each other with choices. Have a look at it from here;


more ▼

answered Feb 28 '19 at 08:34 AM

avatar image

1 1 4

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

You can create a couple structs and a data table to help you do this.

ChoiceOption Struct

  • Name

  • Description

CharacterChoices Struct

  • Title

  • Description

  • Array of ChoiceOption Struct

  • Index of selected choice. (default -1)

Make a DataTable to hold the CharacterChoices Struct. Fill this table with the choices you want available in your game.

In your GameMode create a new Map of CharacterChoices variable. On BeginPlay load the variable with default values of your choices DataTable.

Then you can lookup the choices in your gamemode's table, and when someone makes a choice you can set the Index of selected choice.

If you include the variable in your save data, then this will become persistent.

more ▼

answered Jun 20 '17 at 06:28 PM

avatar image

2.1k 38 17 52

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

there are plenty of ways to do it

it is really a matter of coding style and interaction way (buttons, text, actions etc..)

the general idea behind it is that you take the stuff step by step - and break it to smaller tasks, which you can later learn by order.

for example:

  1. how to create buttons

  2. what are the differences between data storage in singleplayer and multiplayer games

  3. how to save data according to my game style (inside the player class instance / separate class / struct / component...)

  4. how to bind buttons to events

mind, there are many other variations of breaking it down. you should find yours, because there is no ultimate way. good luck with your further development.

more ▼

answered Jun 20 '17 at 08:17 PM

avatar image

893 19 41 62

(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