Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -

Post new topic Reply to topic  [ 3 posts ] 
  Fri Sep 09, 2011 9:34 am

This script lets you have more terrains for each map making that each map or
tileset use a unique palette of terrain tags.
It also add support for using codes and not numbers for scripters.

Expand to see the code.

Top Top

  Fri Sep 09, 2011 3:34 pm
very undead
User avatar

Comic Relief

Location: Australia
This would be the most amazing script ever. . . but I cant make heads or tails of it. . . sorry :\
Perhaps an example?


Top Top

  Fri Sep 09, 2011 5:51 pm

With the default ones, you can use terrain tags from 0 to 7. These tags ids are the same for all the maps.

With my script each map have his own terrain tags, giving a translation from the orignal code (0-7 also, that cant be changued because of the closed editor) to a new number or code, so, you can create more terrain tags to use, but with the limitation of 8 per map(or by tileset, exist two modes).
Maps_indexs = {
4 => [99,1,2,3,4,5,6,7],
2 => [8,9,10,11,12,13,14,15],

This means that for map 4 the tag id1 in the map editor is 99, and the rest work like the same.
But for the 2, the 0 is 8, the 1 is 9, the 2 is 10...etc.

So, if you use a event comand get terrain tag of the player, and its in map 2 and the terrain tag of the tile is 2, it will return the number 10 and not 2, so you can use more tags.

Top Top
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Who is online

Users browsing this forum: No users and 11 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

We are an independent, not-for-profit game making community.
Board Index
About Us
Downloadable Games
Free Browser Games
Games in Development
RPG Maker Support
Game Maker Support
Construct 2 Support
HBGames the eZine
Advanced RPG Maker
Site Announcements
Powered by phpBB © phpBB Group