Tutorial 2: Setting up access levels for staff

You can use entry codes to set up simple staff access levels! After all, being a Rah of your own Dream can be tiring -- this way you can make sure only the people you trust and who have been proven to be responsible will have certain abilities. These extra awesome people we will call our Senior Staff. The newer staff we have will be Junior Staff: we want them to have some special abilities, but maybe not all of them. They need to earn their rank after all!

To do this, we need to make sure only certain people will be able to use special commands, even if they are all staff members. For this example we'll give all our staff members, both junior and senior, the ability to make an announcement, but then restrict one other command to only more senior staff: turning on and off the ability for visitors to use swear words.

We'll start off by setting every single player's entry code through DS once they have arrived in the Dream. Since DS runs through the whole list of DS lines from the top of your DS file to the bottom, over and over, we will put the first trigger at the top, which sets the default entry code to be 0. After that we'll add in all the special players who get staff access. Here's the triggers written out:

(0:9) When someone arrives in the Dream,
(5:316) set the triggering furre's entry code to 0.

(0:9) When someone arrives in the Dream,
(1:70) and their name is {George},
(5:316) set the triggering furre's entry code to 1. (Junior staff level)
(5:102) share Dream control with the triggering furre.

(0:9) When someone arrives in the Dream,
(1:70) and their name is {Princess Petunia},
(5:316) set the triggering furre's entry code to 2. (Senior staff level)
(5:102) share Dream control with the triggering furre.

Once again, the very first trigger is quite important. It prevents players from setting their own entry code by using a DreamURL to get to your Dream in order to circumvent your staff system! That's why we set it to 0 first, as it resets whatever entry code they might have used to arrive.

Now that we have established who is a staff member, we will give them all access to a special ability: being able to send out a specific announcement.

(0:31) When someone says {@PSA},
(1:11) and they have got shared control (or is the Dream owner),
(1:93) and their entry code is more than 0,
(5:204) emitloud message {This is an example stock public service announcement message!} to everyone on the map.

Now whenever a staff member, whether they're junior or senior staff, uses the command @PSA they will be able to send out a canned message to everyone in the Dream. And as you can see, only the staff who have any entry code more than 0 will be able to do this, where regular visitors will not.

So far we have two staff members, George and Princess Petunia, and one has a higher entry code than the other. We can use this to our advantage, and create an even more restricted command reserved for our more experienced, senior staff member, Princess Petunia. Only our senior staff members will be able to turn on and off the swear filter. George doesn't need to have access to this yet, he'll have to earn that rank! Princess Petunia worked hard for it, after all!

(0:31) When someone says {@Swear Filter On},
(1:11) and they have got shared control (or is the Dream owner),
(1:93) and their entry code is more than 1,
(5:104) activate text filter number 1.


(0:31) When someone says {@Swear Filter Off},
(1:11) and they have got shared control (or is the Dream owner),
(1:93) and their entry code is more than 1,
(5:104) activate text filter number 0.

Now only Princess Petunia will be able to use a command to turn on and off the swear filter for the players in your Dream, even though both she and George have shared control.

Account E-Mail

Password