• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

vB Code Guide

Status
Not open for further replies.
Level 24
Joined
Jun 14, 2005
Messages
2,506
This is a Guide to all of the custom vB codes that have been made for the site.


Chapter

The Chapter vB code will let you create a title without to much effort, all you need to do is use the tags.

Code:
[chapter][/chapter]

Example:

Chapter


Trigger

This allows you to use the trigger tags. You can copy and paste a trigger out the World Editor and then use the trigger tags to make it look like it does in the World Editor.

Code:
[trigger][/trigger]

Example:
  • Map Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Advanced - Initialize advanced triggers
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Enable user control for (All players)
      • Cinematic - Fade out over 0.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency

Jass

This allows you to enter Jass into your post. Just copy and paste the Jass code into your post.

Code:
[code=jass][/code]

Example:
JASS:
function Trig_Map_Initialization_Copy_Actions takes nothing returns nothing
    call InitAdvancedTriggers(  )
    call CinematicModeBJ( true, GetPlayersAll() )
    call SetUserControlForceOn( GetPlayersAll() )
    call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUT, 0.00, "ReplaceableTextures\\CameraMasks\\Black_mask.blp", 100.00, 100.00, 100.00, 0 )
endfunction

//===========================================================================
function InitTrig_Map_Initialization_Copy takes nothing returns nothing
    set gg_trg_Map_Initialization_Copy = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Map_Initialization_Copy, function Trig_Map_Initialization_Copy_Actions )
endfunction

Flash

This vB code allows you to display a flash file.

Code:
[flash][/flash]

Google Search

This allows you to simply enter a word, and when the link is clicked it will search for that word in google.

Code:
[url=https://www.google.com/search?q=%22Search+Term%22]Text[/url]

Example:
Hello

Horizontal Rule

This adds a horizontal rule.

Code:
[hr]length[/hr]

Example:


Go To

This allows you to have a link that will go to a point.

Code:
[goto="Anchor Name"]Text[/goto]

Example:
Text

Point

This creates an anchor that you can use, so that when a Go to link is clicked it will go straight down to the anchor on the page.

Code:
[point]Anchor Name[/point]

Example:

Box
This will put a box around your text, and also let you have a title for the box. The Code for this is [box=Title]Content[/box].

Example:
Box Title
This is where the content of your box will go.

Table vB Code
This is the new Table vB code. Basicly you start of with [table]make a [c] to make a new column, and a [r] to make a new row. However make sure you don't use the [c] tag after the [r] or [table] code, because they will automatically create a column. Then just finish off the table with the [/table] tag.

Example:
1,11,21,3

2,1
2,22,3

3,1
3,23,3

Code:
[table]1,1[c]1,2[c]1,3[r]
2,1[c]2,2[c]2,3[r]
3,1[c]3,2[c]3,3[/table]

Simple Table
There is also a Simple Table vB code, which is basicly a table header with another row underneath it for the content of the table. The Code for this is [box="Title"]Content[/box].

Example:
The Simple Table
This is where the content of your Table will go.
This table is simply for anyone who wants a quick table, that just needs a title column and a content area for each table.
 
Last edited:
Status
Not open for further replies.
Top