Pony Pen

A place for furcadian's to find Mortain's Works

So this is code...

I'll update this periodically with snippits I write or Find.

IF something doesn't work, please whisper me in game and let me know.

If you would like to contrubute code, please also whisper me in game.

 

Timestamps (Dreamwide emits)

This is a 2 line simple code that allows people to see the time in your dream. Time is in military time. So 6 PM would be 06:00 and 3:30 PM would be 15:30 and so on.

(0:101) When the time is : FST
(5:204) emitloud message {} to everyone on the map.

 

 

Exit Emit (with triggering furrie's name)

This is a simple exit emit that gives the name of the departing furre to everyone on the whole map and gives the triggering furre a parting message.

(0:10) When a furre leaves the dream,
(5:12) play sound # to everyone on the map. (5:204) emitloud message {[Furre] has left the realm.} to everyone on the map.
(5:200) emit message {Thank you for visiting. Come back soon!} to the triggering furre.

 

 

Setting Starting music and entry text.

Some people like having a little paragraph or so about their dream and what it's about. Links to websites, groups, and the like are usually included as well. This code sets up music and that informative paragraph when your dream is loaded.

(0:0) When everything is starting up,
(5:105) set entry music to #.
(5:210) set entrytext to {...}

 

 

Dreamstats

This long list of code provides dream guests, staff, and owners a look at how their dream is performing when it comes to visitors. By saying *DREAMSTAT, it lists in the dream how many visitor's you have had since you uploaded the dream last.

(0:0) When everything is starting up,
(5:300) %Current 0
(5:300) %Max 0

(0:31) {*DreamStat},
(1:200) %uptime_days is equal to 0.
(1:202) %uptime_hours is less than 24.
(5:200) {DREAM UPTIME: %uptime_hours hour(s) %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStats},
(1:200) %uptime_days is equal to 0.
(1:202) %uptime_hours is less than 24.
(5:200) {DREAM UPTIME: %uptime_hours hour(s) %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStat},
(1:206) %uptime_days is not equal to 0.
(1:202) %uptime_days is less than 100.
(5:200) {DREAM UPTIME: This dream has been online %uptime_days day(s) %uptime_hours hour(s) and %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStats},
(1:206) %uptime_days is not equal to 0.
(1:202) %uptime_days is less than 100.
(5:200) {DREAM UPTIME: This dream has been online %uptime_days day(s) %uptime_hours hour(s) and %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStat},
(1:201) %uptime_days is greater than 99.
(1:202) %uptime_days is less than 365.
(5:200) {DREAM UPTIME: This dream has been online %uptime_days day(s) %uptime_hours hour(s) %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStats},
(1:201) %uptime_days is greater than 99.
(1:202) %uptime_days is less than 365.
(5:200) {DREAM UPTIME: This dream has been online %uptime_days day(s) %uptime_hours hour(s) %uptime_minutes minute(s) VISIT COUNTER: The number of visits since this dream version uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStat},
(1:200) %uptime_days is equal to 365.
(5:200) {DREAM UPTIME: This dream has been online for a very very #SD VERY long time! VISIT COUNTER: The number of visits since this dream uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:31) {*DreamStat},
(1:200) %uptime_days is equal to 365.
(5:200) {DREAM UPTIME: This dream has been online for a very very #SD VERY long time! VISIT COUNTER: The number of visits since this dream uploaded: %dream_visitors ;:; Max visitors in dream: %Max }
(0:9) (5:200) {### This dream is DreamStats enabled. Type &dreamstats to see the current traffic numbers.}
(5:302) %dream_visitors and add 1 to it.
(0:50) 99
(1:202) %uptime_days is less than 365.
(5:302) %uptime_minutes and add 1 to it.
(0:50) 99
(1:200) %uptime_minutes is equal to 60.
(5:302) %uptime_hours and add 1 to it.
(5:300) %uptime_minutes to the value 0.
(0:50) 99
(1:200) %uptime_hours is equal to 24.
(5:302) %uptime_days and add 1 to it.
(5:300) %uptime_hours to the value 0.
(0:50) 99
(1:202) %uptime_days is less than 365.
(5:50) 99 to go off in 60
(0:100) 80 0,
(1:200) %uptime_minutes is equal to 0.
(1:200) %uptime_hours is equal to 0.
(1:200) %uptime_days is equal to 0.
(5:50) 99 1
(0:9)
(5:302) %Current 1
(0:9)
(1:204) %Current %Max,
(5:301) %Current %Max.
(0:10)
(1:119) (0,0)
(5:304) take variable %Current and subtract 1 from it.

 

 

Basic Room/Doorway Movement.

The Basic code we all start with. To move through a doorway that is not attatched but instead has unwalkable space behind it.

(0:7) When somebody moves into position (#,#), (into side room)
(5:15) move the triggering furre to (#,#), (in side room) or to someplace nearby if it's occupied.
(0:7) When somebody moves into position (#,#), (into hallway)
(5:15) move the triggering furre to (#,#), (in hallway) or to someplace nearby if it's occupied.

 

 

header

explination

code