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"

Variable in NPC dialogue

Sorry for the lack of experience. I've been trying to figure out a way to make a simple dialogue system, where when a choice is made, a variable is added (ex. Choice one picked, +1 variable is added to social) which will effect dialogue later on.

I'd appreciate any help, since it seems its hard to find an answer on my own.

Product Version: UE 4.18
Tags:
more ▼

asked Dec 07 '17 at 12:53 PM in Using UE4

avatar image

ZtluhK
12 1 4

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

1 answer: sort voted first

Consider creating a DataTable (a simple UE4 database) with each row representing a line of dialogue. You can do it in Excel (or OpenOffice), export it as *.csv, and load it into the engine.

In addition to plain text, a row like this can contain extra data - flags, sounds, images, IDs and so on. One of the extra pieces of info you could contain is the social impact; a simple int variable should suffice in this case.

Now whenever you trigger a line of dialogue, you read from a row in a DataTable and check whether this piece of text has any social connotations represented by the associated variable.

If I were you, I'd start by compiling a small (and, ideally, simple) sample of data in an Excel table. Something like that:

alt text

capture.png (13.4 kB)
more ▼

answered Dec 07 '17 at 01:03 PM

avatar image

Everynone
3.5k 27 13 26

(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