Object Devices for JediMUD - Documentation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ These puzzle-solving customized devices function as normal objects, and are made in the same format as normal objects, with the item type number 26. What makes these objects different is that they can be given customized verbs with which the player can interact with them to produce certain results. The verbs, and the special text message that the player sees when interacting with the devices, are stored in the field where objects normally keep extra descriptions. In other words, the following: V push pull grab move adjust~ After you fiddling with the lever, the lights in the room go dim. ~ assigns the verbs push, pull, grab, move, and adjust to the object in question, with the following line being displayed upon use. What each device does, and how it displays the results, are determined by the four blank values that other objects use to determine weapon dice rolls, spell numbers, etc. What follows is a list of possible devices uses, and the information necessary to make the device function properly. The item device type, in the first column, is entered into the first blank value of the object, the value in the 2nd field is entered into the second blank value, etc. The last column describes who sees the message that you enter after you set which verbs can be used on the object. * - indicated a type that has not yet been implemented. Please email any questions to steppin@jedi.america.net - thank you :) Item Device Type 2nd Field 3rd Field 4th Field String To ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ 1 Everyone in a room vnum of - - current room moved to another the target room. room 2 Device user sent as above - - device user to another room. 3 Kills all in a room. - - - current room 4 Kills the user. - - - current room except the user *5 Unlocks a door. direction - - current room of door *6 Opens a door. as above - - as above 7 Loads an object. vnum of - - as above the target object *8 Purges an object. vnum of - - as above the target object 9 Loads a mobile. vnum of - - as above the target mobile *10 Purges a mobile. vnum of - - as above the target mobile 11 Gives a room echo. - - - as above 12 Gives a zone echo. - - - current zone 13 Moves a group to a vnum of - - to each group room if the leader the target member uses the device. room 14 Boolean toggle. 1 if device vnum of device - current room is on to be toggled 0 if device on/off if previous is off field is 1 15 Reimb obj to vnum of - - current room player target obj *16 Spell effect spell number spell level spell duration current room ---------------------------------------------------------------------------- The boolean action type, #15 above, is designed to act as any other object device, but only if its on/off toggle is on. Thus, its third field should be a type number that would normally go in the first field, and its fourth field should be whatever value would normally go in the second field. An example of the power of this system would be an object of type #14 that a player can use to activate a type #15 button or lever. If the player does not first use the #14 object, the button or lever is inactive, and using it does nothing. If the player DOES use the #14 object first, the #15 button is toggled on, and use of it executes the option indicated in its third field, be it an echo, a load, or a teleport. NOTE: Item type 15 has its limitations - given lack of sufficient fields, you cannot, for instance, create a button that would cast sanctuary on the user, as there is not enough space to store #16's spell number, level, and duration. ---------------------------------------------------------------------------- The object device code was written by Steppin for JediMUD, 1996. This documentation was last updated on 28 December, 1996. ----------------------------------------------------------------------------