CMP and SMP

In-depth review

Base descriptions:


CMPWWWW:XXXX:YYYY - tile Change the tile at coordinates W:X to type Y. Produces smoke.


SMPWWWW:XXXX - tile Subtract 1 from the tile type at coordinates W:X. Does not create smoke.



CMP changes a tile on the map to a different tile type



What are tile types? Well you see, within a tileset, every tile is givin a number:

data

The current selected tile(in the top left corner) is tile number 0.


And the tile to the right of it would be tile number 1.


And then the tile to the right of THAT, would be tile number 2.


Know what I mean?

data

(The current selected tile here, is tile number 11)



Once you comeplete a row, go back to the beginning and one row down, that's the continuation of the next tile number.

data

(The current seleted tile here, is tile number 17)



Tiles that are empty still count!



*An easier way to find the tile type # is to right click on it.





Now let's see this command in use:

data

Now, if we were to be using the "PrtPens" tileset, then the game would change the tile at:


X coord -> 1


Y coord -> 14



And change that tile to this type:

data

When the game changes the tile, it will generate smoke around the new tile type



Trying to change a tile to the same tile type does nothing, not even smoke.



The SMP changes a tile type, simular to CMP


However, this command will subtract 1 from the current tile type number.

And it will always subtract 1, when used.



This command won't generate smoke when the tile type changes.

Previous Lesson: SNP, CNP, DNP, DNA, and MNP

Next Lesson: ANP, HMC, SMC, FON, FOB, and FOM

Table of Contents