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"

Restricting the number of allowed digits in an answer?

I have a game in UE4 that requires the player to enter a correct number for each question. There are about 10 spaces to make room for answers of varying lengths. The problem I am having is that a player can enter the correct answer in the first few spaces and then enter however many numbers they want after that and still get it right. So, if the answer is 12 they can put 1257899 and still get the answer right. So is there a way to restrict the correct answer to just the correct number but still allow for answers of varying lengths depending on the question?

Product Version: UE older version
more ▼

asked Jan 19 '17 at 06:54 PM in Everything Else

avatar image

6 2 3 3

avatar image project.gheist Jan 19 '17 at 10:35 PM

Hi SierraP,

Would it be possible to get some more information regarding how you set up your Slate edit text box (I'm assuming your using this) and how you are doing the answer checking?


avatar image SierraP Jan 26 '17 at 05:45 PM

So it is kind of a confusing system, but here are some images of the code and what it looks like. alt text

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

1 answer: sort voted first

I just made a macro in my UMG Blueprint to do that. This also restricts people from inputting anything other than numbers. The last is the textbox text bound to a function.

alt text alt text alt text

more ▼

answered Jan 26 '17 at 07:20 PM

avatar image

371 16 17 22

(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