![megamud scripting loop levels megamud scripting loop levels](https://0.academia-photos.com/124879708/31666469/28966584/s200_ethan.brown.jpg)
+Diagonal), it will execute the - version afterwards (e.g. Note: An alias can have a + symbol in front of it (e.g. This script functions the same with a simple bind, meaning that when the player presses E, they will call for a Medic.
![megamud scripting loop levels megamud scripting loop levels](https://miro.medium.com/max/1400/1*2MndIExUGMnaa_sQ2ILyng.jpeg)
They may contain underscores, numbers, and symbols.
MEGAMUD SCRIPTING LOOP LEVELS SERIES
This is effectively shorthand, and it is most useful when a series of commands need to be called multiple times. AliasĪn alias allows multiple commands to be referenced by a single command. In this example, once the field of view hits 90, it will drop down to 75, and vice-versa. Note: Incrementvar will cause the value to wrap around if it gets too large or too small. This will cause the field of view to increase when scrolling up, and to decrease when scrolling down This allows for variables to be increased or decreased repeatedly by a set amount.īind MWHEELUP "incrementvar fov_desired 75 90 1"īind MWHEELDOWN "incrementvar fov_desired 75 90 -1" This works identically to toggle, but binds it to a key.īindtoggle o sv_cheats 0 1 Note: If no value is specified, toggle and bindtoggle default to switching between 0 and 1.įor both Toggle and Bind Toggle, ensure that the values given are outside the inverted commas. This command allows a setting to be toggled between two or more values. This bind will make the player move forward while they have W held down. This bind will make the player call for a Medic when they press E. This is because the quotes are misinterpreted, and quotes inside of quotes are unnecessary due to commands automatically stopping at every semicolon. Is correct, but bind "say "Example Text"" Quotes can be optionally placed around the key, but must be present around the commands, as the console will not interpret consecutive commands if quotes are not present. An example would be bind mouse1 "say texthere", where quotes are needed around "say texthere" because of the space between the two phrases.īind " " However, the commands will need to have quotes when it has spaces in between the values and the command, so that the console can interpret it as one command. Quotes can be optionally placed around the key and/or the command. It will cause a certain key to execute a certain action, whether that action is a setting, a command, or a script. The simplest command is the bind command. The following is a list of commands which have no use apart from scripting they do not influence gameplay directly.