Online-Roleplaying.community

Go Back   Online-Roleplaying.community > Public Commonness > Proclamations

Reply
Thread Tools
  #1  
Unread 3rd of July, 2012, 05:33
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
Knight to Queen Bishop 3!

Here at ORP, we hate. We hate the light of day, we hate the beating of living hearts, we hate ourselves. But we really hate that there is no good way to format a character sheet using BB codes. So we turned the hated light of our everlasting hatred on that annoying problem and came up with a solution: the grid.

The [grid] tag allows you to create a basic table - very useful if you want information to line up on something like a character sheet. Sadly, after weeks of trying to make it so easy a monkey could do it we decided our monkey was uncharacteristically stupid and fed him to a dracolich. At any rate, with a little effort you too can prettify your posts to the benefit of all:

Basic Information
Abilities Attributes
Str:
Dex:
Con:
Int:
Wis:
Cha:
19 (+4)
16 (+3)
16 (+3)
16 (+3)
12 (+1)
08 (-1)
Speed:
Hit Dice:
Hit Points:
Initiative:
AC:
Senses:
Languages:
20 feet
2d8 + 2d6
31 [31 current]
+3 [+0 base +3 dex]
18 [+10 base +5 armour +3 dex +0 shield +0 misc]
Darkvision
Common, Dwarven


Attacks
Weapon Atk Dmg Range
Urgosh +8 1d8+4 n/a
Axe, Throwing +7 1d6+4 10 ft


Skills
Skill Bonus
Climb +9 [+5 ranks +4 str]
Disable Device +10 [+5 ranks +3 dex +2 MW tools]
Survival +7 [+6 ranks +1 wis]


So how does it work? Read on to find out.
Reply With Quote
  #2  
Unread 3rd of July, 2012, 05:33
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
Let's start with this example, which showcases most of the features:

My First Grid
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Now we'll go through some steps to duplicate this amazing feat. First, we start with a [grid] tag:

Code:
[grid]
[/grid]
On it's own, that does nothing - we need data. Data in a grid is arranged in rows and columns (think about the spreadsheet program of your choice). Each row of data is enclosed in a set of [row] tags. So below is a grid with five rows (or lines):

Code:
[grid]
[row][/row]
[row][/row]
[row][/row]
[row][/row]
[row][/row]
[/grid]
That's all nice and well, but what about the data?. Yes, we're glad you asked - the data for each column will be added within a set of [col] tags. Here is our grid with the data added:

Code:
[grid]
[row][col]1[/col][col]A1[/col][col]B1[/col][col]C1[/col][col]D1[/col][/row]
[row][col]2[/col][col]A2[/col][col]B2[/col][col]C2[/col][col]D2[/col][/row]
[row][col]3[/col][col]A3[/col][col]B3[/col][col]C3[/col][col]D3[/col][/row]
[row][col]4[/col][col]A4[/col][col]B4[/col][col]C4[/col][col]D4[/col][/row]
[row][col]5[/col][col]A5[/col][col]B5[/col][col]C5[/col][col]D5[/col][/row]
[/grid]
Here is what our fledgling grid looks like:

1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Not exactly a paragon of beauty and desire, but it's a start. Moving along, we will add a header row to the grid:
Code:
[grid]
[row=header][col][/col][col]A[/col][col]B[/col][col]C[/col][col]D[/col][/row]
[row][col]1[/col][col]A1[/col][col]B1[/col][col]C1[/col][col]D1[/col][/row]
[row][col]2[/col][col]A2[/col][col]B2[/col][col]C2[/col][col]D2[/col][/row]
[row][col]3[/col][col]A3[/col][col]B3[/col][col]C3[/col][col]D3[/col][/row]
[row][col]4[/col][col]A4[/col][col]B4[/col][col]C4[/col][col]D4[/col][/row]
[row][col]5[/col][col]A5[/col][col]B5[/col][col]C5[/col][col]D5[/col][/row]
[/grid]
Note the empty [col] tag in column 1 - we didn't want any data in column 1 but we need to put the empty tag in there because this is a grid. That means if you want things to line up you need the same number of columns in each row, whether they have data in them or not. If that doesn't make sense, think about a tic tac toe board and how silly it would look if the center row only had two boxes because someone didn't bother to specify that they wanted 3 boxes in each row:
x o x
o x
o x o


But back to our header row - here is the grid thus far with our header row included:
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Now is as good a time as any to show you a nice little shortcut. Instead of using the [col] tag, we can separate our columns with a double semicolon (;;). This is functionally equivalent to the code above (note once again the empty column1 in the header row):
Code:
[grid]
[row=header];;A;;B;;C;;D[/row]
[row]1;;A1;;B1;;C1;;D1[/row]
[row]2;;A2;;B2;;C2;;D2[/row]
[row]3;;A3;;B3;;C3;;D3[/row]
[row]4;;A4;;B4;;C4;;D4[/row]
[row]5;;A5;;B5;;C5;;D5[/row]
[/grid]
As you can see:
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Regular BB Code works within the grid, which is how we get our column 1 data to be bold:
Code:
[grid]
[row=header];;A;;B;;C;;D[/row]
[row][b]1[/b];;A1;;B1;;C1;;D1[/row]
[row][b]2[/b];;A2;;B2;;C2;;D2[/row]
[row][b]3[/b];;A3;;B3;;C3;;D3[/row]
[row][b]4[/b];;A4;;B4;;C4;;D4[/row]
[row][b]5[/b];;A5;;B5;;C5;;D5[/row]
[/grid]
Which gives us:
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


So much for the basics. As you can see, we have a functional grid but it still doesn't look like the example we started off with. Why not? Take a moment and make futile guesses while I write up the solution in the next post.
Reply With Quote
  #3  
Unread 3rd of July, 2012, 05:34
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
The answer is formatting. In order to format the grid, we will have to add a [fmt] tag. This tag will allow us to specify the borders, color scheme, and width for the entire table. It will also allow us to specify the width and alignment of each individual column.

To be completely (or at least partially) honest, this is the part that got our monkey killed. But really, it's nothing to be afraid of - in fact, it's so easy a substandard monkey could almost do it. The [fmt] tag is similar to a row tag - within it, you specify the individual columns except instead of putting data in the columns you put information on how that column should be displayed. So a [fmt] tag for our 5 column grid appears as follows:

[fmt][col][/col][col][/col][col][/col][col][/col][col][/col][/fmt]

Of course, that has no actual formatting information so it won't do anything. First, let's specify the width and alignment of column 1:

[fmt][col]width=75 align=left[/col][col][/col][col][/col][col][/col][col][/col][/fmt]

So now let's add that tag to our grid:
Code:
[grid]
[fmt][col]width=75 align=left[/col][col][/col][col][/col][col][/col][col][/col][/fmt]
[row=header];;A;;B;;C;;D[/row]
[row][b]1[/b];;A1;;B1;;C1;;D1[/row]
[row][b]2[/b];;A2;;B2;;C2;;D2[/row]
[row][b]3[/b];;A3;;B3;;C3;;D3[/row]
[row][b]4[/b];;A4;;B4;;C4;;D4[/row]
[row][b]5[/b];;A5;;B5;;C5;;D5[/row]
[/grid]
And here is the result:
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Now, just like a regular row, you can use the double semicolon shorthand for the [fmt] tag. We'll do this now and format all of the columns:
Code:
[grid]
[fmt]width=75 align=left;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center[/fmt]
[row=header];;A;;B;;C;;D[/row]
[row][b]1[/b];;A1;;B1;;C1;;D1[/row]
[row][b]2[/b];;A2;;B2;;C2;;D2[/row]
[row][b]3[/b];;A3;;B3;;C3;;D3[/row]
[row][b]4[/b];;A4;;B4;;C4;;D4[/row]
[row][b]5[/b];;A5;;B5;;C5;;D5[/row]
[/grid]
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Now we add borders and the alternating row color. We do this by specifying the "border" and "zebra" parameters on the [fmt] tag itself:
Code:
[grid]
[fmt  border=cell zebra=row]width=75 align=left;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center[/fmt]
[row=header];;A;;B;;C;;D[/row]
[row][b]1[/b];;A1;;B1;;C1;;D1[/row]
[row][b]2[/b];;A2;;B2;;C2;;D2[/row]
[row][b]3[/b];;A3;;B3;;C3;;D3[/row]
[row][b]4[/b];;A4;;B4;;C4;;D4[/row]
[row][b]5[/b];;A5;;B5;;C5;;D5[/row]
[/grid]
Which displays as:
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Finally, all that is left is to add that nifty title to the grid. This is accomplished by adding a name in the [grid] tag itself:
Code:
[grid=My First Grid]
[fmt  border=cell zebra=row]width=75 align=left;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center;;width=100 align=center[/fmt]
[row=header];;A;;B;;C;;D[/row]
[row][b]1[/b];;A1;;B1;;C1;;D1[/row]
[row][b]2[/b];;A2;;B2;;C2;;D2[/row]
[row][b]3[/b];;A3;;B3;;C3;;D3[/row]
[row][b]4[/b];;A4;;B4;;C4;;D4[/row]
[row][b]5[/b];;A5;;B5;;C5;;D5[/row]
[/grid]
And that gives us the complete sample grid:
My First Grid
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5


Doubtless after your initial giddiness and gratitude have subsided, you'll be clamoring for more details. Here they are:

The parameters that are allowed within the [fmt] tag itself are:
width=
  • n => Width of the entire table in pixels
  • n% => Width of the entire table in percentage
border=
  • row => Border only around the rows (not columns)
  • column => Border only around the columns (not rows)
  • cell => Border around every cell in the table
  • none => No border on the table
  • table => Border around the outside of the table only
headerborder=
  • row => Border only around the header row
  • column => Border around the header columns
  • cell => Border only around each cell in the header
  • none => No border on the header
zebra=
  • row => Alternate row color
  • column => Alternate column color
  • cell => Alternate color of every cell
style=
  • n => Table style number (default is 1)

Style controls the colors and default alignments for the grid. Right now we only have style=1 and style=2, and they aren't terribly different. Maybe someday soon we'll add a few more. Then again, maybe you should just be happy for what we've given you and stop bitching about things you probably won't use anyway.

For each column in the [fmt] tag, you can specify the following items:
width=
  • n => Width of the column in pixels
  • n% => Width of the column in percentage
align= (you can specify both a horizontal and vertical alignment ie. align=top left)
  • left => Horizontal alignment (left aligned)
  • right => Horizontal alignment (right aligned)
  • center => Horizontal alignment (centered)
  • justify => Horizontal alignment (justified)
  • top => Vertical alignment (top aligned)
  • bottom => Vertical alignment (bottom aligned)
  • middle => Vertical alignment (middle aligned)
  • baseline => Vertical alignment (aligned to text baseline)

A few more shortcuts:
  • If your grid only has 1 row, you don't need to put a [row] tag. That is [grid][row]a1;;a2;;a3[/row][/grid] is the same as [grid]a1;;a2;;a3[/grid]
  • You can specify width or alignment without using width= or align=. That is, [fmt width=100%] is the same as [fmt 100%], and [fmt][col]width=25% align=top center[/col][/fmt] is the same as [fmt][col]25% top center[/col][/fmt]
  • hdr is interchangeable with header and col is interchangeable with column - so border=header and border=hdr are the same, as are border=column and border=col

That should cover pretty much everything. As with all new and wonderful features, please let us know when you find a way to break it. A word of warning, however - don't bother putting a grid tag inside of another grid tag. Yes, it breaks things and no, it isn't a bug. It's a feature - it helps keep you from getting lost within a tangled maze of your own crappy code.
Reply With Quote
  #4  
Unread 3rd of July, 2012, 05:35
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
And at long last, the code from the first post in the thread:
Basic Information
Abilities Attributes
Str:
Dex:
Con:
Int:
Wis:
Cha:
19 (+4)
16 (+3)
16 (+3)
16 (+3)
12 (+1)
08 (-1)
Speed:
Hit Dice:
Hit Points:
Initiative:
AC:
Senses:
Languages:
20 feet
2d8 + 2d6
31 [31 current]
+3 [+0 base +3 dex]
18 [+10 base +5 armour +3 dex +0 shield +0 misc]
Darkvision
Common, Dwarven


Code:
[grid=Basic Information]
[row=hdr]Abilities;;;;Attributes[/row]
[fmt border=table]50 left;;150 left;;75 right;;left[/fmt]
[col][b]Str[/b]:
[b]Dex[/b]:
[b]Con[/b]:
[b]Int[/b]:
[b]Wis[/b]:
[b]Cha[/b]:[/col]
[col]19 (+4)
16 (+3)
16 (+3)
16 (+3)
12 (+1)
08 (-1)[/col]
[col][b]Speed[/b]:
[b]Hit Dice[/b]:
[b]Hit Points[/b]:
[b]Initiative[/b]:
[b]AC[/b]:
[b]Senses[/b]:
[b]Languages[/b]:[/col]
[col]20 feet
2d8 + 2d6
31 [size=1][31 current][/size]
+3 [size=1][+0 base +3 dex][/size]
18 [size=1][+10 base +5 armour +3 dex +0 shield  +0 misc][/size]
Darkvision
Common, Dwarven[/col][/grid]
Attacks
Weapon Atk Dmg Range
Urgosh +8 1d8+4 n/a
Axe, Throwing +7 1d6+4 10 ft


Code:
[grid=Attacks]
[fmt zebra=row border=row]200 left;;50 left;;150 left;;left[/fmt]
[row=hdr]Weapon;;Atk;;Dmg;;Range[/row]
[row]Urgosh;;+8;;1d8+4;;n/a[/row]
[row]Axe, Throwing;;+7;;1d6+4;;10 ft[/row]
[/grid]
Skills
Skill Bonus
Climb +9 [+5 ranks +4 str]
Disable Device +10 [+5 ranks +3 dex +2 MW tools]
Survival +7 [+6 ranks +1 wis]


Code:
[grid=Skills]
[fmt 100% zebra=row border=table]left 200;;left[/fmt]
[row=hdr]Skill;;Bonus[/row]
[row]Climb;;+9 [size=1][+5 ranks +4 str][/size][/row]
[row]Disable Device;;+10 [size=1][+5 ranks +3 dex +2 MW tools][/size][/row]
[row]Survival;;+7 [size=1][+6 ranks +1 wis][/size][/row]
[/grid]
Reply With Quote
  #5  
Unread 3rd of July, 2012, 05:42
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
And because I spent too long making this while we were putting it together, here's a 3rd edition skill table! Dear lord that took me ages.

Skills
Name Stat Ranks Mod Misc
+ 0 Appraise INT [ 0.0 + 0 + 0]
+ 0 Balance DEX [ 0.0 + 0 + 0]
+ 0 Bluff CHA [ 0.0 + 0 + 0]
+ 0 Climb STR [ 0.0 + 0 + 0]
+ 0 Concentration CON [ 0.0 + 0 + 0]
+ 0 Diplomacy CHA [ 0.0 + 0 + 0]
+ 0 Disguise CHA [ 0.0 + 0 + 0]
+ 0 Escape Artist DEX [ 0.0 + 0 + 0]
+ 0 Forgery INT [ 0.0 + 0 + 0]
+ 0 Gather Information CHA [ 0.0 + 0 + 0]
+ 0 Handle Animal CHA [ 0.0 + 0 + 0]
+ 0 Heal WIS [ 0.0 + 0 + 0]
+ 0 Hide DEX [ 0.0 + 0 + 0]
+ 0 Intimidate CHA [ 0.0 + 0 + 0]
+ 0 Jump STR [ 0.0 + 0 + 0]
+ 0 Listen WIS [ 0.0 + 0 + 0]
+ 0 Move Silently DEX [ 0.0 + 0 + 0]
+ 0 Ride DEX [ 0.0 + 0 + 0]
+ 0 Search INT [ 0.0 + 0 + 0]
+ 0 Sense Motive WIS [ 0.0 + 0 + 0]
+ 0 Spot WIS [ 0.0 + 0 + 0]
+ 0 Survival WIS [ 0.0 + 0 + 0]
+ 0 Swim STR [ 0.0 + 0 + 0]
+ 0 Use Rope DEX [ 0.0 + 0 + 0]


Code:
[grid=Skills]
[fmt zebra=row headerborder=cell][col][/col][col]align=center[/col][col][/col][col][/col][col][/col][col]align=right[/col][/fmt]
[row=header][col][/col][col]Name[/col]|[col]Stat[/col] [col]Ranks[/col]|[col]Mod[/col]|[col]Misc[/col][/row]

[row]+ 0;; Appraise;;INT;; [ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0;; Balance;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Bluff;;CHA ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0;; Climb;;STR;; [ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Concentration;;CON ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Diplomacy;;CHA ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Disguise;;CHA ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Escape Artist;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Forgery;;INT ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Gather Information;;CHA ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Handle Animal;;CHA ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Heal;;WIS ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Hide;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Intimidate;;CHA ;;[ 0.0  ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Jump;;STR ;;[ 0.0  ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Listen;;WIS ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Move Silently;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Ride;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Search;;INT ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Sense Motive;;WIS;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Spot;;WIS ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Survival;;WIS ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Swim;;STR ;;[ 0.0 ;;+ 0 ;;+ 0][/row]
[row]+ 0 ;; Use Rope;;DEX ;;[ 0.0 ;;+ 0 ;;+ 0][/row]

[/grid]
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
  #6  
Unread 3rd of July, 2012, 05:48
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
But at least you never once complained about it.
Reply With Quote
  #7  
Unread 3rd of July, 2012, 07:14
Mercutio's Avatar
Mercutio
Grave Digger [Epic GM]

User is offline
 
Join Date: Oct 2005
Member: #1485
Location: Ocean City, NJ
Posts: 8,215 (1.87 per day)
That's really cool. I'm off to go play with it now.
Reply With Quote
  #8  
Unread 3rd of July, 2012, 09:07
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
Hello Bugs?
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5
6 A6


Hello Bugs?
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5
6 A6


Hello Bugs?
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5
6 A6


Hello Bugs?
A B C D
1 A1 B1 C1 D1
2 A2 B2 C2 D2
3 A3 B3 C3 D3
4 A4 B4 C4 D4
5 A5 B5 C5 D5
6 A6
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
  #9  
Unread 3rd of July, 2012, 09:11
Mercutio's Avatar
Mercutio
Grave Digger [Epic GM]

User is offline
 
Join Date: Oct 2005
Member: #1485
Location: Ocean City, NJ
Posts: 8,215 (1.87 per day)
Indent tags works inside the grids. I updated my ship-to-ship combat thread from my defunct Pirates game.

http://online-roleplaying.com/forums...496#post377496
Reply With Quote
  #10  
Unread 3rd of July, 2012, 11:16
zachol's Avatar
zachol
Flesh Colossus [Epic GM]

User is offline
 
Join Date: Jan 2005
Member: #1103
Location: Glorious Nippon
Posts: 8,153 (1.75 per day)
Ohmigosh that is awesome. Thanks a bunch!
__________________
Sleepy cat is sleepy.
Reply With Quote
  #11  
Unread 3rd of July, 2012, 12:35
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
chess?
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
  #12  
Unread 3rd of July, 2012, 13:30
zachol's Avatar
zachol
Flesh Colossus [Epic GM]

User is offline
 
Join Date: Jan 2005
Member: #1103
Location: Glorious Nippon
Posts: 8,153 (1.75 per day)

I'm bad at chess.

Feels like you could do rudimentary maps with this.

A B C D E F G H
1
2
3
4
5
6
7
8

Chess pieces seem to mess it up, somehow? Or maybe I just don't understand how blank cells work.

Code:
[grid]
[fmt zebra=cell]15 align=center;;15  align=center;;15 align=center;;15  align=center;;15 align=center;;15 align=center;;15 align=center;;15  align=center[/fmt]
[row]♖;;♘;;♗;;♕;;♔;;♗;;♘;;♖[/row]
[row]♙;;♙;;♙;;♙;;♙;;♙;;♙;;♙[/row]
[row];; ;; ;; ;; ;; ;; ;;[/row]
[row];; ;; ;; ;; ;; ;; ;;[/row]
[row];; ;;♟;; ;; ;; ;; ;;[/row]
[row];; ;; ;; ;; ;; ;; ;; [/row]
[row]♟;;♟;; ;;♟;;♟;;♟;;♟;;♟[/row]
[row]♜;;♞;;♝;;♛;;♚;;♝;;♞;;♜[/row][/grid]
Gets me all sorts of little semicolons.


But then it does work when you break it up or something?
Code:
[grid]
[fmt zebra=cell]15 align=center;;15  align=center;;15 align=center;;15  align=center;;15 align=center;;15 align=center;;15 align=center;;15  align=center;;15  align=center[/fmt]
[row];;A;;B;;C;;D;;E;;F;;G;;H[/row]
[row]1;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row]2;; ;;[color=Red]♙[/color];; ;; ;; ;; ;; ;;[/row]
[row]3;; ;; ;; ;; ;;[color=Red]♗[/color];; ;; ;;[/row]
[row]4;; ;;[color=DeepSkyBlue]♞[/color];;[color=Red]♙[/color];;[color=Red]♙[/color];; ;; ;; ;;[/row]
[row]5;;[color=Red]♘[/color];; ;;[color=DeepSkyBlue]♜[/color];; ;; ;; ;; ;;[/row]
[row]6;; ;; ;; ;; ;; [color=DeepSkyBlue]♛[/color];; ;; ;; [/row]
[row]7;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row]8;; ;; ;; ;; ;; ;; ;; ;;[/row]
[/grid]
Because that seemed to work fine, and I'm not sure why. Is it the color tags?

e: Also no matter what this is super awkward to mess with and wouldn't work well for a changing map.
I'm poking at 4e-style power blocks but I'm not sure about it.
__________________
Sleepy cat is sleepy.

Last edited by zachol; 3rd of July, 2012 at 13:40.
Reply With Quote
  #13  
Unread 3rd of July, 2012, 13:50
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
I'm pretty sure the extra semicolons are a result of the chess pieces being weird characters.

Chess?
1 2 3 4 5 6 7 8
A
B
C
D
E
F
G
H


Edit: A super simple mapping soluton seems possible, but I'd recommend using letters and numbers instead of characters.

A B C D E F G H I J
1
2 Mk
3 Ld
4
5 Dz G1
6 G2
7 G3 Tk
8
9
10



Map Code
[grid]
[fmt border=cell zebra=cell]15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center;;15 align=center[/fmt]

[row=header];;A;;B;;C;;D;;E;;F;;G;;H;;I;;J[/row]
[row][b][color="White"]1[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]2[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]3[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]4[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]5[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]6[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]7[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]8[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]9[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[row][b][color="White"]10[/color][/b];; ;; ;; ;; ;; ;; ;; ;; ;; ;;[/row]
[/grid]
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
  #14  
Unread 3rd of July, 2012, 14:38
zachol's Avatar
zachol
Flesh Colossus [Epic GM]

User is offline
 
Join Date: Jan 2005
Member: #1103
Location: Glorious Nippon
Posts: 8,153 (1.75 per day)
Yeah, probably not really convenient for long-term use.

I doubt it would be worth the effort of implementing, but it would be kinda cool if you could do something like this:
Code:
[grid]
[fmt][col]120 left[/col][col]360 left[/col][col]120 right[/col][/fmt]
[row shade=green][col span=2][size=3][b]Cleave[/b][/size][/col][col]Fighter Attack 1[/col][/row]
[row shade=dark][col span=3][i]You hit one enemy, then cleave into another.[/i][/col][/row]
[row shade=light][col span=3][b]At-Will ♦ Martial, Weapon[/b][/col][/row]
[row shade=light][col][b]Standard Action[/b][/col][col span=2][b]Melee[/b] weapon[/col][/row]
[row shade=light][col span=3][b]Target:[/b] One creature[/col][/row]
[row shade=light][col span=3][b]Attack:[/b] Str vs. AC[/col][/row][/col][/row]
[row shade=dark][col span=3][b]Hit:[/b] 1[W] + Strength modifier damage, and an enemy adjacent to you takes damage equal to your Strength Modifier.[/col][/row]
[row shade=light][col span=3]Increase damage to 2[W] + Strength modifier at 21st level.[/col][/row][/grid]
Or something similar, letting you make a little block with tabs and alignment, and individually shaded rows and so on.

I think the one feature I'd actually request would be the ability to have a cell span multiple columns.
__________________
Sleepy cat is sleepy.
Reply With Quote
  #15  
Unread 3rd of July, 2012, 14:59
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
Cleave Fighter Attack 1
You hit one enemy, then cleave into another.
At-Will ♦ Martial, Weapon
Standard Action Melee weapon
Target: One creature
Attack: Str vs. AC
Hit: 1[W] + Strength modifier damage,
and an enemy adjacent to you takes damage equal to your Strength Modifier.
Increase damage to 2[W] + Strength modifier at 21st level.



Cleave Fighter Attack 1

You hit one enemy, then cleave into another.
At-Will ♦ Martial, Weapon

Standard Action Melee weapon

Target: One creature
Attack: Str vs. AC
Hit: 1[W] + Strength modifier damage,
and an enemy adjacent to you takes damage equal to your Strength Modifier.
Increase damage to 2[W] + Strength modifier at 21st level.

??
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
  #16  
Unread 3rd of July, 2012, 15:09
Tashalar's Avatar
Tashalar
Ghastly Thread Necromancer [Epic GM]

User is offline
 
Join Date: Jul 2006
Member: #1799
Location: Castle Korvosa
Posts: 5,971 (1.45 per day)
Well, wow. That looks like a lot of work - thanks!

... and as a side effect, Gral can do simple maps! Neat!
__________________
Reply With Quote
  #17  
Unread 3rd of July, 2012, 16:30
BigRedRod's Avatar
BigRedRod
A One-Winged Angel [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #17
Location: In the bath
Posts: 11,976 (2.08 per day)
I would like to take some account of credit for this as a member of team admin. Despite not contributing in any way
__________________
BRR just likes to punish us. He does it because we are weak. --The Alcotroll
Reply With Quote
  #18  
Unread 3rd of July, 2012, 21:37
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
The chess piece extra semi colon thing is because of the special characters - they get converted to the html equivalent before the grid code runs, which all end in a semi colon so that screws up the grid parsing. You can easily solve it by using the [col][/col] instead, or by not having the special character next to the ";;" - use a space or something after it. And you can switch the format by row - so for row 1 you can use [col][/col] and row 2 use ;;.

As far as mapping, it's funny you should say that. This morning I was thinking that it would be pretty easy to implement a [gridmap] thing, where you give it the image you want to use and then we could draw a grid over it. So, say something like [gridmap 5ft=20px size=10x10 c8=p1 e5=p2]myimage.jpg[/gridmap] would create a grid with 10 rows and 10 columns, each square being 20px by 20px. The grid would sit on top of myimage.jpg, and at row 8, column C it would have the characters "P1", row 5 column E would have "P2".
Reply With Quote
  #19  
Unread 3rd of July, 2012, 21:40
zachol's Avatar
zachol
Flesh Colossus [Epic GM]

User is offline
 
Join Date: Jan 2005
Member: #1103
Location: Glorious Nippon
Posts: 8,153 (1.75 per day)
That would be pretty fucking awesome.
__________________
Sleepy cat is sleepy.
Reply With Quote
  #20  
Unread 3rd of July, 2012, 22:02
Mercutio's Avatar
Mercutio
Grave Digger [Epic GM]

User is offline
 
Join Date: Oct 2005
Member: #1485
Location: Ocean City, NJ
Posts: 8,215 (1.87 per day)
The nice thing about that would be that players could update their own positions with each update, as they copy and paste the code from each person that posted before them.
Reply With Quote
  #21  
Unread 3rd of July, 2012, 22:03
Gralhruk's Avatar
Gralhruk
Ghost of ORP Past [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #13
Location: The Netherworld
Posts: 10,845 (1.89 per day)
As far as "span" . . . I considered it and fiddled around with some stuff. Ultimately I scrapped it because in order to use it with the formatting and stuff you really need to specify your grid size up front and it felt like the syntax was getting too complicated.

There are two ends of the spectrum. On the one side basically just giving all of the HTML table functionality and converting "[]" to "<>" and assuming the user knows what they are doing. On the other side is not giving any options and doing all of the work in the background.

What we did here falls kind of in the middle - hopefully simpler than full blown HTML tables, but also robust enough to cover most of what most people will want to do.

Edit: And as an alternative to "span" you can just put a few tables in succession with different numbers of columns and it should come up okay. Just make sure you specify the same width for each table in the format tags:

Cleave Fighter Attack 1
You hit one enemy, then cleave into another.
At-Will ♦ Martial, Weapon
Standard Action Melee weapon
Target: One creature
Attack: Str vs. AC
Hit: 1[W] + Strength modifier damage, and an enemy adjacent to you takes damage equal to your Strength Modifier.
Increase damage to 2[W] + Strength modifier at 21st level.


Code:
[grid]
[fmt width=600 border=table zebra=row][col]480 left[/col][col]120 right[/col][/fmt]
[row][col][size=3][b]Cleave[/b][/size][/col][col]Fighter Attack 1[/col][/row]
[/grid][grid]
[fmt width=600 border=table][col]600 left[/col][/fmt]
[row][col][i]You hit one enemy, then cleave into another.[/i][/col][/row]
[row][col][b]At-Will ♦ Martial, Weapon[/b][/col][/row][/grid][grid]
[fmt width=600 border=table][col]200 left[/col][col]400 left[/col][/fmt]
[row][col][b]Standard Action[/b][/col][col][b]Melee[/b] weapon[/col][/row]
[/grid][grid]
[fmt width=600 border=table zebra=row][col]600 left[/col][/fmt]
[row][col][b]Target:[/b] One creature[/col][/row]
[row][col][b]Attack:[/b] Str vs. AC[/col][/row][/col][/row]
[row][col][b]Hit:[/b] 1[W] + Strength modifier damage, and an enemy adjacent to you takes damage equal to your Strength Modifier.[/col][/row]
[row][col]Increase damage to 2[W] + Strength modifier at 21st level.[/col][/row][/grid]
I'm sure someone with a better grasp of what 4e power cards look like can lay it out better than that, but you get the idea.
__________________
How many deaths shall serve to break at last
This heritage which wraps me in the grey
Apparel of ghosts?
Reply With Quote
  #22  
Unread 3rd of July, 2012, 23:11
zachol's Avatar
zachol
Flesh Colossus [Epic GM]

User is offline
 
Join Date: Jan 2005
Member: #1103
Location: Glorious Nippon
Posts: 8,153 (1.75 per day)
For the maps, it would be neat if you could alter the formatting for characters, especially something like color, so the PCs would be one color, and the enemies another, or so that you could account for the color of the map.
e: Also possibly some way to align/offset the grid in case the map has a pre-existing one that doesn't perfectly align. Although I have absolutely no idea how that would work (maybe be able to change the width/height of the leftmost/topmost column/row?).

For span, that looks like it works. I didn't realize you could format it so one table would be flush against another. I don't particularly care about 4e power blocks, I just saw your example of an attribute box and got to thinking how it would be neat to do that with the powers (but thanks for figuring that out).
I can't think of any other uses of span of the top of my head, otherwise. I just assumed there were some, probably.

e2: Also I really don't want to sound like I'm whining or anything. This is all awesome and even a fairly simple (actually especially a fairly simple) mapping solution would be super extra awesome.
With sprinkles or something.
__________________
Sleepy cat is sleepy.

Last edited by zachol; 3rd of July, 2012 at 23:17.
Reply With Quote
  #23  
Unread 4th of July, 2012, 00:19
Mercutio's Avatar
Mercutio
Grave Digger [Epic GM]

User is offline
 
Join Date: Oct 2005
Member: #1485
Location: Ocean City, NJ
Posts: 8,215 (1.87 per day)
I had a use but it wasn't important. I had a header row and in one of the headings there were subheadings. I wanted to just make another row below that had the subheadings and leave the main heading to span across the three subs, but that didn't work.
Reply With Quote
  #24  
Unread 7th of July, 2012, 14:21
Explosive Cheese's Avatar
Explosive Cheese
Boomer Muenster [Epic GM]

User is offline
 
Join Date: Mar 2010
Member: #8003
Location: University of Waterloo
Posts: 2,137 (0.77 per day)
It looks like I've decided to revisit Orp at a time of awesome new improvements.
__________________
"Any sufficiently advanced technology is indistinguishable from magic."
"Any sufficiently analysed magic is indistinguishable from science."
"Any magic which is distinguishable from science has not been analysed enough."
Reply With Quote
  #25  
Unread 12th of July, 2012, 20:21
itches's Avatar
itches
Vampire Lord [Epic Admin]

User is offline
 
Join Date: Jan 2002
Member: #10
Location: Castle Greyskull
Posts: 13,740 (2.39 per day)
Well now. I just realised I could use it to do this. Been trying to work out how to do this formatting for a while now.

Fiction Draft
I was beginning to wonder if she was blind or something when I stopped next to her and her eyes focused on me for the first time, and an almost comical expression of shock plastered itself over her face, eyebrows jerking up and lips forming a perfectly adorable little O.


RainbowGirl: What?
Ami: Uh, sorry. I didn't mean to sneak up on you, I thought you saw me.
RainbowGirl: I did, I mean you didn't. I mean – shit. How did you do that?
Ami: Do what?


She actually seemed to be getting upset, so I didn't wait for her to answer, jumping straight to the reason I was talking to her.


Ami: Look, my name is Ami. I'm new here, trying to get to my next class but I seem to be lost.
RainbowGirl: Right right, you're the new girl stuck rooming with the t-


A gaggle of teachers appeared down the path, crossing over it on an intersecting track and the girl cut herself off mid-word, eyes going unfocused for a moment until they were gone. I was about to ask if she was alright when she looked back at me with what I'd almost swear was suspicion.


RainbowGirl: Still here? Fine may as well help you, where were you going?


I fished out the Student Diary containing my class schedule and showed it to her. She took the book from me, barely glanced at the timetable before flipping through the pages with her multicoloured fingers.


Rainbow Girl/Elicia: My name is Elicia by the way, you're in Ackerson's maths class next, same as me. Meanwhile there is a map of the grounds in here. Until you learn your way stick with the bigger paths and if you get lost just wonder about until find a land mark.


I felt more than a little foolish as she held up the page to show me, in hindsight there must have been one in there and I could have spared a few minutes to scan the thing.

Ami: And here I was about to light a fire to attract some attention.
Elicia: It wouldn't work, it's been tried. Few years back one of the 7th graders was sneaking out of his dorm at night and apparently set a building on fire. People noticed the smoke alright and the fire-department was called, but when they went into the maze of buildings to find it they disappeared. No one ever saw them or the kid again


She said all this with such a serious, deadpan look on her face while handing me the diary back that I was almost tempted to believe her. Well to at-least to believe that she believed it.

Ami: Really? What happened to the building that was set on fire?
Elicia: No one knows, but when you walk around here sometimes you'll smell smoke that isn't coming from anywhere. They say that it's the ghost of that kid still trying to burn down the building.


My eyes flicked to the cigarette she was holding as she said this, but held back from making the obvious comment.


Ami: Damned ghosts, always getting smoke everywhere.
Elicia: Right. Just follow me. If you can.


She flicked the still lit remains of the cigarette butt into a flowerbed, gave me a look I couldn't read, and started walking down the path. I followed that swaying skirt along a twisted rout I couldn't retrace if I even wanted to until we finally got to class and she slumped down at a desk by herself in the back, pulling out a phone to play with without even trying to hide the fact or being called on it.

The hair, the clothes, the phone? I don't know how she gets away with it, but she is one super weird girl. And that's coming from me, Amicula the Dark Mistress of Nightmares.
__________________
@}-`-- Coffee + Hate = itches
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time now is 12:12.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Graphics by Koert van Kleef (T0N!C) and Lyle Warren