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"

Choice/Decision Based Game

Hey there, I have a "simple" question that leads to a "not that simple answer"... So i want to make a choice based game where u can either choose "option one" or "option two" and if you chose option one then something happens again so like a chain of events

now the question is : How do implement that... and save the data that got chosen so that later in the game it could be called back or smth...

Product Version: UE 4.20
Tags:
more ▼

asked Sep 30 '18 at 02:10 PM in Blueprint Scripting

avatar image

Đɍ.SɨsŧɇɍFɨsŧɇɍ
1 1

avatar image Đɍ.SɨsŧɇɍFɨsŧɇɍ Sep 30 '18 at 05:26 PM

example: [X] Keep the wallet [O] Return the wallet

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

3 answers: sort voted first

Hello, I have released a plugin that does this stuff. Have a look at it from here;

https://forums.unrealengine.com/unreal-engine/marketplace/1564449-interactive-story-plugin

more ▼

answered Feb 28 '19 at 08:53 AM

avatar image

PhoenixMarket
11 1 4

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

Perhaps a map (dictionary) of Text | Bools / Enumerators / Structs (for storing complex progress, if required). This would allow you to easily set / fetch the result by name. Essentially, it allows one to associate 2 elements.

  • no need for indexing

  • expandable during run time, unlike pure enum requiring a setup ahead of time

  • all data in one place

  • easy to load / save

  • dev friendly to use - little blueprint spaghetti and no need to flip tons of vars

  • super quick query

  • no accidental duplicates

  • no need to stick to a cascading tree-like branching structure

You could query the map based on the name of the current game event. Should work if set up right.


Difficult to advise more precisely without knowing the scope of what you're trying to accomplish.

more ▼

answered Sep 30 '18 at 03:59 PM

avatar image

Everynone
15.3k 77 26 64

avatar image Everynone Sep 30 '18 at 06:28 PM

example: [X] Keep the wallet [O] Return the wallet

For something that simple, you could just use a Name | Bool map I mentioned above. Something like this:

alt text

Adding an existing entry overwrites the value.

capture.png (81.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi!

You should take a look at Enums. At least i would probably use enums to set up such a system. This way assign a number to each decision and save those, so you can get them anywhere.

more ▼

answered Sep 30 '18 at 03:08 PM

avatar image

Evertoo
124 2 3 5

(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