#(iketatu) Changing property flagged maptag

9 messages · Page 1 of 1 (latest)

lunar wind
#

If we have a flag as:

- flag <player> test <map[]>

and want to set property foo = bar on this map, it seems not possible to do:

- adjust <player.flag[test]>.foo bar

because presumably it never stores the updated map as flag after mutating it, and

- flag <player.flag[test]> foo bar

because maps are not a flaggable type.

So are the only 2 ways to do this:

  1. Get the flag map as value, mutate it and then update the flag with - flag <player> test <[mutatedMap]>
  2. Split up a map and set each key as individual flag

Or is there a way to directly change a flagged map without taking it out and re-storing it again?

peak marlinBOT
#

(iketatu) Changing property flagged maptag

peak marlinBOT
#

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.

warped olive
lunar wind
#

Oh I'm blind, I swear I read it as denizens-scripting..

warped olive
#

No worries :p

lunar wind
#

Allow me to cast this ticket into the void

warped olive
#

Can /invalid