| · Forum Rules · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Targath |
Posted: Nov 21 2008, 03:33 PM
|
![]() Founder Group: Admin Posts: 340 Member No.: 2 Joined: 26-April 08 |
Let's say you have some predefined emits you would like to be able to toggle... like a news or status of some sort regarding your dream. You can use this little trick to set up the emits so that you can call them by number. This makes use of the dream's .txt or .txb file when it is uploaded. This has been around for a long time, but many have forgotten about it or simply never heard about it before.
First, enter all your predefined emits for toggling at the very beginning of your DS and simply have them emitted when the dream first loads to the 0,0 (upper left corner). This will really do nothing in the dream, but it will add those emits to our .txb file when the dream is loaded and place them at the beginning to make them easier to find. In the example, I only use 5... however, you can use as many as you like. (0:0) When everything is starting up, (5:202) emit message {[NEWS] This is message one.} to every furre who can see (0,0). (5:202) emit message {[NEWS] This is message two.} to every furre who can see (0,0). (5:202) emit message {[NEWS] This is message three.} to every furre who can see (0,0). (5:202) emit message {[NEWS] This is message four.} to every furre who can see (0,0). (5:202) emit message {[NEWS] This is message five.} to every furre who can see (0,0). If you were to look in the Text file for the dream after uploading it one time, we would see the following: DST10 0:Master Socket kidnapped my kiwi! 1:[NEWS] This is message one. 2:[NEWS] This is message two. 3:[NEWS] This is message three. 4:[NEWS] This is message four. 5:[NEWS] This is message five. 6:News The numbers in front of the lines are what we will use to actually emit them. Notice it numbers all emits and text commands (furre says) in order how they appear in the file. The DST10 and 0 line are defaults and should be left alone. Now we need the DS to toggle the message to the one we want. You can also include an emitloud line for news items as in this example, or simply leave that out. The variable %news will be the number 1 - 5 if we say News 1, etc. Notice there are no { } brackets around the variable. This means instead of emitting the number we have said, it will instead now emit the line which matches it in the .txb/.txt file. (0:32) When a furre says something with {News} in it, (5:314) set variable %news to the number the triggering furre just said. (5:204) emitloud message %news to everyone on the map. As long as you do not toggle the variable again, you can have that same message emitted to furres at any other time in your DS. This example will emit the news message to furres who bump the Message Center object. (0:3) When somebody moves into object type 286, (Message Center) (5:200) emit message %news to whoever set off the trigger. If the variable confuses you, try using just the numbers 1-5 in an emit without the { } brackets and you will see the same results. Good luck! -------------------- -= Targath, Founder of New Furre Friends and Sumatran Tiger in the guise of a fat balding human male.
|
| Targath |
Posted: Nov 22 2008, 04:23 PM
|
![]() Founder Group: Admin Posts: 340 Member No.: 2 Joined: 26-April 08 |
By the way... if you do not change the DS in your dream, you can edit the emits in the dream's text (.txt) file and save that. It will still change the emits the next time you upload your dream, even without having to look for them inside the DS.
You may also notice that the silent prefix, spoken commands, and even PS info for saving things, is included in the file. I'm not sure if you can use them the same way as emits yet but will test that out later. -------------------- -= Targath, Founder of New Furre Friends and Sumatran Tiger in the guise of a fat balding human male.
|
![]() |
![]() ![]() ![]() |