Marked 197 Report post Posted December 11, 2007 In this Tutorial, I will show you how to only encounter enemies on specific tiles on your map. This is exactly like how the encounters work on games like Pokemon. First off all, open up the database in RPG Maker XP, and goto the tilesets tab. The last button on the very right side is called "Terrain Tag", click on that. This will show "0"s over all of the tiles on that Tileset. By default every tile is assigned to 0, and you can change these value from 0-7. These numbers are to be used to identify tiles with variables. For this tutorial, I will use the "Grassland" Tileset. Open your database and goto the "Grassland" tileset. Click the "Terrain Tag" button. Here we want to change the value of the tiles we want to encounter enemies when the character is standing or walking through them. I'm going to set all the grass tiles to "7" as shown below. This is all we need to do in the Database, click OK. Now place some of those tiles into your map. Goto your "Map Properties" and add some Troops. We are going to want the "Step Average" to be quite low. I'm going to set mine to 3. Now make an Event somewhere on your Map. Set the "Trigger" to "Parallel Process" Add a new "Control Variables" command. Here we can setup the Variable which will set the Terrain Tag the Player is currently on. So create a new Variable and name it "Set Terrain Tag". In the Control Variables command window, have the "Operation" set on "Set", and the "Operand" set on "Character" >> "Player" >> "Terrain Tag", as shown below. Next, make a "Conditional Branch" command. On the first tab, set it to "Variable", and make sure the Variable selected is the "Set Terrain Tag" Variable. In the next box, have it set to "Equal to", and a Constant of 7. This command basically checks if the variable "Set Terrain Tag" is 7, and the "Control Variables" command above sets this value to the value of the Tiles Terrain Tag value. So when the player is on the grass, the variable "Set Terrain Tag" is set to 7, and when on any other tile, it is set back to the default value, 0. Inside the condition branch, under the first line, add the command "Change Encounter", and set this to "Enable". Inside the Condition Branch under "Else", add the command "Change Encounter", and set this to "Disable". Now test play your game. Once the player walks into the grass, you should encounter enemies, but anywhere else you should have encounters. Demo Share this post Link to post Share on other sites
Black Shadow 14 Report post Posted December 11, 2007 I didn't even know people could to such things T_T(Dies inside) Very good tutorial, with a good layout and explanations. Good job. Share this post Link to post Share on other sites
C.L. 0 Report post Posted December 12, 2007 Thanks, awesome job. Share this post Link to post Share on other sites
KarshnerShagger 0 Report post Posted December 31, 2007 Thank you so much for showing exactly how a Terrain tag could work properly. I have heard about utilizing it, but have never really seen an example of it. Thank you! Share this post Link to post Share on other sites