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"

Data storage for mystery/stealth game

I am trying to create a randomly generated mystery game that requires the player to solves crimes in the selected map.

I want the player to discover facts and evidence about the NPC in the level. I could just reference the NPC add Booleans to tell the player if he discovered the specific fact or not, but I know that is not the correct way and if I decide to make competitive multiplayer this will not work.

Where and how can I store this information?

Product Version: UE 4.8
Tags:
more ▼

asked Aug 14 '15 at 10:13 PM in Blueprint Scripting

avatar image

Elvis220
3 1 1

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

1 answer: sort voted first

Store the data on the player character(non replicated of course) as an array of booleans if you want(then its a unique array per character, even in a live multiplayer session). Each index in the array will be a question and the result is whether they have the fact/evidence

When you save your state, say in a competitive environment, output to your master server using SQL or something similar.

more ▼

answered Aug 15 '15 at 06:11 AM

avatar image

MrGrr
986 34 3 41

avatar image Elvis220 Aug 21 '15 at 11:46 PM

sorry for the late reply. basically I have 2 structs, one is for fact info the other is for validation and NPC reference.

(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