RPG Style Text Dialogue

2,635 Kb

How do I make an rpg style text dialogue?

What is a rpg style text dialogue? How do you make a rpg style text dialogue? This script and codes were developed by Jimmy Lin on 11 December 2022, Sunday.

RPG Style Text Dialogue Previews

RPG Style Text Dialogue - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>RPG Style Text Dialogue</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
<body> <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<div class="container-fluid"> <div>
<div class="quotes navbar-fixed-bottom" id="next"> <span class="quote"></span> </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>

RPG Style Text Dialogue - Script Codes CSS Codes

body { font-family: Times New Roman;
h1 { font-family: Lobster;
.quotes { background: blue; color: white; border-color: white; border-radius:10px; border-style: solid; margin-right:auto; margin-left:auto; margin-top:20px; margin-bottom:10px; width: 98%; padding:20px; height: 150px; outline-color: blue; outline-style: solid; outline-offset: 2px;
.quote{ font-size:30px;
.author{ font-size:20px; font-style:italic; padding-left:50px;

RPG Style Text Dialogue - Script Codes JS Codes

$(document).ready(function(){ var author; var num=0; var length; getQuote();
function getQuote(){ var quotes = ["Mal: We're not gonna die. We can't die, Bendis. You know why? Because we are so...very...pretty. We are just too pretty for God to let us die.", "Jayne: Ten percent of nuthin' is...let me do the math here...nuthin' into nuthin'...carry the nuthin'...", "River: No power in the 'verse can stop me", "Wash: I'm a leaf on the wind- watch how I soar", "Early: You know, with the exception of one deadly and unpredictable midget, this girl is the smallest cargo I've ever had to transport. Yet by far the most troublesome. Does that seem right to you?", "Mr. Universe: Can't stop the signal, Mal. Everything goes somewhere, and I go everywhere.", "Jayne: Shiny. Let's be bad guys.", "Jayne: Time for some thrilling heroics.", "Tracy: When you can't run, you crawl, and when you can't crawl - when you can't do that...", "Zoey: You find someone to carry you"] randomQuote = quotes[num]; length = quotes.length; $(".quote").text(randomQuote);
}; $("#next").on("click", function(){ getQuote(); console.log(num); num++; if (num == length) { num = 0; }; }); $("#next").keyup(function (e) { if (e.keyCode == 38) { getQuote(); console.log(num); num++; if (num == length) { num = 0; } } });
}); //End of $(document).ready(function(){});
RPG Style Text Dialogue - Script Codes
RPG Style Text Dialogue - Script Codes
Home Page Home
Developer Jimmy Lin
Username odylic
Uploaded December 11, 2022
Rating 3
Size 2,635 Kb
Views 6,072
Do you need developer help for RPG Style Text Dialogue?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jimmy Lin (odylic) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!