RPG Tool

Developer
Size
3,422 Kb
Views
18,216

How do I make an rpg tool?

What is a rpg tool? How do you make a rpg tool? This script and codes were developed by Jarad Light on 09 October 2022, Sunday.

RPG Tool Previews

RPG Tool - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>RPG Tool</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { user-select: none;
}
#container { margin: 10px auto; width: 100%; max-width: 440px;
}
#container#mana { color: blue;
}
#new-turn { float: right; padding: 10px; background: green; cursor: pointer;
}
#mana { float: left; padding: 10px; background-color: #333; font-weight: bold; color: white;
}
#mana:before { content: "Current Mana: ";
}
#menu { overflow: hidden; margin: 0 0 10px 0;
}
ul { color: #fff;
}
ul li { cursor: pointer; opacity: 0.8; margin: 0 0 10px 0; border-radius: 6px; background-color: #333;
}
ul li .header { font-weight: bold; border-radius: 6px 6px 0 0; background-color: #111; padding: 10px;
}
ul li .header span { float: right; color: white;
}
ul li .header span:before { content: "Cost: ";
}
ul li .flavour { padding: 10px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="container">
<div id="menu"> <div id="mana" data-regen="3">10</div> <div id="new-turn">New Turn</div>
</div>
<ul> <li data-cost="3"> <h3 class="header">Swift Strike<span class="cost">3</span></h3> <p class="flavour">Attack your enemy with your weapon.</p> </li> <li data-cost="5"> <h3 class="header">Bandage <span class="cost">5</span></h3> <p class="flavour">Cleanse your wounds.</p> </li> <li data-cost="2"> <h3 class="header">Rally<span class="cost">2</span></h3> <p class="flavour">Boost morale of nearby allies.</p> </li>
</ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

RPG Tool - Script Codes CSS Codes

* { user-select: none;
}
#container { margin: 10px auto; width: 100%; max-width: 440px;
}
#container#mana { color: blue;
}
#new-turn { float: right; padding: 10px; background: green; cursor: pointer;
}
#mana { float: left; padding: 10px; background-color: #333; font-weight: bold; color: white;
}
#mana:before { content: "Current Mana: ";
}
#menu { overflow: hidden; margin: 0 0 10px 0;
}
ul { color: #fff;
}
ul li { cursor: pointer; opacity: 0.8; margin: 0 0 10px 0; border-radius: 6px; background-color: #333;
}
ul li .header { font-weight: bold; border-radius: 6px 6px 0 0; background-color: #111; padding: 10px;
}
ul li .header span { float: right; color: white;
}
ul li .header span:before { content: "Cost: ";
}
ul li .flavour { padding: 10px;
}

RPG Tool - Script Codes JS Codes

 $('li').hover( function() { $(this).animate({opacity:1},100); }, function() { $(this).animate({opacity:0.8},100); }
);
$('li').click(function(){ var mana = parseInt($("#mana").html()); var cost = $(this).attr("data-cost"); if(mana >= cost){ mana -= cost; $('#mana').html(mana); } else { alert("You don't have enough mana!"); //$('#mana').css("color","#d22"); //$('span').animate({opacity: 0.0},100); } refreshCounts();
});
$("#new-turn").click(function(){ var mana = parseInt($("#mana").html()); var regen = parseInt($("#mana").attr("data-regen")); $("#mana").html( mana+regen ); refreshCounts();
});
function refreshCounts(){ var mana = parseInt($("#mana").html()); $(".cost").each(function(){ var cost = parseInt($(this).html()); if ( cost > mana ){ $(this).parent().css("background-color","#dd2222"); } else { $(this).parent().css("background-color","#111"); } });
}
RPG Tool - Script Codes
RPG Tool - Script Codes
Home Page Home
Developer Jarad Light
Username jaradlight
Uploaded October 09, 2022
Rating 3
Size 3,422 Kb
Views 18,216
Do you need developer help for RPG Tool?

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!

Jarad Light (jaradlight) Script Codes
Create amazing web content 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!