Giter Site home page Giter Site logo

heromarkdown's Introduction

HeroMarkdown

Style specification for BaldarSilveraxe's (AKA Stephen S.) Roll20 markdown scripts and Slugnet's excellent example for Alien RPG.

Quickstart Using the HERO System CSS and Markdown in Roll20

Part 1 - Install the API Scripts on Roll20

You will need to either have an existing game on Roll20, or create a new game.

Install the three API scripts to the game you wish to use them with:

Installing API scripts on Roll20 is beyond the scope of this documentation, please visit https://help.roll20.net/hc/en-us/articles/360037256714-API#API-HowdoIinstallanAPIscriptifIwanttowritemyowncodeorIwanttousecodefromanexternalsource?.

The original thread by Stephen S. concerning the Markdown mod can be found here: https://app.roll20.net/forum/post/8028597/script-markdown-handouts-and-bios/?pagenum=1.

Part 2 - Using the Markdown in a Roll20 Game

Once you have installed the API scripts, launch the game on Roll20. Follow the steps below to start using the markdown styling in-game.

A. Getting Started

Create a new "Handout" named "Style Sheet" and in the "GM Notes" place:

[css]
h1 {color: red;}

Save changes. In the "Description & Notes" section you should see the processed CSS

[css](-LxpMeYSNUYwZIVXxguT)
h1 {color: red;}

NOTE: The "-LxpMeYSNUYwZIVXxguT"` part is the object id for your handout. It will not be the same as you see in this example. That is the "link" for this style sheet. Copy it to the clipboard.

Create a new "Handout" named "Markdown Handout" and in the "GM Notes" place:

[md]
[css](-LxpMeYSNUYwZIVXxguT)
# This Heading should be red.

(You should paste in what you copied to the clipboard to the second line.)

NOTE: The "-LxpMeYSNUYwZIVXxguT"` part is the object id for your handout. It will not be the same as you see in this example.

Save changes.

In the "Description & Notes" section you should see the processed Markdown. It should be large red text reading:

This Heading should be red.

B. Switching to HERO System Styling

If all has worked correctly in the previous steps, do the following.

Open the HERO-CSS-Markdown file (https://github.com/Villain1nGlasses/HeroMarkdown/blob/main/HERO-CSS-Markdown.css) and copy/paste everything to the "GM Notes" section of the "Style Sheet" "Handout". Delete or overwrite the text that reads:

[css]
h1 {color: red;}

Save changes. In the "Description & Notes" section you should see the processed CSS

[css](-LxpMeYSNUYwZIVXxguT) <-- will not be this code, was replaced earlier.

bg {
	padding: 30px;
	padding-top: 1px;
	margin: -30px;
	max-width: 800px;
}

etc.

Now, open the HERO Example Markdown file (https://github.com/Villain1nGlasses/HeroMarkdown/blob/main/HERO-Example.md) and copy/paste everything to the "GM Notes" section of the "Markdown Handout" "Handout" below the two lines that read:

[md]
[css](-LxpMeYSNUYwZIVXxguT) <-- will not be this code, was replaced earlier

Delete or overwrite the line that reads:

# This Heading should be red.

Save changes.

In the "Description & Notes" section you should see the processed Markdown with a starry background, white text, and and Alien image.



Example Handout in Roll20

Overview of the Markdown Available in Roll20

heromarkdown's People

Contributors

villain1nglasses avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.