Difference between revisions of "User:Skace"

From RoDpedia
Jump to: navigation, search
(Sandbox)
 
Line 92: Line 92:
  
 
It should be noted that all except test 1 use a max width of 600px box, what this does is makes it so the box can't grow too big, but if someone has a smaller resolution or window, the box will shrink with the window instead of breaking page formatting. It will even wrap the lines, which doesn't look that great, but is still more readable for someone with a low res, more so than having to scroll all over.
 
It should be noted that all except test 1 use a max width of 600px box, what this does is makes it so the box can't grow too big, but if someone has a smaller resolution or window, the box will shrink with the window instead of breaking page formatting. It will even wrap the lines, which doesn't look that great, but is still more readable for someone with a low res, more so than having to scroll all over.
 +
 +
CSS Settings Saved here: [[User:Skace/monobook.css]]
  
 
=== Ident Test 1 ===
 
=== Ident Test 1 ===

Latest revision as of 17:01, 30 September 2008

'98-2008, once again into the shadows.

Scripts

Area Menu

  • Copy the full "areas" command from RoD into a file called areas.txt and remote extra spacing (replace " " with " " until you can't)
  • Create and run a batch file with the following code:
@echo off
setlocal
set i=0
echo "|-"> areas2.txt
for /f "tokens=2 delims=|(" %%i in (areas.txt) do call :start %%i
endlocal
goto :eof

:start2
echo "%*"
goto :eof

:start
set /a i+=1
if "%t%"=="" ( set "t=[[%*]]" ) else ( set "t=%t% || [[%*]]" )
if "%i%"=="2" call :submit "%t%"
goto :eof

:submit
echo "|%~1">> areas2.txt
echo "|-">> areas2.txt
set i=0
set t=
goto :eof
  • Open areas2.txt and replace quotation marks w/ nothing to remove them all
  • You now have the body of the Template:Areamenu. Do not overwrite the whole thing, only the body, you will be able to tell.

Command Menu

  • Create a long text file of commands directly from inside RoD via commands. Use Excel to turn this list into 1 column and alphabetize it. Save it as commands.txt
  • Create and run a batch file with this code:
@echo off
setlocal
set i=0
echo "|-"> commands2.txt
for /f %%i in (commands.txt) do call :start %%i
endlocal
goto :eof

:start
set /a i+=1
if "%t%"=="" ( set "t=[[%~1]]" ) else ( set "t=%t% || [[%~1]]" )
if "%i%"=="3" call :submit "%t%"
goto :eof

:submit
echo "|%~1">> commands2.txt
echo "|-">> commands2.txt
set i=0
set t=
goto :eof
  • Open commands2.txt and replace all quotation marks w/ nothing to remove them
  • Copy the resulting text into the Template:Commandmenu body

Skill Menu

  • Grab the list of skills off of the category skill page for the specific class you are updating
  • Create and run a batch file with this code:
@echo off
setlocal
echo "|-"> skills2.txt
for /f "tokens=1,2,3,4 delims=:=" %%i in (skills.txt) do call :start "%%i" "%%j" "%%k" "%%l"
endlocal
goto :eof

:start
if "%~2"=="" for /f "tokens=2" %%i in ("%~1") do set level=%%i& goto :eof
for /f "tokens=2 delims=[]" %%i in ("%~2") do set skill=[[%%i]]
for /f "tokens=1" %%i in ("%~3") do set max=%%i
echo "|%level% || %skill% || %max% || %~4">> skills2.txt
echo "|-">> skills2.txt
goto :eof
  • Open skills2.txt and replace all quotation marks w/ nothing to remove them
  • The resulting text can be used to create a skill table for any class page. See the warrior class for example syntax.

Sandbox

Sandbox explanation. Ident Test 1 is a simple test of how fixed space text can be utilized on a page without any other formatting. Ident Test 2 is a more fully formatted example that tries to mimic the in-game view. Ident Test 3 adds the look information in a similar way a mob description might show up from inside the game. Ident Test 4 shows a different display style, the description has the forced line breaks removed, you can demo this by making your browser window bigger and smaller, Test 3 will completely break when the window gets small but Test 4 will properly resize. Mob Test 1 shows a similar setup as Ident Test 3, except with mob information and displaying the gear as you would normally see it on a mob. Mob Test 2 attempts to use a CSS file, but is not working at this time.

It should be noted that all except test 1 use a max width of 600px box, what this does is makes it so the box can't grow too big, but if someone has a smaller resolution or window, the box will shrink with the window instead of breaking page formatting. It will even wrap the lines, which doesn't look that great, but is still more readable for someone with a low res, more so than having to scroll all over.

CSS Settings Saved here: User:Skace/monobook.css

Ident Test 1

Object 'black cloak' is infused with your magic...
It is a level 3 armor, weight 3.
Locations it can be worn: neck
Special properties: organic
Alignments allowed: evil neutral
This armor has a gold value of 25.
Armor class is 4 of 4.
Affects affected_by by sneak
Affects moves by -25.

Ident Test 2

Object 'black cloak' is infused with your magic...
It is a level 3 armor, weight 3.
Locations it can be worn: neck
Special properties: organic
Alignments allowed: evil neutral
This armor has a gold value of 25.
Armor class is 4 of 4.
Affects affected_by by sneak
Affects moves by -25.

Ident Test 3

Peering closely at the worn leather material, you notice several
large metal protuberances, similar to the studs and rivets found
on certain types of leather armor.
You sense, somehow, that this is a device of war, of bloodshed.
Images of violent conflict arise unbidden in your mind.
Through them all, however, you notice a white gloved hand...

Object 'The Gauntlet' is infused with your magic...
It is a level 17 armor, weight 10.
Locations it can be worn: hands
Special properties: hum evil magic metal
Alignments allowed: evil neutral
This armor has a gold value of 225600.

Armor class is 17 of 17.
Affects hp by 25.
Affects hit roll by 3.
Affects damage roll by 3.

Ident Test 4

Peering closely at the worn leather material, you notice several large metal protuberences, similar to the studs and rivets found on certain types of leather armor. You sense, somehow, that this is a device of war, of bloodshed. Images of violent conflict arise unbidden in your mind. Through them all, however, you notice a white gloved hand...

Object 'The Gauntlet' is infused with your magic...
It is a level 17 armor, weight 10.
Locations it can be worn: hands
Special properties: hum evil magic metal
Alignments allowed: evil neutral
This armor has a gold value of 225600.

Armor class is 17 of 17.
Affects hp by 25.
Affects hit roll by 3.
Affects damage roll by 3.


Mob Test 1

Ingeloakastimizilian, or Icingdeath, as he has come to be known,
has lived in this cavern for hundreds of years. He, like many others
of his kind, has grown too large to leave his lair. So Icingdeath is
content to lie here in repose and count his treasure in his tiny dragon
mind. Disturbing him was probably a very bad idea.

Icingdeath is using:
<used as light>      the Ice Orb
<worn on body>       the Ice Breastplate
<worn on head>       the Ice Helm
<worn on legs>       the Ice Leggings
<worn on feet>       the Ice Shoes
<worn on hands>      the Ice Gauntlets
<worn on arms>       the Ice Arm Guards
<wielded>            the Ice Tooth
<worn on ears>       the Ice Earrings

Mob Test 2

Ingeloakastimizilian, or Icingdeath, as he has come to be known, has lived in this cavern for hundreds of years. He, like many others of his kind, has grown too large to leave his lair. So Icingdeath is content to lie here in repose and count his treasure in his tiny dragon mind. Disturbing him was probably a very bad idea.

Icingdeath is using:
<used as light>      the Ice Orb
<worn on body>       the Ice Breastplate
<worn on head>       the Ice Helm
<worn on legs>       the Ice Leggings
<worn on feet>       the Ice Shoes
<worn on hands>      the Ice Gauntlets
<worn on arms>       the Ice Arm Guards
<wielded>            the Ice Tooth
<worn on ears>       the Ice Earrings