AMOS TOME Series IV Manual Index | 42 |
GLOBAL |
:The MPL code between the Global & EndGlobal commands is performed on every the co-ordinate on the map. Very useful for searches. |
ENDGLOBAL |
:See Global |
IF TILE (Tile List) |
:Compares the tile at the current tile co-ordinate with those in the parameter list, if it isn't there, then the code jumps to the corresponding Endif command. |
ENDIF |
:See If Tile. You must always match each If Tile with an Endif command. |
REPEAT (Counter) |
:Basically similar to the Repeat command in AMOS, except that the Until command. is slightly different, and that the number of repeats is normally entered with the Repeat command. Repeats of 1-99 can be entered with the up/down arrows in the dialog box If you go below 0, you can set a random number of repeats, and if you go over 99 you can set the number of repeats to the Width (Map X) or Height (Map Y) of the map. |
UNTIL X (X co-ord) |
:basically this checks the X cursor co-ordinate against the parameter. If it is not equal, the program loops back to the previous REPEAT command. |
UNTIL Y (Y co-ord) |
:The same as Until X except that it compares the Y co-ordinate. |
UNTIL OFF |
:examines both X & Y cursor co-ordinates. If they are still on the map the program loops back to the matching REPEAT command. |
ENDREP |
:This is for doing simple counted loops, i.e. repeat 10 times . |
|
Mode Commands |
MAZE ON |
:Switches on Maze Drawing Mode. This works exactly the same as Maze Mode in the TOME Editor. |
MAZE OFF |
:Switches Maze Drawing Mode off |
B FILL ON |
:Switches on Brik Fill Mode. This works exactly the same as the Brik Fill Mode in the TOME Editor. |
B FILL OFF |
:Switches off Brik Fill Mode. |
Say for instance you had a lot of tiles placed around the map, that were the bottom part of a tree made up of
2 tiles placed one above the other. You can use MPL to search for the bottom part, move up 1 position and place the top part, automatically, over the whole map.