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"

Return Max value and compare it

Hi guys, I am a beginner in Programing and have a little knowledge on UE too. I am trying to program a simple board game and I managed to set up the template in the construction script.

alt text

Now coming to the event graph, I want to set up a first dice throw for all players at the same time. It bring one random number for each player, and then compare them which one is the MAX. Note that some time the MAX number is for 2 players and in this case we need to again assign 2 random numbers for these 2 players until we got only one player having the MAX number.

Please see the pictures below

alt text

alt text

alt text

The Question is why I am not getting only one MAX at the end as per the 4 Pictures above? Even if I increase the Macro (Return_MAX) to 10 times, I am not getting the only one MAX number for one player.


Product Version: UE 4.12
board.jpg (40.0 kB)
1.jpg (121.5 kB)
2.jpg (90.9 kB)
3.jpg (83.5 kB)
more ▼

asked Oct 03 '16 at 02:39 PM in Blueprint Scripting

avatar image

1 2 3

avatar image shafeeq Oct 03 '16 at 06:30 PM

I know I can shorten this using Array and Shuffle but for better understanding I want to dig in and understand what I wrote above in the question.

Best Regards,

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

0 answers: sort voted first
Be the first one to answer this question
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