User Tools

Site Tools


modding:mapping

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
modding:mapping [2022/05/23 17:03]
pyro
modding:mapping [2022/05/23 17:29] (current)
pyro
Line 85: Line 85:
 92: Will flash the screen red and damage the entire party by 10 HP 92: Will flash the screen red and damage the entire party by 10 HP
  
-Furthermore, you can use for your own needs.+===Step 6.1 Custom Tile Regions (Optional)=== 
 + 
 +Furthermore, you can use them for your own needs.
 For example, if you stick this in the script section of the "if command" For example, if you stick this in the script section of the "if command"
  
-''$gamePlayer.regionId() === 101''+''$gamePlayer.regionId() === 100''
  
 Then the game will check if the player is currently standing on the Tile Region 100. Then the game will check if the player is currently standing on the Tile Region 100.
  
-This can be put in a "script command" to place a specified event to a random Tile Region+The following code snippet can be put in a "script command" to place a specified event to a random Tile Region. In this example, the '8' is the event and '15' is the Region ID.
  
 +''$gameMap.randomPos(8, 15);''
modding/mapping.txt · Last modified: 2022/05/23 17:29 by pyro