NavigationUser login |
3D Mud Tags3D mud tags allow a mud to tell the mud client the state of the mud so that player sees (or hears) this change. For example the mud can tell the client that the wind speed has changed. The mud client can then change the speed of the clouds moving in the sky and the volume of the wind sound. The 3d mud tags are mixed in with the number telnet text. For example: {ww3} {ww3} is a 3D mud tag and signifies that the wind speed has changed to 3 out of 10. When the telnet text is displayed to the user the 3D tags are removed and the player will see: Grand Stoa and the wind sound and cloud will change accordingly. In SWLPC 3D tags are generated in a library called THREED. This allows tags to be generated in SWLPC without needing to know the format of 3d tags intimately. The first character of a mud tag specifies the type of mud tag. The types of mud tags include (b)oxes, (c)aption Panels, (o)bjects, (r)ooms, (t)ime, yo(u) and (w)eather. Boxes display things like message boxes like help from the mud. Caption panels are about lists of buttons with commands such as to to buy a loaf of bread. Objects give positions and direction of 3d objects such as a dog. Rooms are about room exits and room sound. Time is for the mud time of day and you is about yourself the player and weather is about things like wind and rain. Tags are made up of subtags. The example already given {ww3} had the subtag 'w' and is the second character. It signifies the wind of weather. Tags can be made up of multiple sub tags and are seperated by commas. For example {oamon,ayawn,pry0.1} signifies that the 3D object 'amon' has yawned and has move 0.1 units north of the room centre. + and - usually mean appeared and disappeared. For example {odog,+} means a dog has arrived while {odog,-} means it has disappeared. The mud specify positions in 3D such as the position of a dog {odog,px200.0y330z0.1} with x,y,z characters seperating each number. Sub tags can also be grouped using brackets. For example: {cstore,tTeris the Trader,ahr,avc,pw270, This 3d tag displays a caption panel with multiple buttons with the first button having the caption 'Your chainmail hauberk for 1680 coins' and the command 'sell chainmail hauberk' when the player clicks the button. The two sub tags are grouped with brackets. 3d tags can be multilined with only the { and } characters specifying the start and end of the tag. |