NavigationUser login |
HashesWhen a player enters a bank a menu might appear allowing him to withdraw and deposit money. The player clicks on the 'withdraw' button and box appear allowing the player enter the amount to withdraw. For example: Hashes that allow a mud (or config file) to ask for player input. The above caption panel would have been generated with the captionpanel tags: {c,ideposit #,iwithdraw #,ibalance} When a player clicks on 'withdraw' and enters say '500' the hash '#' is replaced with 500 and the mud command 'withdraw 500' is sent to the mud. There are different types of hashes such as '$' for strings instead of numbers. These are listed at the end of the document. Not all hashes require player input for replacement. For example 'r @x @y' in mudstrings means that the players current x,y position is sent to the mud. Likewise 'kick %' means that client will replace % with whatever the player is kicking. Hashes are used in numerous parts of the mud client including caption panels, clicklist and menucommands. As shown above Caption panels can be specified by mud 3dtags but they can also be specified by rawlists. For example: <RAWLIST name="coins"> </RAWLIST> for the dropdown on money in a players inventory. When the player moves his mouse over money in his inventory there will be a 'drop' menu item and when he clicks it he can enter the number of coins he wishes to drop. The following is a list of the hashes that require user input: The following replace based upon the state of the player. |