*Used for adding, deleting, and modifying doors in room #vnum.
*Direction determines which door is being changed, and can be north, south, east, west, up, or down.
*If the door does not exist first, a new door will be created.
*Field is what property of the door is being changed. Valid fields are:
*
*purge - remove the exit in the direction specified - no value needed
*description - value will become the new exit description
*flags - value will be the new door flags bitvector as defined here:
* a - Exit is a door that can be opened and closed.
* b - The door is closed.
* c - The door is locked.
* d - The door is pick-proof.
*key - value is the vnum of the key to the door in this direction
*name - value is the name of the door in the specified direction
*room - value is the vnum of the room this direction leads to
*Example by Falstar for room 14520
*The following trigger is designed to reveal a trapdoor leading down when Player types 'Move Chest'
*
*The following ARGument determines what can be MOVEd ('move' Command inserted in Arg List of trigger)
if ("%arg%" == "chest")
*
*Send text to player to show effect of command
%send% %actor% You move the chest across the floor, revealing a trapdoor underneath!!
*
*Send text to other players in room to inform them of Player's discovery
%echoaround% %actor% %actor.name% has discovered a hidden trapdoor under a chest!
*
* Set door flags to 'ab' - Exit is a door that can be opened and closed, then close door
%door% 14520 down flags ab
* Change door name to 'trapdoor' (used in door commands, eg open trapdoor, lock trapdoor)
%door% 14520 down name trapdoor
* Set room that trapdoor exits leads to (Room 14521 in this case)
%door% 14520 down room 14521
*Set Exit desc for the wary adventure who decides to 'look down'
%door% 14520 down description A wooden ladder leads down into the darkness.
*Set the Vnum of the KEY OBJECT which will lock/unlock door
%door% 14520 down key 14500
*
* Now for Continuity, door commands must be set for reverse direction FROM 14521
%door% 14521 up flags ab
%door% 14521 up name trapdoor
%door% 14521 up room 14520
%door% 14521 up description A wooden ladder leads up into a storeroom.
%door% 14521 up key 14500
*
* IMPORTANT: Note reverse of direction in both the commands and extra descriptions and room numbers
* it can be very easy to get lost here and probably get your adventurer lost too.
*
*Finally set up what happens when adventurer tries to move anything else and end the trigger
*
else
%send% %actor% Move what ?!
end
~
#1315
Room Enter Damage Example~
2 g 100
~
* First put a wait in there so the echo waits for the player to get into the room.
wait 1
%echo% As %actor.name% enters the room a bolt of lightning smites %actor.himher%.
%damage% %actor% 10
wait 5 sec
%echo% The Gods feel sorry for %actor.name% and restore him to full health.
%damage% %actor% -10
~
#1316
Room Command Example~
2 c 100
l~
if (%cmd.mudcommand% == look) && (%arg% /= test)
%echo% works
return 1
else
* Don't capture the look command..
return 0
end
~
#1317
Room At Example~
2 d 100
test~
*In progress
%at% 1208 %echo% wat'd
%echo% trigger fired.
%at% 1208 %purge% statue
~
#1318
Room Enter Block Mobs Not Following~
2 g 100
~
if !%actor.is_pc%
if !%actor.master%
return 0
end
end
~
#1319
Room Random Test For Variables~
2 b 100
~
%echo% my ID is: %self.ID%
%echo% my VNUM is: %self.vnum%
set actor %random.char%
%echo% Hello, %actor.name%
~
#1320
Room Enter Echo Example~
2 g 100
~
* put a wait in here so it doesn't fire before the player enters the room
wait 1
switch %random.3%
case 1
* only the person entering the room will see this.
%send% %actor% You trip over a root as you walk into the room.
* everyone in the room except the actor will see this.
%echoaround% %actor% %actor.name% trips on a root walking into the room.
* everyone in the room will see this.
%echo% The root suddenly springs to life and attacks!
* let everyone in the zone hear about this.
%zoneecho% %self.vnum% %actor.name% is a clutz.
break
case 2
%send% %actor% You strut into the room.
%echoaround% %actor% %actor.name% Seems to have a big head..
%echo% A strong breeze kicks some leaves up into the air.
break
case 3
%echo% A light breeze picks up, causing the leaves to rustle quietly.
break
default
* this should be here, even if it's never reached
%echo% This is the default case in case I missed something
break
done
~
#1321
Room Command Mushroom Pick~
2 c 100
pick~
if %cmd.mudcommand%==pick && mushroom/=%arg% && %arg.strlen%>0
%load% obj 1300
%force% %actor% say it works
else
%echo% pick what?
end
~
#1322
Room Random Variables~
2 b 100
test~
%echo% the weather is: %room.weather%
~
#1323
Room Variables Example~
2 b 100
~
set actor %random.char%
eval room %actor.room%
%echo% ID: %room.id%
%echo% NAME: %room.name%
%echo% NORTH: %room.north%
%echo% SOUTH: %room.south%
%echo% EAST: %room.east%
%echo% WEST: %room.west%
%echo% UP: %room.up%
%echo% DOWN: %room.down%
%echo% VNUM: %room.vnum%
%echo% PEOPLE: %room.people%
~
#1324
Mob Greet Inventory Check~
0 g 100
~
* By Jamie Nelson from the forum http://groups.yahoo.com/group/dg_scripts/
* Checks if the actor is wielding the item
if %actor.eq(wield)%
eval wep %actor.eq(wield)%
if %wep.vnum%==1300
set has_it 1
end
end
* Checks the actors inventory if not wielding it.
if !%has_it%
eval i %actor.inventory%
while (%i%)
set next %i.next_in_list%
if %i.vnum%==1300
set has_it 1
break
end
if %i.type% == CONTAINER
%echo% is a container.
%echo% contains: %i.contents%
eval in_bag %i.contents%
%echo% %in_bag.vnum%
while %in_bag%
set next_in_bag %in_bag.next_in_list%
%echo% %next_in_bag.vnum%
if %in_bag.vnum%==1300
%echo% has it in bag
set has_it 1
break
end
set in_bag %next_in_bag%
done
set i %next%
done
end
*
if %has_it%
say %actor.name% has that special item.
else
say %actor.name% doesnt have that crappy item.
end
~
#1325
Mob Command Quote~
0 d 100
quote~
* By Jamie Nelson
eval w1max %random.20%
eval w2max %random.20%
eval w3max %random.20%
eval w4max %random.20%
eval w5max %random.11%
eval w6max %random.20%
set w1[0] phenomenal
set w1[1] rapid
set w1[2] chilling
set w1[3] insipid
set w1[4] nauseating
set w1[5] astronomical
set w1[6] austere
set w1[7] inevitable
set w1[8] inescapable
set w1[9] reckless
set w1[10] haphazard
set w1[11] accelerating
set w1[12] profound
set w1[13] awesome
set w1[14] terrifying
set w1[15] ubiquitous
set w1[16] ignominious
set w1[17] unprecedented
set w1[18] unparalleled
set w1[19] insidious
set w1[20] broad
set w2[0] growth
set w2[1] decline
set w2[2] prospects
set w2[3] acceleration
set w2[4] threat
set w2[5] expansion
set w2[6] oneness
set w2[7] outgrowth
set w2[8] madness
set w2[9] evacuation
set w2[10] diminishment
set w2[11] consumption
set w2[12] decay
set w2[13] putrefaction
set w2[14] vapidity
set w2[15] downsizing
set w2[16] degeneration
set w2[17] litigation
set w2[18] declivity
set w2[19] hastening
set w2[20] paradigm shifting
set w3[0] the Internet
set w3[1] urban tax dollars
set w3[2] new technologies
set w3[3] gender identification disorders
set w3[4] censorship
set w3[5] interpersonal communications
set w3[6] modern life
set w3[7] rampant paradigm shifts
set w3[8] consumer spending
set w3[9] rain forests
set w3[10] human literacy
set w3[11] natural resources
set w3[12] traditional values
set w3[13] media junk food
set w3[14] family values
set w3[15] corporate mentality
set w3[16] the American justice system
set w3[17] technological change
set w3[18] the ozone layer
set w3[19] human resources
set w3[20] current epistemologies
set w4[0] forever dissipate
set w4[1] escalate
set w4[2] aggrandize
set w4[3] overhaul
set w4[4] deteriorate
set w4[5] revolutionize
set w4[6] uglify
set w4[7] put an end to
set w4[8] enslave
set w4[9] bankrupt
set w4[10] truncate
set w4[11] nullify
set w4[12] sabotage
set w4[13] destabilize
set w4[14] incapacitate
set w4[15] hasten
set w4[16] dehumanize
set w4[17] evaporate
set w4[18] indenture
set w4[19] intensify
set w4[20] undermine
set w5[0] today's
set w5[1] tomorrow's
set w5[2] the entrenchment of our
set w5[3] worldwide
set w5[4] our children's
set w5[5] modern
set w5[6] all of our
set w5[7] our future
set w5[8] our
set w5[9] the demise of our
set w5[10] our grandchildren's
set w5[11] all hope for
set w6[0] business models
set w6[1] re-ruralization
set w6[2] human condition
set w6[3] family values
set w6[4] self-esteem
set w6[5] medical insights
set w6[6] human psyche
set w6[7] human depth
set w6[8] egalitarianism
set w6[9] World Wide Web
set w6[10] future values
set w6[11] hopes and dreams
set w6[12] business models
set w6[13] political climate
set w6[14] education
set w6[15] cultural heritage
set w6[16] lifestyles
set w6[17] fiduciary responsibility
set w6[18] genetic diversity
set w6[19] intestinal fortitude
set w6[20] computer literacy
set w1 %%w1[%w1max%]%%
eval w1 %w1%
set msg The %w1%
set w2 %%w2[%w2max%]%%
eval w2 %w2%
set msg %msg% %w2% of
set w3 %%w3[%w3max%]%%
eval w3 %w3%
set msg %msg% %w3%
set w4 %%w4[%w4max%]%%
eval w4 %w4%
set msg %msg% will %w4%
set w5 %%w5[%w5max%]%%
eval w5 %w5%
set msg %msg% %w5%
set w6 %%w6[%w6max%]%%
eval w6 %w6%
set msg %msg% %w6%
say %msg%
~
#1326
Mob Greet Einstein Converter - 1319~
0 g 100
~
wait 1 sec
emote is distracted by your entrance is seems to lose his train of thought.
wait 1 sec
say Good day, %actor.name%. Can I help you convert something?
~
#1327
Temperature Converter for Detta - 1319~
0 d 100
*~
if %speech% > -999
eval celsius (((%speech% - 32) * 5) / 9)
eval fahrenheit (((%speech% * 9) / 5) + 32)
say %speech% converted to celsius would be: %celsius%
say %speech% converted to fahrenheit would be: %fahrenheit%
end
~
#1328
Mobile Receive Example~
0 j 100
~
*Check to see if the player gave it the right object
if %object.vnum% == 1300
wait 1 sec
say Thank you %actor.name%!
wait 1 sec
tell %actor.name% Here is a small reward for your hard work!
%echo% %self.name% thanks %actor.name%
kiss %actor.name%
%purge% app
%load% obj 1301
give gren %actor.name%
else
say I don't want this!
return 0
end
~
#1329
Mobile Act Example~
0 e 100
kisses you.~
slap %actor.name%
say I'm not that kind of girl.
pout
~
#1330
Mobile Greet Example~
0 g 100
~
*only greet players
if %actor.is_pc%
*coming from this direction
if %direction% == down
say Ah, hello %actor.name% I have been waiting for you. Go learn to build
%teleport% %actor% 1300
%force% %actor% look
end
end
~
#1331
Mobile Random Example~
0 b 100
~
*DENTIST
*From the show "Little Shop Of Horrors" (1982)
*(Alan Menken / Howard Ashman)
*Steve Martin
*
%echo% %self.name% sings, When I was young and just a bad little kid,
wait 3 sec
%echo% %self.name% sings, My momma noticed funny things I did.
wait 3 sec
%echo% %self.name% sings, Like shootin' puppies with a BB-Gun.
wait 3 sec
%echo% %self.name% sings, I'd poison guppies, and when I was done,
wait 3 sec
%echo% %self.name% sings, I'd find a pussy-cat and bash in it's head.
wait 3 sec
%echo% %self.name% sings, That's when my momma said...
wait 3 sec
%echo% A chorus from above sings, 'What did she say?'
wait 3 sec
%echo% %self.name% sings, She said my boy I think someday
wait 3 sec
%echo% %self.name% sings, You'll find a way
wait 3 sec
%echo% %self.name% sings, To make your natural tendencies pay...
wait 6 sec
%echo% %self.name% sings, You'll be a dentist.
wait 3 sec
%echo% %self.name% sings, You have a talent for causing things pain!
wait 3 sec
%echo% %self.name% sings, Son, be a dentist.
wait 3 sec
%echo% %self.name% sings, People will pay you to be inhumane!
wait 3 sec
%echo% %self.name% sings, You're temperment's wrong for the priesthood,
wait 3 sec
%echo% %self.name% sings, And teaching would suit you still less.
wait 3 sec
%echo% %self.name% sings, Son, be a dentist.
wait 3 sec
%echo% %self.name% sings, You'll be a success.
wait 6 sec
%echo% A chorus from above sings, "Here he is folks, the leader of the plaque."
wait 3 sec
%echo% A chorus from above sings, "Watch him suck up that gas. Oh My God!"
wait 3 sec
%echo% A chorus from above sings, "He's a dentist and he'll never ever be any good."
wait 3 sec
%echo% A chorus from above sings, "Who wants their teeth done by the Marqui DeSade?"
wait 6 sec
%echo% An innocent dental patient screams, "Oh, that hurts! Wait! I'm not numb!"
%echo% %self.name% sings, "Eh, Shut Up! Open Wide! Here I Come!"
wait 6 sec
%echo% %self.name% sings, I am your dentist.
wait 3 sec
%echo% %self.name% sings, And I enjoy the career that I picked.
wait 3 sec
%echo% %self.name% sings, I'm your dentist.
wait 3 sec
%echo% %self.name% sings, And I get off on the pain I inflict!
wait 6 sec
%echo% %self.name% sings, When I start extracting those mollars
wait 3 sec
%echo% %self.name% sings, Girls, you'll be screaming like holy rollers
wait 6 sec
%echo% %self.name% sings, And though it may cause my patients distress.
wait 3 sec
%echo% %self.name% sings, Somewhere...Somewhere in heaven above me...
wait 3 sec
%echo% %self.name% sings, I know...I know that my momma's proud of me.
wait 3 sec
%echo% %self.name% sings, "Oh, Momma..."
wait 6 sec
%echo% %self.name% sings, 'Cause I'm a dentist...
wait 3 sec
%echo% %self.name% sings, And a success!
wait 6 sec
%echo% %self.name% sings, "Say ahh..."
wait 3 sec
%echo% %self.name% sings, "Say AHhhh..."
wait 3 sec
%echo% %self.name% sings, "Say AAARRRHHHH!!!"
wait 3 sec
%echo% %self.name% sings, "Now Spit!"
%purge% %self%
~
#1332
Variables Example~
0 b 100
~
* By Rumble
set actor %random.char%
say hello %actor.name%
say your alias is %actor.alias%
say you canbeseen %actor.canbeseen%
say your cha is %actor.cha%
say your class is %actor.class%
say your con is %actor.con%
say your dex is %actor.dex%
say your experience is %actor.exp%
*
*equipment positions
*light 0
if %actor.eq(light)%
eval light %actor.eq(light)%
say your light is ID: %light.id%, Name: %light.name%, Shortdesc: %light.shortdesc%, Timer: %light.timer%, Type: %light.type%.
say your light is Val0: %light.val0%, Val1: %light.val1%, Val2: %light.val2%, Val3: %light.val3%, Vnum: %light.vnum%, Weight: %light.weight%, Cost: %light.cost%.
end
*rfinger 1
if %actor.eq(rfinger)%
eval rfinger %actor.eq(rfinger)%
say your rfinger is ID: %rfinger.id%, Name: %rfinger.name%, Shortdesc: %rfinger.shortdesc%, Timer: %rfinger.timer%, Type: %rfinger.type%.
say your rfinger is Val0: %rfinger.val0%, Val1: %rfinger.val1%, Val2: %rfinger.val2%, Val3: %rfinger.val3%, Vnum: %rfinger.vnum%, Weight: %rfinger.weight%, Cost: %rfinger.cost%.
end
*lfinger 2
if %actor.eq(lfinger)%
eval lfinger %actor.eq(lfinger)%
say your lfinger is ID: %lfinger.id%, Name: %lfinger.name%, Shortdesc: %lfinger.shortdesc%, Timer: %lfinger.timer%, Type: %lfinger.type%.
say your lfinger is Val0: %lfinger.val0%, Val1: %lfinger.val1%, Val2: %lfinger.val2%, Val3: %lfinger.val3%, Vnum: %lfinger.vnum%, Weight: %lfinger.weight%, Cost: %lfinger.cost%.
end
*neck1 3
if %actor.eq(neck1)%
eval neck1 %actor.eq(neck1)%
say your neck1 is ID: %neck1.id%, Name: %neck1.name%, Shortdesc: %neck1.shortdesc%, Timer: %neck1.timer%, Type: %neck1.type%.
say your neck1 is Val0: %neck1.val0%, Val1: %neck1.val1%, Val2: %neck1.val2%, Val3: %neck1.val3%, Vnum: %neck1.vnum%, Weight: %neck1.weight%, Cost: %neck1.cost%.
end
*neck2 4
if %actor.eq(neck2)%
eval neck2 %actor.eq(neck2)%
say your neck2 is ID: %neck2.id%, Name: %neck2.name%, Shortdesc: %neck2.shortdesc%, Timer: %neck2.timer%, Type: %neck2.type%.
say your neck2 is Val0: %neck2.val0%, Val1: %neck2.val1%, Val2: %neck2.val2%, Val3: %neck2.val3%, Vnum: %neck2.vnum%, Weight: %neck2.weight%, Cost: %neck2.cost%.
end
*body 5
if %actor.eq(body)%
eval body %actor.eq(body)%
say your body is ID: %body.id%, Name: %body.name%, Shortdesc: %body.shortdesc%, Timer: %body.timer%, Type: %body.type%.
say your body is Val0: %body.val0%, Val1: %body.val1%, Val2: %body.val2%, Val3: %body.val3%, Vnum: %body.vnum%, Weight: %body.weight%, Cost: %head.cost%.
end
*head 6
if %actor.eq(head)%
eval head %actor.eq(head)%
say your head is ID: %head.id%, Name: %head.name%, Shortdesc: %head.shortdesc%, Timer: %head.timer%, Type: %head.type%.
say your head is Val0: %head.val0%, Val1: %head.val1%, Val2: %head.val2%, Val3: %head.val3%, Vnum: %head.vnum%, Weight: %head.weight%, Cost: %head.cost%.
end
*legs 7
if %actor.eq(legs)%
eval legs %actor.eq(legs)%
say your legs is ID: %legs.id%, Name: %legs.name%, Shortdesc: %legs.shortdesc%, Timer: %legs.timer%, Type: %legs.type%.
say your legs is Val0: %legs.val0%, Val1: %legs.val1%, Val2: %legs.val2%, Val3: %legs.val3%, Vnum: %legs.vnum%, Weight: %legs.weight%, Cost: %legs.cost%.
end
*feet 8
if %actor.eq(feet)%
eval feet %actor.eq(feet)%
say your feet is ID: %feet.id%, Name: %feet.name%, Shortdesc: %feet.shortdesc%, Timer: %feet.timer%, Type: %feet.type%.
say your feet is Val0: %feet.val0%, Val1: %feet.val1%, Val2: %feet.val2%, Val3: %feet.val3%, Vnum: %feet.vnum%, Weight: %feet.weight%, Cost: %feet.cost%.
end
*hands 9
if %actor.eq(hands)%
eval hands %actor.eq(hands)%
say your hands is ID: %hands.id%, Name: %hands.name%, Shortdesc: %hands.shortdesc%, Timer: %hands.timer%, Type: %hands.type%.
say your hands is Val0: %hands.val0%, Val1: %hands.val1%, Val2: %hands.val2%, Val3: %hands.val3%, Vnum: %hands.vnum%, Weight: %hands.weight%, Cost: %hands.cost%.
end
*arms 10
if %actor.eq(arms)%
eval arms %actor.eq(arms)%
say your arms is ID: %arms.id%, Name: %arms.name%, Shortdesc: %arms.shortdesc%, Timer: %arms.timer%, Type: %arms.type%.
say your arms is Val0: %arms.val0%, Val1: %arms.val1%, Val2: %arms.val2%, Val3: %arms.val3%, Vnum: %arms.vnum%, Weight: %arms.weight%, Cost: %arms.cost%.
end
*shield 11
if %actor.eq(shield)%
eval shield %actor.eq(shield)%
say your shield is ID: %shield.id%, Name: %shield.name%, Shortdesc: %shield.shortdesc%, Timer: %shield.timer%, Type: %shield.type%.
say your shield is Val0: %shield.val0%, Val1: %shield.val1%, Val2: %shield.val2%, Val3: %shield.val3%, Vnum: %shield.vnum%, Weight: %shield.weight%, Cost: %shield.cost%.
end
*about 12
if %actor.eq(about)%
eval about %actor.eq(about)%
say your about is ID: %about.id%, Name: %about.name%, Shortdesc: %about.shortdesc%, Timer: %about.timer%, Type: %about.type%.
say your about is Val0: %about.val0%, Val1: %about.val1%, Val2: %about.val2%, Val3: %about.val3%, Vnum: %about.vnum%, Weight: %about.weight%, Cost: %about.cost%.
end
*waist 13
if %actor.eq(waist)%
eval waist %actor.eq(waist)%
say your waist is ID: %waist.id%, Name: %waist.name%, Shortdesc: %waist.shortdesc%, Timer: %waist.timer%, Type: %waist.type%.
say your waist is Val0: %waist.val0%, Val1: %waist.val1%, Val2: %waist.val2%, Val3: %waist.val3%, Vnum: %waist.vnum%, Weight: %waist.weight%, Cost: %waist.cost%.
end
*rwrist 14
if %actor.eq(rwrist)%
eval rwrist %actor.eq(rwrist)%
say your rwrist is ID: %rwrist.id%, Name: %rwrist.name%, Shortdesc: %rwrist.shortdesc%, Timer: %rwrist.timer%, Type: %rwrist.type%.
say your rwrist is Val0: %rwrist.val0%, Val1: %rwrist.val1%, Val2: %rwrist.val2%, Val3: %rwrist.val3%, Vnum: %rwrist.vnum%, Weight: %rwrist.weight%, Cost: %rwrist.cost%.
end
*lwrist 15
if %actor.eq(lwrist)%
eval lwrist %actor.eq(lwrist)%
say your lwrist is ID: %lwrist.id%, Name: %lwrist.name%, Shortdesc: %lwrist.shortdesc%, Timer: %lwrist.timer%, Type: %lwrist.type%.
say your lwrist is Val0: %lwrist.val0%, Val1: %lwrist.val1%, Val2: %lwrist.val2%, Val3: %lwrist.val3%, Vnum: %lwrist.vnum%, Weight: %lwrist.weight%, Cost: %lwrist.cost%.
end
*wield 16
if %actor.eq(wield)%
eval wield %actor.eq(wield)%
say your wield is ID: %wield.id%, Name: %wield.name%, Shortdesc: %wield.shortdesc%, Timer: %wield.timer%, Type: %wield.type%.
say your wield is Val0: %wield.val0%, Val1: %wield.val1%, Val2: %wield.val2%, Val3: %wield.val3%, Vnum: %wield.vnum%, Weight: %wield.weight%, Cost: %wield.cost%.
end
*hold 17
if %actor.eq(hold)%
eval hold %actor.eq(hold)%
say your hold is ID: %hold.id%, Name: %hold.name%, Shortdesc: %hold.shortdesc%, Timer: %hold.timer%, Type: %hold.type%.
say your hold is Val0: %hold.val0%, Val1: %hold.val1%, Val2: %hold.val2%, Val3: %hold.val3%, Vnum: %hold.vnum%, Weight: %hold.weight%, Cost: %hold.cost%.
end
say you are fighting: %actor.fighting%
say you have %actor.gold% coins
say your ID is %actor.id%
say your int is %actor.int%
say your is_killer is %actor.is_killer%
say your is_thief is %actor.is_thief%
say your level is %actor.level%
say your hitp is %actor.hitp%
say your mana is %actor.mana%
say your move is %actor.move%
say your master is: %actor.master%
say your maxhitp is %actor.maxhitp%
say your maxmana is %actor.maxmana%
say your maxmove is %actor.maxmove%
say the next_in_room is %actor.next_in_room%
say you are in room %actor.room%
say your sex is %actor.sex%
say you are a: %actor.hisher%
say you are a: %actor.heshe%
say you are a: %actor.himher%
say you have %actor.inventory% in your inventory.
say you know the skill backstab %actor.skill(backstab)%
say your str is %actor.str%
say your stradd is %actor.stradd%
say your vnum is %actor.vnum%
say your wis is %actor.wis%
say your weight is %actor.weight%
*
eval roomv %actor.room%
say the weather is: %roomv.weather%
~
#1333
free~
0 ab 12
~
eval max %random.200%
set text[1] My god! It's full of stars!
set text[2] How'd all those fish get up here?
set text[3] I'm a very female dragon.
set text[4] I've got a peaceful, easy feeling.
set text[5] Ahhh, spring is in the air.
set text[6] I'm one of those bad things that happen to good people.
set text[7] Bring out your dead, bring out your dead!
set text[8] If there is no God, who pops up the next kleenex in the box?
set text[9] Have you ever imagined a world with no hypothetical situations?
set text[10] Pardon me, but do you have any Grey Poupon?
set text[11] If nothing sticks to Teflon, how do they stick Teflon to the pan?
set text[12] Better be nice or I will use fireball on you!
set text[13] Do you think I'm going bald?
set text[14] This is your brain, this is MUD, this is your brain on MUD, Any questions?
set text[15] I'm Puff the Magic Dragon, who the hell are you?
set text[16] Quick! Reverse the polarity of the neutron flow!
set text[17] Shh... I'm beta testing. I need complete silence!
set text[18] I'm the real implementor, you know.
set text[19] If love is blind, why is lingerie so popular?
set text[20] Despite the cost of living, have you noticed how popular it remains?
set text[21] Are you crazy, is that your problem?
set text[22] A bus station is where a bus stops. A train station is where a train stops. On my desk I have a work station. GO FIGURE!
set text[23] If you can't beat them, arrange to have them beaten.
set text[24] It takes a big man to cry, but it takes a bigger man to laugh at him.
set text[25] Friends come and go, but enemies accumulate.
set text[26] A lie has speed but truth has endurance.
set text[27] Do not blame the sword for the hand that wields it.
set text[28] The intention is not to see through each other but to see each other through.
set text[29] You can build a throne of bayonets, but you cannot sit on it for long.
set text[30] True friendship comes when silence between two people is comforting.
set text[31] I can picture in my mind a world without hate or anger and I can picture us attacking that world because they would never expect it.
set text[32] Life is like a dog sled team. If you are not the lead dog, the scenery never changes.
set text[33] The only man completely at peace is a man without a navel.
set text[34] Losers talk about how hard they tried while the winner goes home with the prom queen.
set text[35] Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day.
set text[36] Keep your friends close but keep your enemies closer.
set text[37] No, my powers can only be used for good.
set text[38] Who was the first person to look at a cow and say, "I think I'll squeeze these dangly things here, and drink whatever comes out"?
set text[39] Why do toasters always have a setting that burns the toast to a horrible crisp such that no decent human being would eat?
set text[40] Why is there a light in the fridge and not in the freezer?
set text[41] Why is it that some people appear bright until you hear them speak?
set text[42] Can a hearse carrying a corpse drive in the carpool lane?
set text[43] Why do people point to their wrist when asking for the time, but don't point to their crotch when they ask where the bathroom is?
set text[44] Why ARE Trix only for kids?
set text[45] Why is a person that handles your money called a 'Broker'?
set text[46] Whose cruel idea was it for the word "lisp" to have an "s" in it?
set text[47] If corn oil is made from corn, and vegetable oil is made from vegetables, then what is baby oil made from?
set text[48] If electricity comes from electrons, does morality come from morons?
set text[49] Is Disney World the only people trap operated by a mouse?
set text[50] "I am" is reportedly the shortest sentence in the English language. Could it be that "I do" is the longest sentence?
set text[51] Do illiterate people get the full effect of Alphabet Soup?
set text[52] Did you ever notice that when you blow in a dog's face, he gets mad at you, but when you take him on a car ride, he sticks his head out the window?
set text[53] My mind works like lightning one brilliant flash and it is gone.
set text[54] 100,000 sperm and you were the fastest?
set text[55] A closed mouth gathers no foot.
set text[56] Someday, we'll all look back on this, laugh nervously and change the subject.
set text[57] A diplomat is someone who can tell you to go to hell in such a way that you will look forward to the trip.
set text[58] All generalizations are false, including this one.
set text[59] We are born naked, wet and hungry. Then things get worse.
set text[60] What was the best thing BEFORE sliced bread?
set text[61] All stressed out and no one to choke.
set text[62] Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes.
set text[63] Better to understand a little than to misunderstand a lot.
set text[64] Bills travel through the mail at twice the speed of checks.
set text[65] Do NOT start with me. You will NOT win.
set text[66] Don't be irreplaceable; if you can't be replaced, you can't be promoted.
set text[67] Don't piss me off! I'm running out of places to hide the bodies.
set text[68] Don't take life too seriously, you won't get out alive.
set text[69] Duct tape is like the force, it has a light side and a dark side and it holds the universe together.
set text[70] Eagles may soar, but weasels don't get sucked into jet engines.
set text[71] Ever stop to think, and forget to start again?
set text[72] Forget world peace. Visualize using your turn signal.
set text[73] Give me ambiguity or give me something else.
set text[74] Why do people with closed minds always open their mouths?
set text[75] He who laughs last thinks slowest.
set text[76] I didn't say it was your fault, Relsqui. I said I was going to blame you.
set text[77] I don't suffer from insanity. I enjoy every minute of it.
set text[78] I feel like I'm diagonally parked in a parallel universe.
set text[79] I just got lost in thought. It was unfamiliar territory.
set text[80] I need someone really bad. Are you really bad?
set text[81] I poured Spot remover on my dog. Now he's gone.
set text[82] I used to be indecisive. Now I'm not sure.
set text[83] I used to have a handle on life, and then it broke.
set text[84] If ignorance is bliss, you must be orgasmic.
set text[85] Some people are alive only because it's illegal to kill them.
set text[86] It is far more impressive when others discover your good qualities without your help.
set text[87] It may be that your sole purpose in life is simply to serve as a warning to others.
set text[88] Never mess up an apology with an excuse.
set text[89] Okay, who put a stop payment on my reality check?
set text[90] Of course I don't look busy... I did it right the first time.
set text[91] Quantum mechanics: The dreams stuff is made of.
set text[92] Save your breath. You'll need it to blow up your date!
set text[93] Smith & Wesson: The original point and click interface.
set text[94] Some days you are the bug, some days you are the windshield.
set text[95] Some drink at the fountain of knowledge. Others just gargle.
set text[96] The early bird may get the worm, but the second mouse gets the cheese.
set text[97] The only substitute for good manners is fast reflexes.
set text[98] The problem with the gene pool is that there is no lifeguard.
set text[99] Remember my name - you'll be screaming it later.
set text[100] The severity of the itch is inversely proportional to the ability to reach it.
set text[101] Very funny Scotty, now beam down my clothes.
set text[102] Why is abbreviation such a long word?
set text[103] Why isn't phonetic spelled the way it sounds?
set text[104] You're just jealous because the voices are talking to me and not you!
set text[105] The proctologist called, they found your head.
set text[106] Everyone has a photographic memory; some just don't have film.
set text[107] Try not to let your mind wander. It is too small to be out by itself.
set text[108] You need only two tools. WD-40 and duct tape. If it doesn't move and it should, use WD-40. If it moves and shouldn't, use the tape.
set text[109] If you woke up breathing, congratulations! You have another chance!
set text[110] I don't believe in miracles. I rely on them.
set text[111] When I'm feeling down, I like to whistle. It makes the neighbor's dog that barks all the time run to the end of his chain and gag himself.
set text[112] Why did kamikaze pilots wear helmets?
set text[113] I'm not tense, just terribly, terribly alert.
set text[114] How do I set a laser printer to stun?
set text[115] Everything I need to know about life I learned by killing smart people and eating their brains.
set text[116] I thought I wanted a career, turns out I just wanted paychecks.
set text[117] Is it time for your medication or mine?
set text[118] Too many freaks, not enough circuses.
set text[119] How many times do I have to flush before you go away?
set text[120] No word in the English language rhymes with month, orange, silver, and purple.
set text[121] If lawyers are disbarred and clergymen defrocked, doesn't it follow that electricians can be delighted, musicians denoted, cowboys deranged, models deposed, tree surgeons debarked and dry cleaners depressed?
set text[122] Sarcasm: just one more service we offer here.
set text[123] This is a mean and cruel world. I want my nappy and medication right now!
set text[124] Back off! You're standing in my aura.
set text[125] More people are killed annually by donkeys than die in air crashes.
set text[126] A 'jiffy' is an actual unit of time for 1/100th of a second.
set text[127] Does your train of thought have a caboose?
set text[128] Money isn't made out of paper, it's made out of cotton.
set text[129] I got out of bed for this?
set text[130] You, you and you: panic. The rest of you, come with me.
set text[131] Stress is when you wake up screaming and you realize you haven't fallen asleep yet.
set text[132] I'm not your type. I'm not inflatable.
set text[133] If it's stupid but works, it isn't stupid.
set text[134] If only you'd use your powers for good instead of evil...
set text[135] The more you sweat in peace, the less you bleed in war.
set text[136] Tracers work both ways.
set text[137] Who cares if a laser guided 500 lb bomb is accurate to within 3 feet?
set text[138] Ever wonder about those people who spend 2.00 dollars a piece on those little bottles of Evian water? Try spelling Evian backwards.
set text[139] Isn't making a smoking section in a restaurant like making a peeing section in a swimming pool?
set text[140] Why do croutons come in airtight packages? Aren't they just stale bread to begin with?
set text[141] Why is it that rain drops but snow falls?
set text[142] If it's true that we are here to help others, then what exactly are the others here for?
set text[143] The light at the end of the tunnel has been turned off due to budget cuts.
set text[144] %random.4% days without a human rights violation!
set text[145] At least you're not being rectally probed by aliens.
set text[146] The most powerful force in the universe is gossip.
set text[147] You should not confuse your career with your life.
set text[148] No matter what happens, somebody will find a way to take it too seriously.
set text[149] When trouble arises and things look bad, there is always one individual who perceives a solution and is willing to take command. Very often, that individual is crazy.
set text[150] There is a very fine line between "hobby" and "mental illness."
set text[151] Take out the fortune before you eat the cookie.
set text[152] Never under any circumstances take a sleeping pill and a laxative on the same night.
set text[153] You should never say anything to a woman that even remotely suggests you think she's pregnant unless you can see an actual baby emerging from her at that moment.
set text[154] A person who is nice to you, but rude to the waiter, is not a nice person.
set text[155] When everything's coming your way, you're in the wrong lane.
set text[156] I live in my own little world, but it's ok they know me here.
set text[157] Show me a man with both feet firmly on the ground, and I'll show you a man who can't get his pants off.
set text[158] I don't approve of political jokes...I've seen too many of them get elected.
set text[159] I love being married. It's so great to find that one special person you want to annoy for the rest of your life.
set text[160] I am a nobody, nobody is perfect, therefore I am perfect.
set text[161] Everyday I beat my own previous record for number of consecutive days I've stayed alive.
set text[162] If carrots are so good for the eyes, how come I see so many dead rabbits on the highway?
set text[163] Welcome To Shit Creek - Sorry, We're Out of Paddles!
set text[164] How come we choose from just two people to run for president and 50 for Miss America?
set text[165] Ever notice that people who spend money on beer, cigarettes, and lottery tickets are always complaining about being broke and not feeling well?
set text[166] The next time you feel like complaining remember: Your garbage disposal probably eats better than thirty percent of the people in this world.
set text[167] Snowmen fall from Heaven unassembled.
set text[168] Every time I walk into a singles bar I can hear Mom's wise words: "Don't pick that up, you don't know where it's been."
set text[169] Out of my mind...Back in five minutes.
set text[170] I want to die peacefully in my sleep like my grandfather...Not screaming and yelling, like the passengers in his car.
set text[171] Man who run in front of car get tired.
set text[172] Man who run behind car get exhausted.
set text[173] Man who scratches backside should not bite fingernails.
set text[174] Man who passes wind in church sits in own pew.
set text[175] Some days, I just don't feel like slaying dragons.
set text[176] Thank you for not being perky.
set text[177] Don't annoy the crazy person.
set text[178] Which trailer park did you grow up in?
set text[179] When the only tool you own is a hammer, every problem begins to look like a nail.
set text[180] And your crybaby whiny ass opinion would be?
set text[181] The longest one-syllable word in the English language is "screeched."
set text[182] On a Canadian two dollar bill, the flag flying over the Parliament building is an American flag.
set text[183] I didn't fight my way to the top of the food chain to be a vegetarian.
set text[184] What am I? Flypaper for freaks?
set text[185] Would you like fries with that?
set text[186] Why do they lock gas station bathrooms? Are they worried someone will clean them?
set text[187] I may not be the best looking gal here, but I'm the only one talking to you.
set text[188] Where do forest rangers go to get away from it all?
set text[189] Who are these kids and why are they calling me Mom?
set text[190] Not the brightest crayon in the box now, are we?
set text[191] Don't bother me. I'm living happily ever after.
set text[192] I started out with nothing and still have most of it left.
set text[193] You! Off my planet!
set text[194] Therapy is expensive, poppin' bubble wrap is cheap! You choose.
set text[195] Did the aliens forget to remove your anal probe?
set text[196] It is as bad as you think and they are out to get you.
set text[197] Isn't it scary that doctors call what they do "practice"?
set text[198] Accept that some days you're the pigeon, and some days you're the statue.
set text[199] I'm not crazy, I've just been in a very bad mood for years.
set text[200] All I ask is a chance to prove money can't make me happy.
set speech %%text[%max%]%%
eval speech %speech%
say %speech%
~
#1334
Mob Transform Example~
0 g 100
~
* %transform% test
* as a greet trigger, entering the room will cause
* the mob this is attached to, to toggle between mob 1 and 99.
say Beginning transform.
if %self.vnum%==1
%transform% 99
else
%transform% -1
end
say Transform complete.
~
#1335
Mob Greet Switch Random~
0 g 100
~
* By Falstar
switch %random.6%
case 0
set book 'Creative cooking with human flesh'
break
case 1
set book 'Re-animating the Dead for Dummies'
break
case 2
set book 'How to teach your henchman to rob graves in 7 days'
break
case 3
set book 'An A-Z guide of Mage-induced maladies and mutations'
break
case 4
set book '101 Easy ways to rescue a damsel in distress'
break
case 5
set book 'Witch Hazel's Bumper Book of rare herbs and potions'
break
case 6
set book 'Arcane Artifacts made easy'
break
default
* this should be here, even if it's never reached
set book default reached
done
*
*wait 5 s
%echo% Dr. Von Erhartz seems engrossed in reading a large leatherbound book through a battered pair
%echo% of reading glasses. The title reads: %book%.
*wait 3 s
%echo% The doctor looks up at you, seeming to notice you for the first time.
*wait 1 s
say ah %actor.name%, I was wondering when you'd drop by.
~
#1336
Mob Random Room Switch Example~
0 b 100
~
* By Rumble
* So we don't get problems if more than one is loaded.
context %self.id%
eval room %self.room%
switch %room.vnum%
case 1300
say this is where I began my journey.
break
case 1301
say Ah, yes, the beginning.
break
case 1302
say TBA, The Builder Academy Implementation explained!
break
case 1303
say Building blocks for beginners.
break
case 1304
say Writing good descriptions. Very important.
break
case 1305
say Learning redit.
break
case 1306
say Oedit by osmosis.
break
case 1307
say Medit by the numbers.
break
case 1308
say Zedit confuses everyone.
break
case 1309
say Sedit. We all love capitalism.
break
case 1310
say Trigedit is tricky.
break
case 1311
say Planning for those who lack direction.
break
case 1312
say Advanced building, what an interesting topic.
break
case 1421
say Storytelling, now that is a good idea.
break
case 1313
say I'm finished. Finally. That Rumble is long winded.
break
default
say so much reading, so little time.
break
done
~
#1337
Mob Random Time Example~
0 b 50
~
* Convert hour from 24 hour to 12 hour clock with am/pm
if %time.hour% > 12
eval hour %time.hour% - 12
set ampm pm
else
set hour %time.hour%
set ampm am
end
*
* No 0 hour. Change it to 12.
if %time.hour% == 0
set hour 12
end
*
* Figure out what day (1-35).
switch %time.day%
case 1
case 7
case 14
case 21
case 28
case 35
set day the Day of the Moon
break
case 2
case 8
case 15
case 22
case 29
set day the Day of the Bull
break
case 3
case 9
case 16
case 23
case 30
set day the Day of the Deception
break
case 4
case 10
case 17
case 24
case 31
set day the Day of Thunder
break
case 5
case 11
case 18
case 25
case 32
set day the Day of Freedom
break
case 6
case 12
case 19
case 26
case 33
set day the Day of the Great Gods
break
case 7
case 13
case 20
case 27
case 34
set day the Day of the Sun
break
default
set day I don't know what day it is
break
done
*
* What suffix should we use for the number of the day.
switch %time.day%
case 1
case 21
case 31
set suf st
break
case 2
case 22
case 32
set suf nd
break
case 3
case 23
case 33
set suf rd
break
default
set suf th
break
done
*
* What month are we in (1-17).
set m1 Month of Winter
set m2 Month of the Winter Wolf
set m3 Month of the Frost Giant
set m4 Month of the Old Forces
set m5 Month of the Grand Struggle
set m6 Month of the Spring
set m7 Month of Nature
set m8 Month of Futility
set m9 Month of the Dragon
set m10 Month of the Sun
set m11 Month of the Heat
set m12 Month of the Battle
set m13 Month of the Dark Shades
set m14 Month of the Shadows
set m15 Month of the Long Shadows
set m16 Month of the Ancient Darkness
set m17 Month of the Great Evil
eval months %%m%time.month%%%
*
* My test to make sure my variables are printing out what I expect them to.
set poofouts[1] is chased out of the room by a barrel of rabid monkeys.
set poofouts[2] creates a pneumatic air tube, like they use at the banks, and steps in. He is sucked out of sight.
set poofouts[3] thinks himself out of existence.
set poofouts[4] walks out saying 'time to make the donuts.'
set poofouts[5] goes super critical and has a meltdown. Nothing remains but a pile of steaming radioactive mush.
set poofouts[6] disappears in a flash of blinding nothingness!
set poofouts[7] merges with his surroundings and vanishes.
set poofouts[8] morphs into millions of ants, which run off in all directions.
set poofouts[9] senses that everything is well, so he floats away.
set poofouts[10] goes to hell in a handbasket.
set poofouts[11] does somersaults out of the room.
set poofouts[12] dives out of the room doing three rotations in the jackknife position.
set poofouts[13] stumbles out of the room with a look of confusion on his face, must have forgotten where he parked.
set poofouts[14] steps into your shadow and disappears.
set poofouts[15] points behind you with a look of horror. While you turn away he disappears chuckling 'made you look'.
set poofouts[16] doesn't like saying goodbye, so he didn't.
set poofouts[17] completes an intricate spell of chantings and gestures that creates an inter-dimensional portal of space and time. Before he steps through it and disappears you notice a 'made in china' sticker on its bottom.
set poofouts[18] creates a huge rubber band, straps himself into the middle of it and stretches it back like a slingshot. With a wave he releases it and is hurtled out of sight.
set poofouts[19] straps an ACME rocket to his back and asks, 'got a light?' right before it explodes and sends him soaring.
set poofouts[20] puts on a helmet and climbs into the barrel of an ACME cannon. It explodes sending pieces of Rumble off into the distance.