Skip to content
Permalink
Browse files

DnD Project Finsihedish

  • Loading branch information
smz11006 committed Nov 19, 2015
1 parent 5482baf commit 19ad45304456f31f91ec557c34e9cc5a31c1db7f
Showing 695 changed files with 25,816 additions and 52 deletions.
@@ -0,0 +1,131 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Unity Web Player | DnD Project</title>
<script type='text/javascript' src='https://ssl-webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/jquery.min.js'></script>
<script type="text/javascript">
<!--
var unityObjectUrl = "http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject2.js";
if (document.location.protocol == 'https:')
unityObjectUrl = unityObjectUrl.replace("http://", "https://ssl-");
document.write('<script type="text\/javascript" src="' + unityObjectUrl + '"><\/script>');
-->
</script>
<script type="text/javascript">
<!--
var config = {
width: 960,
height: 600,
params: { enableDebugging:"0" }

};
var u = new UnityObject2(config);

jQuery(function() {

var $missingScreen = jQuery("#unityPlayer").find(".missing");
var $brokenScreen = jQuery("#unityPlayer").find(".broken");
$missingScreen.hide();
$brokenScreen.hide();

u.observeProgress(function (progress) {
switch(progress.pluginStatus) {
case "broken":
$brokenScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$brokenScreen.show();
break;
case "missing":
$missingScreen.find("a").click(function (e) {
e.stopPropagation();
e.preventDefault();
u.installPlugin();
return false;
});
$missingScreen.show();
break;
case "installed":
$missingScreen.remove();
break;
case "first":
break;
}
});
u.initPlugin(jQuery("#unityPlayer")[0], "DnD_CharGen.unity3d");
});
-->
</script>
<style type="text/css">
<!--
body {
font-family: Helvetica, Verdana, Arial, sans-serif;
background-color: black;
color: white;
text-align: center;
}
a:link, a:visited {
color: #bfbfbf;
}
a:active, a:hover {
color: #bfbfbf;
}
p.header {
font-size: small;
}
p.header span {
font-weight: bold;
}
p.footer {
font-size: x-small;
}
div.content {
margin: auto;
width: 960px;
}
div.broken,
div.missing {
margin: auto;
position: relative;
top: 50%;
width: 193px;
}
div.broken a,
div.missing a {
height: 63px;
position: relative;
top: -31px;
}
div.broken img,
div.missing img {
border-width: 0px;
}
div.broken {
display: none;
}
div#unityPlayer {
cursor: default;
height: 600px;
width: 960px;
}
-->
</style>
</head>
<body>
<p class="header"><span>Unity Web Player | </span>DnD Project</p>
<div class="content">
<div id="unityPlayer">
<div class="missing">
<a href="http://unity3d.com/webplayer/" title="Unity Web Player. Install now!">
<img alt="Unity Web Player. Install now!" src="http://webplayer.unity3d.com/installation/getunity.png" width="193" height="63" />
</a>
</div>
</div>
</div>
<p class="footer">&laquo; created with <a href="http://unity3d.com/unity/" title="Go to unity3d.com">Unity</a> &raquo;</p>
</body>
</html>
Binary file not shown.
@@ -1,17 +1,26 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Cha : MonoBehaviour {
//Base Values
public int ChaValue = 0;
public int ChaValue1 = 0;
public int ChaValue2 = 0;
public int ChaValue3 = 0;
private string ChaString;
public static string ChaString;

Text updates;

void Awake()
{
updates = GetComponent<Text>();
ChaString = "Cha:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
ChaValue1 = Random.Range(1, 6);
@@ -27,6 +36,6 @@ public class RNG_Cha : MonoBehaviour {
// Update is called once per frame
void Update()
{

updates.text = "Cha: " + ChaString;
}
}
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Dex : MonoBehaviour
{
@@ -8,11 +9,18 @@ public class RNG_Dex : MonoBehaviour
public int DexValue1 = 0;
public int DexValue2 = 0;
public int DexValue3 = 0;
private string DexString;
public static string DexString;

Text updates;
void Awake()
{
updates = GetComponent<Text>();
DexString = "Dex:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
DexValue1 = Random.Range(1, 6);
@@ -28,6 +36,8 @@ public class RNG_Dex : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Dex: " + DexString;


}
}
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_HP : MonoBehaviour {
//HP Base Values
@@ -23,9 +24,17 @@ public class RNG_HP : MonoBehaviour {

private string ConString;

Text updates;

void Awake()
{
updates = GetComponent<Text>();
HPString = "HP:";

}

// Use this for initialization
void Start()
public void Roll()
{
//HP Rolls
HPValue1 = Random.Range(1, 8);
@@ -53,5 +62,7 @@ public class RNG_HP : MonoBehaviour {
// Update is called once per frame
void Update()
{
updates.text = "HP: " + HPString;

}
}
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Int : MonoBehaviour
{
@@ -8,11 +9,17 @@ public class RNG_Int : MonoBehaviour
public int IntValue1 = 0;
public int IntValue2 = 0;
public int IntValue3 = 0;
private string IntString;
public static string IntString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
IntString = "Int:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
IntValue1 = Random.Range(1, 6);
@@ -28,6 +35,7 @@ public class RNG_Int : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Int: " + IntString;

}
}
@@ -11,11 +11,19 @@ public class RNG_Str : MonoBehaviour {
public int StrValue1 = 0;
public int StrValue2 = 0;
public int StrValue3 = 0;
private string StrString;
public static string StrString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
StrString = "Str:";

}


// Use this for initialization
void Start() {
public void Roll()
{
//Strength Rolls
StrValue1 = Random.Range(1, 6);
StrValue2 = Random.Range(1, 6);
@@ -33,18 +41,11 @@ public class RNG_Str : MonoBehaviour {
strText.text = StrString;
}

// Use this for initialization
void start ()
{
//setPropertyModification(RNG_Str as Text as strText);
// UnityEditor.PrefabUtility.ReplacePrefab(strText, strText);
//strText.guiText.
}


// Update is called once per frame
void Update()
{
updates.text = "Str: " + StrString;

}
}
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class RNG_Wis : MonoBehaviour
{
@@ -8,11 +9,17 @@ public class RNG_Wis : MonoBehaviour
public int WisValue1 = 0;
public int WisValue2 = 0;
public int WisValue3 = 0;
private string WisString;
public static string WisString;
Text updates;
void Awake()
{
updates = GetComponent<Text>();
WisString = "Wis:";

}

// Use this for initialization
void Start()
public void Roll()
{
//Rolls
WisValue1 = Random.Range(1, 6);
@@ -28,6 +35,7 @@ public class RNG_Wis : MonoBehaviour
// Update is called once per frame
void Update()
{
updates.text = "Wis: " + WisString;

}
}
Binary file not shown.

0 comments on commit 19ad453

Please sign in to comment.
You can’t perform that action at this time.