Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

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 ?
Ruby:
#Get a tile ID

$game_map.data[x,y,c]

#x: Xposition

#y: Yposition

#c: Layer (0 to 2)

 

#Set a Tile on the map

$game_map.data[x,y,c]=id

#x: Xposition

#y: Yposition

#c: Layer (0 to 2)

#id: Tile id in the tileset : 384+8*(line_number-1)+colum_number-1
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 :/)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top