#(falcontheb) How can I add another player, selected by the user, as a tag?

11 messages · Page 1 of 1 (latest)

tawny glade
#

Sorry for not explaining well but ill paste the script and explain what i want to do.

https://paste.denizenscript.com/View/113795

I need to make it so, as a mod, I can add and remove other people's Bagelcoins. I have the two scripts at the bottom but can't figure out how to define another player.

Also, im not gonna be online for the next 6-8 hours, so won't answer anything til then.

left dirgeBOT
#

(falcontheb) How can I add another player, selected by the user, as a tag?

left dirgeBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

cerulean wolf
#

Also, im not gonna be online for the next 6-8 hours, so won't answer anything til then.

#

!nothome

tender hamletBOT
# cerulean wolf !nothome
Info: nothome

We sometimes see users opening support threads or replying to them while not able to test things.

This is often revealed in messages like "I'm not home right now and wanted to ask", or "I can't access my server but I think I remember the details", ...

This often leads to one of two problems:
• The user asks questions they could have answered themself if they were at their server. This is a problem because it wastes the limited resource of our expert helper team on simple questions that would never have been asked if it were not for the fact that the user wasn't near their server.
• A helper enters the thread to actively assist but is unable to provide any help because the user is unable to actually act on any responses. Many threads start with requests for basic followup information such as server logs or other demonstrative data from the server, that of course they can only provide when they have access to that data.

In both cases, helper time is wasted and the user don't actually get to act on any responses faster than they would have been able to had they simply waited til they were able to access their server before asking for help.

cerulean wolf
#

!guide don't trust players

cerulean wolf
#

That will give you an idea

bronze brook
#
  type: command
  debug: false
  name: adminbagel
  description: Bagelcoin Admin Command
  usage: /adminbagel
  permission: adminbagel.get
  tab completions:
    1: add|remove|set|get
    2: <server.online_players.parse[name]>
    3: 10|100
  script:
  - define player <player[<server.match_offline_player[<context.args.get[2]||null>]||<player>>]>
  - define coins <[player].flag[bagelcoins]||0>
  - define action <context.args.get[1]||null>
  - define amount <context.args.get[3].abs||0>
  - choose <[action]>:
    - case set:
      - flag <[player]> bagelcoins:<[amount]>
    - case add:
      - flag <[player]> bagelcoins:-:<[amount]>
    - case remove:
      - flag <[player]> bagelcoins:-:<[amount]>
    - default:
      - narrate "<[player].name> has <[coins]> Bagelcoin" targets:<player>
      - stop
  - define new_coins <[player].flag[bagelcoins]||0>
  - narrate "<[player].name> now has <[new_coins]> Bagelcoin <&7>Previously <[coins]>" targets:<player>```