I need Help making a scripted?

For rpg maker xp

Hi, I need help making a script that will let me add titles to the map, Like I select a title and I can place it any where on the map.

1:) When You start the game you get to open a chest and in it is a lot of titles and you can place it, like grass , trees and more in game why you play.

2:) I need this as a add on to my online system.

3:) And When you play others can do the same, as add trees and stuff like that in game.

4:) I need this to work for anyone that plays online can make there own towns and just like before, stuff like that.

Please help me get this script started, Or I will pay someone to make it for me, I'm not sure if it can be done in events, I have tried, I think it would be easier to do this with a script. Thanks

Gamemaker123825
Titles ? You mean Tiles ?
  1. #Get a tile ID
  2. $game_map.data[x,y,c]
  3. #x: Xposition
  4. #y: Yposition
  5. #c: Layer (0 to 2)
  6.  
  7. #Set a Tile on the map
  8. $game_map.data[x,y,c]=id
  9. #x: Xposition
  10. #y: Yposition
  11. #c: Layer (0 to 2)
  12. #id: Tile id in the tileset : 384+8*(line_number-1)+colum_number-1
Expand to see the code.

You need to store your tile data somewhere because a Tree has more than 1 tile. (Try the command at first and make your script :b)
Hi Nuri Yuri, what do you mean by #x: Xposition #y: Yposition is this where I would put the tiles on the map, I just want to use one tile for now like grass tile, just till I get it working. And where did you come up with 384+8* at?

Sorry for asking questions, I just know the basics of scripting.

Gamemaker123825
The X and Y positions on the Map in Game.
384+8*(line_number-1)+colum_number-1 is the ID on the tileset for exemple the grass tile :
line: 1 colum:1
384+8*(1-1)+1-1 = 384
The tile on the right of the grass tile :
line: 1 colum: 2
384+8*(1-1)+2-1 = 385
The tile two line under the grass tile :
line: 3 colum: 1
384+8*(3-1)+1-1 = 400

Making a map building script is not easy ^^ (I don't have time so I can't do it for you :/)
Ok I get how that works now, Im going to dive right in it thanks, and its ok you helped me a lot. 🙂


Gamemaker123825

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=78148