estrik ripley

Would you like to react to this message? Create an account in a few clicks or log in to continue.

no longer rp


    Literature Item Suggestion Format

    Lone
    Lone
    Esoteric Servers
    Esoteric Servers


    Posts : 155
    Join Date : 2011-09-29
    Character Name : Alan White

    Literature Item Suggestion Format Empty Literature Item Suggestion Format

    Post by Lone Thu Dec 22, 2011 3:04 am

    <:: Literature ::>

    Literature items come in various forms, such as personal journals, diaries, handbooks, or even short novels. These books use HTML for their coding, and are fairly easy to write. I've provided an example and a blank book format for you below, along with a few examples of things you can do within a book. Books cannot be written in-game, and must be added like any other in-game item. (We're currently trying to make in-game journals/books, similar to a notepad in Cider 2.) The book base can also be used to show pictures, videos, and pretty much anything else you can do with HTML, as the book is pretty much an HTML page itself.



    <:: An Example Of A Book ::>

    Code:
    --[[

    --]]

    ITEM = openAura.item:New();
    ITEM.base = "book_base";
    ITEM.name = "Little Red";
    ITEM.cost = 6;
    ITEM.model = "models/props_lab/binderredlabel.mdl";
    ITEM.uniqueID = "book_lr";
    ITEM.business = true;
    ITEM.description = "A story book filled with colorful pictures.";
    ITEM.bookInformation = [[
    <font color='red' size='4'>Written by Benjamin Ishibashi.</font>

    Once upon a time, there was a little girl who lived in a village near the forest.
    Whenever, she went out, the little girl wore a red riding cloak, so everyone in the village called her Little Red Riding Hood.

    One morning, Little Red Riding Hood asked her mother if she could go to visit her grandmother.
    "That's a good idea!", her mother said. So they packed a nice basket for Little Red Riding Hood to take to her grandmother.

    The grandmother lived out in the woods, a half hour from the village. When Little Red entered the woods a wolf came up to her.
    She did not know what a wicked animal he was, and was not afraid of him.

    "Good day to you, Little Red.", he said. "Thank you, wolf!", she replied. "Where are you going so early, Little Red?"
    "To grandmothers.", she replied. "And what are you carrying under your apron?" He asked.
    "Grandmother is sick and weak, and I am taking her some cake and wine. We baked yesterday, and they should give her strength."

    The wolf thought to himself, "now there is a tasty bite for me. I'll go eat the grandmother, haha."
    "Little Red, just where does your grandmother live?", he asked.

    She told him that her house is a good half hour from here in the woods.
    "A half hour? Screw that." he said, and then he ate the bitch. The end.

    The moral of the story is to never approach talking wolves.
    ]];

    openAura.item:Register(ITEM);

    <:: An Example Of A Picture Made With The Literature Base ::>

    Code:
    --[[

    --]]

    ITEM = openAura.item:New();
    ITEM.base = "book_base";
    ITEM.name = "Outlands 2015";
    ITEM.model = "models/props_lab/frame002a.mdl";
    ITEM.uniqueID = "book_out";
    ITEM.description = "A photo with a bunch of resistance members on it.";
    ITEM.bookInformation = [[
       <img src = "http://img31.imageshack.us/img31/2064/resistancet.jpg" alt = "[A photo with a bunch of resistance members on it]."/>
    ]];

    openAura.item:Register(ITEM);

    <:: A Blank Literature File ::>

    Code:
    --[[

    --]]

    ITEM = openAura.item:New();
    ITEM.base = "book_base"; --Base of the item, don't change this.
    ITEM.name = "(Fill This Out)"; --Name of the item.
    ITEM.cost = (Fill This Out); --Remove this line if you don't want to give the book any value.
    ITEM.model = "(Fill This Out)"; --Model for the item.
    ITEM.uniqueID = "book_(Fill This Out)"; --A custom "ID" for the item.
    ITEM.business = (true/false); --Do you want this book to be buyable?
    ITEM.description = "(Fill This Out)"; --A short description for the item.
    ITEM.bookInformation = [[
    (Text Goes Here)
    ]];

    openAura.item:Register(ITEM);

    Don't forget to remove the ( )s!

    <:: Known Proprieties For The Literature Base ::>

    Code:
    <img src = "(Fill This Out)" alt = "[(Fill This Out)]."/> --Direct the book to an image's URL/possible file path. Alt = Alternate display (Words) in the event that the picture is unavailable.

    <font size = '(+/-)(#)'>(Fill This Out)</font> --Change the size of the text.

    <font color='(Color')'>(Fill This Out</font> --Change the color of the text.

    <font color='(Color)' size='(#)'>(Fill This Out)</font> --Change the size and color of the text.

    [NOTE: Please start a topic with "Literature Item Suggestion:" for this type of submission.]

      Current date/time is Wed May 01, 2024 8:00 pm