I have Object A and Object B, C, or D, I need this to produce value X related to the two objects I have

anonymous_user_3f462c7e
Sat, 11 Nov 2017 18:18:38 +0000
Blueprint

I’m building a game that has time trials in it where you start at object A, and the program randomly picks between B, C, or D and produces an “optimal” time to get from A to that object. Then I need to be able to do this for each of the other objects (i.e from B to either A,C, or D, or from C to either A, B, or D).
In other words I need a way to input two values:
(1. Object the player is currently at
2. object the player needs to get to)
and then have it return a set value based on those two specific objects.
The way I have been thinking to do this is a massive list of branches comparing all values but that seems completely inefficient especially considering I plan on having about 20 objects at the end of the game and all will have to be compared with each other. Does anybody have any ideas? I understand this may be confusing so if so I can reiterate to try and make it more clear.

Edit: I already considered data tables the issue is that you can only input the name of the row, and then all of the columns are output thus you cannot have an input for the column you need.

2 posts - 1 participant