#(thatkev) Parse MapTag to command tab completions

6 messages · Page 1 of 1 (latest)

vapid obsidian
#

I have a MapTag that looks like this:

- definemap planetdetails:
                pigstep:
                    name: Pigstep
                    cost: 0
                earth:
                    name: Earth
                    cost: 600000
                mars:
                    name: Mars
                    cost: 1500000
                gemstone:
                    name: Gemstone
                    cost: 2000000
                zoron:
                    name: Zoron
                    cost: 2800000

How would I go about mapping this for usage in tab completions (turned into Pigstep|Earth|Mars|Gemstone|Zoron?

Something like this JS equivalent:

Object.values(planetsdetails).map(planet => planet.name);

Greatly appreciate the help, thanks!

thorn mossBOT
#

(thatkev) Parse MapTag to command tab completions

thorn mossBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

vapid obsidian
#

Please @mention on reply

vapid obsidian
#

Figured this out