Thread: [GridMaps]
View Single Post
  #2  
Unread 25th of January, 2013, 05:38
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,847 (1.88 per day)
So, you've already uploaded your background map and your tokens to the internet. Of course, you've forgotten to create a token for your mind flayer but we're not worried about that. Now what? Simple, we'll use our lovely new tag to combine those things into a combat grid:

A B C D E F G H I J K L M N O P Q R S T U V W X
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Mf
 
 
 
 


Now, for some details on how it works. Firstly, here is the code we used:
[gridmap squares=24x22 grid=20]
[token=background][img]http://img254.imageshack.us/img254/1381/dr3.jpg[/img][/token]
[token=b3][img]http://online-roleplaying.com/forums/images/smilies/smiley - green.png[/img][/token]
[token=c4][b][color=red]Mf[/color][/b][/token]
[token=F12][img]http://online-roleplaying.com/forums/images/smilies/smiley - red.png[/img][/token]
[token=j19][img]http://online-roleplaying.com/forums/images/smilies/smiley - black.png[/img][/token]
[/gridmap]

The main tag is the [gridmap squares=24x22 grid=20]. In the gridmap tag itself, we specify the size of our map (squares=24x22), and also the size of each grid square in pixels (grid=20). So our background will be 24 squares wide by 22 squares high, and each grid box will be 20 pixels square.

Within the [gridmap][/gridmap] we can specify any number of tokens (although there are a few caveats, which will be explained later). Each token will be displayed at a particular grid location. Tokens are specified as follows:
[token=location]token data[/token]

"location" is the map location where the token should appear - for example, token=b3 means I want the token to appear in column "b", row "3" on the map. The special value "background" can be used to define the background image for the map.

"token data" is what you want to actually appear on the map. This can be text or an image - any normal BB code will work, so you can use colors, bold, etc. This is what we did to represent our Mind Flayer at location C4 since we didn't have an image handy.

Now is where it gets interesting, but I'll put that in another post (for yet other reasons which will also be explained eventually).
Reply With Quote