watch 01:25
Jurassic World: Dominion Dominates Fandom Wikis - The Loop
Do you like this video?
Play Sound
metric.GetNames
- Function
- table metric.GetNames()
- Description
- Get all metric names
- V1 Function Name
- New to V2
metric.GetNames returns a table containing the names of the binder metrics available for the current puzzle.
Example
This example demonstrates using metric.GetNames to get the names of the binder metrics, then using metric.GetBonus to get the bonus awarded by each metric.
metrx = metric.GetNames () print ( #metrx .. " binder metrics found" ) for ii = 1, #metrx do mbon = metric.GetBonus ( metrx [ ii ] ) print ( "metric " .. ii .. " = " .. metrx [ ii ] .. ", bonus = " .. mbon ) end
The output might look like this:
3 binder metrics found metric 1 = SASA Metric, bonus = 1000 metric 2 = DDG Metric, bonus = 1000 metric 3 = SC Metric, bonus = 1000