Help with commands (for xgerhard or people who know what he meant)

@xgerhard Can you help me understand the commands in this thread?: Creating a score command, I can’t PM you so i have to do it like this

Those commands are in an old format that is no longer used. Here are equivalent commands:

Type this into your chat to add a command called !points that displays a number:

!addcom !points Points: 0

Type this into your chat to add a command called !setpoints that modifies the number displayed by !points:

!addcom !setpoints -ul=moderator -a=!editcom !points Points: $(query)

If you want to keep track of points for multiple groups (“houses” in that thread), then you can use the command names !pointsX and !setpointsX, where X is the group name.

Thank you but may i ask what -a and -ul mean?

-a= and -ul=

These are the command alias and userlevel parameters.


-a=!editcom

This sets up !setpoints as an alias of !editcom, which means !setpoints will pass input to !editcom, so whenever you use !setpoints like so:

!setpoints 42

You are actually running this command:

!editcom !points Points: 42

-ul=moderator

This sets up !setpoints such that only moderators and above can use !setpoints.

K thank you so much, i get it now

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.