Not Scripts

Ambiance

This script allows you to set periodic room messages for certain rooms. You'll have to set it up and make the messages yourself, but it's fairly simple.

Instructions

First of all, the script requires that you have MXP enabled in Achaea and zMUD. To turn it on in Achaea, use CONFIG MXP ON. You can change zMUD's MXP settings in Preferences.

Now, an explanation of how the script works. It uses the MXP tags to see the unique ID for each room, to tell what room you're in. Every 5 minutes, it checks to see if there are any messages set for your current room. If there are, it reads the variable for that room to see the chance of showing a message, and what messages it can show.

There's a sample variable included with the script, and sample messages. The variable is "a1299", which means it fires in room 1299 (North of New Thera). The variable is a stringlist. The first item in the list is a number, in this case 20. That means there's a 20% chance of the script showing a message every 5 minutes. The rest of the items in the list are the messages to be displayed. If the script determines that a message should be displayed, it randomly chooses one of the messages. Each message has an equal chance of being chosen, but you can put the same message in the list multiple times to make it more likely to be chosen. You can have any number of possible messages.

So, if you wanted room 1000 to have a 20% chance of displaying a message, with the possible messages being "MessageOne" and "MessageTwo", you would make a variable: #VAR a1000 {20|MessageOne|MessageTwo}.

SHOWTAGS <on|off>: If you want to see the room IDs in room names, you can use this to turn them on and off. This can be useful if you want to know the room ID so you can make a new message variable.
Č
ċ
ď
Ambiance.txt
(1k)
Sena SF,
3 Mar 2010 18:20