#(pesce1234) how to remove every location flag
17 messages · Page 1 of 1 (latest)
(pesce1234) how to remove every location flag
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.
!vague
Your question is too vague to be able to answer well.
If you're asking how to do something, please make sure to add some background detail. Make sure to specify your overall end goal and the general design/idea and any existing progress towards that goal, not just the single specific point.
For script-related problems, see also !info haste debug. For non-scripting server trouble, see !logs.
See also !xyproblem
Do you mean all of a locations flags?
Because generally you're suppose to keep track of what flags are applied to an objecttag.
While you can get an objecttags list of flags, you're not suppose to be using it except for debugging purposes.
yep
As said, you should keep track of the flags you've applied so you can remove them yourself.
Going forward, you could flag a location with a map, i.e. flag all locationobjects with something like location.myflagname:value
Then you could get all the keys for locationobject.flag[location].keys
But yes, this is not to say that your own flag management is not important, because it is. When setting flags, you should have documentation what flag goes where, and have systems in place to modify/remove those flags.
For debugging/testing, you could use FlaggableObject.list_flags, but you should not rely on this for actual scripts, as it might not be reliable.
!t flaggableobject.list_flags
Returns a list of the flaggable object's flags.
Note that this is exclusively for debug/testing reasons, and should never be used in a real script.
See !language flag system.
ListTag