Dream table $

The Dream table (which consists of the table itself and entries contained within it directly, no rows) uses the following syntax:

$tablename.entryname

But what does that look like in practice? We'll give a simple example of how to reference the Dream table using $.


Tutorial 3: Dream table and $

So let's say we want to have a message of the day be emitted to the people in our Dream, for example.

In our PS, the MessageOfTheDay entry currently says: It is a splendid sunny day, I hope that you are all having fun!

The following is what would normally be used for DS lines in this case:

(5:615) remember the PhoenixSpeak info {MessageOfTheDay} about this Dream, and put it in message ~MessageOfTheDay.
(5:204) emitloud message {The Message of the Day is: ~MessageOfTheDay} to everyone on the map.

It would emit the following to anyone present within the Dream at the time:

The Message of the Day is: It is a splendid sunny day, I hope that you are all having fun!

As explained earlier, we had to first remember (load) the value of the MessageOfTheDay PhoenixSpeak entry into a string, then use that string in order to emit the value. However, if we instead use the $ symbol, we can get the same result if we bypass the remembering (loading) step, saving us a DragonSpeak line as well as a string:

(5:204) emitloud message {The Message of the Day is: $dream.MessageOfTheDay} to everyone on the map.

The name of the table is dream, and the name of the PS entry is MessageOfTheDay. So when we're using the Dream table, we need to use the following syntax, adjusted to match what the name of the table is and the PS entry:

$tablename.entryname

Account E-Mail

Password