#(vukajloo) Complete flag removal

29 messages · Page 1 of 1 (latest)

untold hollow
#

I've been looking at this script and wonder if i remove flag bf:! doest it remove all of its subflags

    #For Reference Only. This data script is not called upon.
    type: data
    debug: false
    server_flags:
        bf:
            in_session: true
            blue:
                points: (number)
                lives: (number)
                forge: true
                strong_arm: true
                leather_helm: true
                neth_helm: true
                speed_leggings: true
            red:
                points: (number)
                lives: (number)
                forge: true
                strong_arm: true
                leather_helm: true
                neth_helm: true
                speed_leggings: true```
near islandBOT
#

(vukajloo) Complete flag removal

near islandBOT
#

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.

untold hollow
#

I have seen in script - flag player bf:!
And i wonder how it works

#

If anyone can explain it to me
Im looking for easy way to remove bunch of flags from player with just one - flag player something:!

zinc frost
#

The symbol ! is used as a form of “not” in Denizen

#

In flags, this clears everything under that category in the provided flag

#

There isn’t really a way to do everything for a single player unless it’s under a MapTag

untold hollow
#

lets say i want to make flag minigame and add to it minigame.blue/red so on, and want to clear it all, could i just do minigame:!

zinc frost
#

Yes

#

If, for instance, you wanted to clear just red, you could use minigame.red:!, clearing all red and keeping blue unchanged

untold hollow
#

what about minigame.red.active/...

#

can i just do minigame.red:!

bronze galleon
#

you can if you want to clear everything under minigame.red

zinc frost
#

Anything under the “red” tag would be cleared with this

bronze galleon
#

!c flag usage

sudden pastureBOT
# bronze galleon !c flag usage
Group

core

Syntax

flag [<object>|...] [<name>([<#>])](:<action>)[:<value>] (expire:<time>)

Short Description

Sets or modifies a flag on any flaggable object.

Use to create or set a flag on a player.
- flag <player> playstyle:aggressive
Use to set a temporary flag for five minutes on a player.
- flag <player> just_did_something expire:5m
Use to flag an npc with a given tag value.
- flag <npc> location:<npc.location>
Use to apply mathematical changes to a flag's value on a unique object.
- flag <context.damager> damage_dealt:+:<context.damage>
Use to add an item to a server flag as a new value without removing existing values.
- flag server cool_people:->:<[player]>
Additional Usage Examples

... and 4 more.

bronze galleon
#

!lang data actions

sudden pastureBOT
# bronze galleon !lang data actions

Several commands function as a way to modify data values,
including !command flag, !command yaml, and !command define.
These commands each allow for a set of generic data change operations.

These operations can be used with a syntax like "<key>:<action>:<value>"
For example "mykey:+:5" will add 5 to the value at 'mykey'.

The following actions are available:

Actions that take no input value:
Increment: '++': raises the value numerically up by 1. Example: - define x:++
Decrement: '--': lowers the value numerically down by 1. Example: - define x:--
Remove: '!': removes the value entirely. Example: - define x:!

Actions that take an input value:
Add: '+': adds the input value to the value at the key. Example: - define x:+:5
Subtract: '-': subtracts the input value from ...

Group

Useful Lists

bronze galleon
#

^ if you're curious about other data actions you can do with denizen

bronze galleon
#

np

somber plinthBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@untold hollow

untold hollow
#

let me just try it out when i finish reading, if everithing is fine i will close this
is it ok?

bronze galleon
#

ofc yeah