Cleft of Dimensions Wiki
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Wiki Content
Recently Changed Pages
Lasacul
Economy
Clans
RP Logs
Custom Item Creation
Player Housing
Yoma
Areas
Shrike
Spirit Temple
Sulfataska Mountains
The Veldt
Tonoe
Truce
Truce Canyon
Player Characters
Seikou
Selrin
Signas
Sisemen
Spider
Stratorius
Sunflash
Community
Help
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Cleft of Dimensions Wiki
363
pages
Explore
Main Page
Discuss
All Pages
Community
Interactive Maps
Recent Blog Posts
Wiki Content
Recently Changed Pages
Lasacul
Economy
Clans
RP Logs
Custom Item Creation
Player Housing
Yoma
Areas
Shrike
Spirit Temple
Sulfataska Mountains
The Veldt
Tonoe
Truce
Truce Canyon
Player Characters
Seikou
Selrin
Signas
Sisemen
Spider
Stratorius
Sunflash
Community
Help
Editing
Mprog Compendium
(section)
Back to page
Edit
Edit source
View history
Talk (0)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===MOB COMMANDS=== The commands are grouped logically, not alphabetically. Commands that serve a similar purpose are grouped together, since I thought it would be more helpful that way. Every command has the appropriate syntax listed under it. Stuff in <brackets> denotes necessary parameters, stuff in [brackets] denotes unnecessary parameters. A synopsis of every command is listed as well. At the bottom of every entry I list examples of every command's usage. A list of examples is given for each command. Every command has up to five basic examples and a further list of advanced usages for the command. In general, I try to draw no more than one example from each area, unless a given area has two or more distinctly different advanced usages of a command. The examples can be accessed via mpdump. ;ECHO:mob echo <string> This command sends a text message to every player in the room. It is the basic command to output whatever you want via mobprogs. There are many more specialized versions of this command, all of which are listed below. Oftentimes echo is a better choice than having a mob say or emote something. Examples: 1362, 2206, 2553, 1161, 4715 ;ECHOAT:mob echoat <target> <string> This command will echo a message to the specific player targetted in the room and no one else. In combination with the echoaround command, this can allow for messages that simulate real commands. Usually the echo command is preferable, but echoaround combined with echoat can allow for the distinction between "you" and "$n" in messages. Echoat is useful in events such as someone being telepathed to, or if you just want to hide a certain message from other players in the room. Examples: 1072, 33, 152, 1502, 3007 ;ECHOAROUND:mob echoaround <target> <string> This command will echo a message to every player in the room with the exception of the target. In combination with the echoat command, this can allow for messages that simulate real commands. Usually the echo command is preferable, but echoaround combined with echoat can allow for the distinction between "you" and "$n" in messages. Echoaround is generally useful when you want to hide certain messages from the target player. Examples: 1462, 4001, 4807, 3129, 4072 ;ASOUND:mob asound <string> This command is similiar to echo. Unlike echo, however, asound will echo a message to every room that the mob's current room has an exit to - i.e., the surrounding rooms. What's interesting about asound is that it doesn't echo to the room the mob is in, only adjacent ones. It will echo through doors, but will not echo through portals or one-way exits leading INTO the mob's room. Examples: 4017, 5683, 2217, 5494, 2714 ;ZECHO:mob zecho <string> This command is a more powerful version of echo, echoing a message to every player in the mob's current area. Staff will get a "mob echo>" in front of every zecho message, but players won't. The applications of this command are pretty straightforward, and they can easily add some flavor to your area. Examples: 1035, 1003, 182 ;GECHO:mob gecho <string> This command is a more powerful version of zecho, echoing a message to every player in the MUD. There probably aren't that many times anybody would want to use this, but it's a powerful command and it's there. Staff will get a "mob echo>" in front of every gecho message, but players won't. Examples: 419 ;GOTO:mob goto <location> This command transfers the mobile from the current room to another. The location parameter takes many different arguments. When given a number, goto will transfer the mob to the given room number. When given any single word, goto will transfer the mob to the first relevant mob or object in the world. An interesting fact about goto is that it stops the mob's combat during the transfer, so it acts like a localized mob peace. Also, use of the goto command can disguise a mob's death cry - shown in the examples below. Mob goto can transfer through safe or no_mob room flags and can move sentinel mobs. Examples: 4004, 2712, 3116, 1021, 5555<br> Adv. Examples: 2115, 4069, 1212, 1549, 2262, 71, 4851, 1053, 187, 733 ;TRANSFER:mob transfer <target> [location] This command transfers the target to the given location. The location can be a room vnum or a single keyword for a given mob or object. If location is omitted, the command will transfer the target to the room the mob is in. The target can be any mob or player in the world. Mob transfer can also transfer "all," which will move all characters in the mob's room. Mob transfer can transfer through safe or no_mob room flags and move sentinel mobs. Examples: 1452, 4014, 2708, 4854, 1714 ;GTRANSFER:mob transfer <target> [location] This command works just like transfer, except it transfers everyone in the target's group as well as the target. However, you cannot gtransfer all. Besides that, it is entirely identical to transfer. Examples: None. ;MLOAD:mob mload <vnum> This command loads a mob with the chosen vnum into the same room as the acting mob. It can load mobs from any area and into any room with no restrictions. It only takes vnums as a parameter - you cannot mload specific words. While the command appears straightforward, it can be used creatively. Examples: 1206, 1453, 39, 3119, 154<br> Adv. Examples: 2729, 2262, 4076, 1404, 4849, 1563, 1003 ;OLOAD:mob oload <vnum> [level] [R] [W] This command loads an object with the chosen vnum into the inventory of the mobile. If the item cannot be taken into inventory, it is generated on the floor. The optional level parameter allows you to modify the level of the loaded item, varying who can wear it and its cost. Level is limited to the mob's level, though. "R" will send the object to the room, and "W" will make the mob wear the object, if possible, instead of placing it in inventory. What's great about loading objects is that they can be used as "counters" in mobprogs, illustrated in some examples below. Examples: 1475, 1360, 3126, 2381, 2127<br> Adv. Examples: 2232, 178, 5670, 4818 ;OTRANSFER:mob otransfer <target> <location> This command transfers an object to a given location. The target object can be in the room, in the mob's inventory, or part of the mob's equipment. The location parameter can be a room vnum or an argument for a mobile or object anywhere in the world. Unlike the regular transfer command, the location is mandatory. Unfortunately, no matter what the location is, the target object will always transfer to the room the location is in, never the actual character specified. NOTE: items inside containers cannot be otransfered, but ifchks can see them. Examples: 4868 ;PURGE:mob purge [target] This command can delete items or mobiles from the room the mob is in. It has powerful and versatile purposes. Mob purge without a parameter will purge all mobs and items in the room that lack the nopurge flag. Mob purge with a target can purge any mobile in the room or any object in the room or in the mob's inventory or equipment. Mob purge will never purge player characters. A mob can "mob purge self," but do so sparingly - it appears to be able to crash the MUD at times. When you do use "mob purge self," try to place it as close to the end of mobprogs as possible. Examples: 53, 3149, 4829, 1581, 710<br> Adv. Examples: 1005, 3123 ;JUNK:mob junk <item> This command can destroy any item the mob has in inventory or is wearing as equipment. The <item> parameter is very versatile. You can junk all, or junk all.something, or just junk a specific item. It works just like the get command in this regard. I believe it also takes variables such as $o, but of this I am not absolutely certain. Mob junk cannot junk items on the ground or items in a player's inventory. NOTE: items inside containers cannot be junked, but ifchks can see them. Examples: 1476, 2109, 1360, 2710, 4886<br> Adv. Examples: 3146, 2216, 4015, 2387, 727, 1009, 1212, 5491, 3113 ;REMOVE:mob remove <target> <vnum> This command removes the given object from the target's inventory or equipment. The target must be in the same room as the mob. The vnum parameter specifies the vnum of the object to be removed from the target. Mob remove will remove all objects of the given vnum from the target, which may or may not be helpful, depending on your circumstances. Alternately, all can be used instead of a vnum - this will remove every object the target has. Removed objects are completely destroyed, not dropped to the floor or given to the mob. This means be careful when using it. NOTE: items inside containers cannot be removed, but ifchks can see them. NOTE: the previous note is no longer true. Examples: 1027, 4829, 1314, 1162, 5556 ;FLEE:mob flee This command causes the mob to instantly run to an adjoining room. It only works if the mob is not currently fighting. The mob will not flee through closed doors or into no_mob rooms, and it will not flee into the same room as it started in (via looped exits). The way it works is that the mob tries, six times, to run in a random direction. If at the end of those six attempts it hasn't found a valid exit, the mob does nothing. Because of this, mob flee is more likely to work in rooms with more exits than rooms with fewer exits. Examples: 1006 ;KILL:mob kill <target> This command will force the mob to attack the target. The target parameter can be either a variable like $n or an actual name like goomba. It ignores almost all of the restrictions the regular kill command has - for example, a mob can attack a person who is already fighting someone else, or it can attack through a safe room. Here are the only restrictions: the target must be in the same room as the mob, the mob can't attack itself, and charmed mobs can't attack their masters. When your mobile absolutely must attack someone, you want to use this instead of the regular kill command. Examples: 4700, 1456, 2712, 3123<br> Adv. Examples: 1514, 2352, 3014, 1060, 161, 172 ;ASSIST:mob assist <target> This command works similarly to kill. It functions somewhat differently than the regular assist command. Mob assist will force the mob to attack whoever the target is fighting with. The target parameter can be either a variable like $n or an actual name like goomba. It does not relieve the target of fighting, it merely draws the mob into the fray. Mob assist will attack under any circumstances unless: the target isn't in the same room as the mob, the mob is trying to assist itself, the target is not fighting, or the mob is already fighting. Examples: None. This command is not mentioned in the standard mprog documentation. ;PEACE:mob peace This command stops all fighting in the same room as the mob. It works exactly like the staff command of the same name. Besides furthering the cause of pacifism, it's ideal for creating a gap in the fighting to execute commands that can't be done while fighting, then resuming the brawl. Additionally, it's a helpful command to use with inert or passive mobs. Examples: 5669, 4001, 3014, 172, 3139 ;SKILL:mob skill <command> This command allows the mob to execute almost any skill. The given command is parsed like a regular command, except that, when this command is executed, the mob is treated as having 75% adequacy in all skills in the game. Therefore, skills that are normally forbidden to mobs can be used with the mob skill command. By using the adept and inept act2 flags, the proficiency of the mob at skills can be increased or decreased by 25%. Examples: 2511 ;DAMAGE:mob damage <target> <min> <max> [damtype] [lethal] [safe] [percent] This command directly damages the target. The target can be any character in the same room as the mob, or it can be '''all''', which targets all characters in the room. Mob damage does a random number of hitpoints damage between min and max. Min and max are not dice, they are a flat range. Mob damage can do negative damage, which will heal the target - however, mob damage will not send the target's hp above maximum. <br> Damtype specifies what type of damage to use in respect to resistances and vulnerabilities. It can be any damage type you see with "? imm" in medit. A given mob damage can only have one given damtype.<br> If you type "lethal" at the end of the command, the mob damage can kill the target. Otherwise, the target's hp will not drop below 0. [damtype] and [lethal]'s positions in the command are interchangeable. If you type "safe" at the end of the command, the mob damage will not hurt characters in the same group as the mob; however, this is only relevant to "all" mob damages.<br> The "percent" keyword changes the min and max from a damage quantity into a percentage of the target's maximum HP. It will not do more damage than the target's current HP, however. Examples: 4061, 4831, 1704, 1532, 701 ;CAST:mob cast <spell> [target] This command allows a mob to cast any of the spells normally available to players. The spell parameter takes an argument, and you'd type in given spell there just like you would with the regular cast command. The target can be any mob or object in the room or mob's inventory, or, depending on the spell, no target at all. Mob cast costs no mana. Unfortunately, the targetting system for mob cast doesn't work very well. Some spells, such as curse, won't work at all. However, most attack spells will work, as well as buffs. You'll usually want to pair this command with a mob echo for more flavor. Examples: 4001, 2203, 4838, 301, 4716 ;MANA:mob mana <target> <min> <max> This command drains mana from the target. It works in a similar fashion to mob damage, but it is less complex. The target can be any character in the same room as the mob, or it can be "all," which targets all characters in the room. Mob mana does a random number of mana damage between min and max. Min and max are not dice, thye are a range. Mob mana can drain negative mana to cause restoration, but it will not give more mana than a character has max. Likewise, it will never send mana below 0. Mob mana $i commands are an excellent way to make realistic spellcasting for mobs, especially when combined with mob cast and mob damage commands, in addition to the mpchk ifchk. Examples: 3139, 2748, 169, 701. This command is unique to CoD. ;AWARD:mob award <target> <type> <value> This command can award various points to the target. It works almost exactly like the staff command of the same name. The target argument can be any character in the world, but cannot be a mob or a staffer. Below is a chart of type arguments and their relevant range of values: gold -10000 10000 exp -10000 10000 prac 10 -10 silver -10000 10000 qp -10000 10000 train 5 -5 Use this command sparingly and only as a reward for doing important stuff. It is best used in conjunction with the mob quest command, especially when dealing with experiernce, practices, or trains. Qp stands for quest points, and it is a marginally important value that basically translates to IOUs for restrings. Examples: 2260, 4022, 1027, 1116, 32. This command is unique to CoD. ;QUEST:mob quest <target> <+/-/=> <questflag> This command modifies the value of a quest flag on the target character. Quset flags are unique, hardcoded flags that save whether a mob has completed a certain event or not. Target is an argument and can refer to any player in the world. Mob quest does not work with mob targets. <+/-/=> indicates whether to set or unset the relevant quest flag; + and = are exactly the same. Finally, the questflag parameter is one of the hardcoded questflags in the MUD. Do you need a questflag added for your mobprogs? If so, talk to Carsanquay about adding one. The QUEST2 command works exactly the same as the QUEST command but only works for quest2 flags. The normal QUEST command works for both normal quest flags and the extended quest2 flags so the QUEST2 command Examples: 54, 3113, 2390, 4874, 1596. This command is unique to CoD. ;PETIFY:mob petify <target> <victim> This command makes the victim the pet of the target. It works almost exactly like the staff command of the same name. Target and victim are arguments, and they can be any character in the world. However, mob petify will not work if victim is a player or if target already has a pet. It's probably not a great idea to petify a victim that's not in the same room as the target, even though you can within the extent of the command. Examples: 2106, 3196, 700, 707, 715. This command is unique to CoD. ;FORCE:mob force <target> <command> This command forces the given target to perform the given command. The target can be anyone in the same room as the mobile, excluding the mobile itself. The target can also be "all," which will affect every character in the room that the mob can see and who is not staff. The command can be any regular command - or if the target is a mob, a mob command - but it cannot be an ifcheck. This can be a very powerful command. Examples: 5660, 3130, 2710, 3014, 2387 ;GFORCE:mob gforce <target> <command> This command works just like force, except it forces everyone in the target's group as well as the target. The target must be in the same room as and not be the mob. Besides that, it is entirely identical to force. Examples: 5276 ;VFORCE:mob vforce <vnum> <command> This command works just like force, except it forces every character in the world of the specified vnum to do the given command. Vnum must be a number. Vforce will not force the mob that executed the command, or players, or characters that are currently fighting. Besides that, it is entirely identical to force. Examples: None. ;AT:mob at <location> <command> This command allows a mob to perform any single action at any location on the MUD. It's like using a mob goto, a command, and another mob goto to return all in one command. The location can be a vnum or any one word mob or object. The command parameter works just like a regular line of code in a mobprog. The <command> can be any regular or mob command, but it cannot be an ifcheck. If you want to perform multiple commands and ifchecks in a remote room, use multiple mob goto statements instead. Examples: 4073, 1003, 5664, 735, 2387 ;DELAY:mob delay <pulses> This command sets the delay timer for the mob. The delay timer is measured in pulses - to see how quickly pulses count down, cast a buff spell and see how its timer works. When the delay timer hits zero, the mob's delay trigger prog will execute, if it has one. Unless a mob has update_always, its delay counter won't tick down unless there are players in the area - staff do not count. So when debugging progs, you may note in mpstat that the delay counter can stagnate. Mob delay is an intensely useful function and requires some thought to figure out. Due to the nature of mob delay, many potential example mobprogs are split up over several progs and are difficult to show here. Examples: 182, 1005, 1502, 1061, 1806 ;CANCEL:mob cancel This command cancels the mob's delay timer. It sets it to zero and stops the mob's delay triggers from activating. While waiting enough pulses will also let the delay timer reach zero, that will make the mob's delay triggers activate. This will not. Examples: 4011, 1009 ;REMEMBER:mob remember <target> This command stores the name of a target in the mob's memory. Target is one argument and can be either a name or a variable. The target can be anywhere in the world. Once remembered, the target's name is stored as $q for the mob and will remain until a mob forget command, a new mob remember, or the mob's death. A mob's memory can be seen with mpstat. If a mob has no target, it will remember the first person who walks into the room with it - note this, as it can cause problems for some mobprogs. Due to the nature of mob remember, many potential example mobprogs are split up over several progs and are difficult to show here. Examples: 4065, 1211, 1053, 1015, 160 ;FORGET:mob forget This command empties the mob's memory. It is the opposite of mob remember and almost always appears accompanying it. Besides mob forget, the only way to clear mob memory is to kill the relevant mob (although you can always store a new target to mob memory with a new mob remember). Examples: 738, 1501, 3142, 5508, 2727 ;CALL:mob call <vnum> [victim] [obj1] [obj2] This command executes a mobprog subroutine. Essentially, when you put in a mob call command, the MUD goes into the mobprog of the given vnum and executes it. Once the sub-prog finishes, the main prog continues as normal. Victim, obj1, and obj2 are optional parameters that specify what $n, $o, and $p are in the subroutine, respectively. If they are left out, the subroutine will execute with $n, $o, and $p set to null. If you want these variables to be null, just type null in the appropriate fields. Victim, obj1, and obj2 will look for mobs or objects in the same room as the mob. A mobprog can call itself recursively, but the MUD will stop such infinite loops after 5 recursive calls. Examples: 1368, 47, 1400, 2395, 5661 ;COUNTER: mob counter <value OR 'zero'> This command allows basic addition and subtraction operations to be performed on a variable stored on a mob. An ifcheck exists to take advantage of the command (if counter). The value parameter can be either positive or negative to perform either addition or subtraction. The word 'zero' sets the counter to zero. Examples: 21, 22 ;FACE:mob face <long desc> This command changes the mob's long desc to whatever is specified. Examples: 9038 ;FLAG:mob flag <victim> <flag type> <flag> +/- The Flag command can modify the act, act2, affect, shield, imm, resist, vuln, and off flags of a mob. A mob can use this command to change its own abilities on the fly. ;SDAMAGE:mob sdamage ??? ??? Appears to be an uncoded solution to the problem that the $a flag fixed. ;SPAWN:mob spawn <victim> <room vnum> The Spawn command will change the target's recall point to the specified room vnum. ;RESCUE:mob rescue <victim> The Rescue command works as the Rescue skill does, but without the restrictions on grouping or any skill checks. Examples: 9098
Summary:
Please note that all contributions to the Cleft of Dimensions Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
This page is a member of a hidden category:
Category:Pages with broken file links
Follow on IG
TikTok
Join Fan Lab