- Joined
- Sep 30, 2010
- Messages
- 4
- Reaction score
- 0
Ok, so I am in need of some major help. I have a basic knowledge in javascript plus some. I am wanting to make a generator/game button that will allow for two players to input their information(damage, health points, etc) and select whose attacking and whose defending. Using that information, the generator uses its functions to decide the damage taken, or if the defender avoided the attack.
This is to help my forum to replace the dice system which gets very ugly sometimes. Honestly, I need to know where to start and other essential information. I can give more details if you need.
Thanks,
Chris Hickingbottom
Edit::
Ok, sorry about that. I should have definitely put more information. Well, I thought to myself, "hey lets start with something simple." So, I tried to create an Earned Exp. Generator. I certainly don't think its working.
This is to help my forum to replace the dice system which gets very ugly sometimes. Honestly, I need to know where to start and other essential information. I can give more details if you need.
Thanks,
Chris Hickingbottom
Edit::
Ok, sorry about that. I should have definitely put more information. Well, I thought to myself, "hey lets start with something simple." So, I tried to create an Earned Exp. Generator. I certainly don't think its working.
<html>
<head>
<title>Earned Experience Generator</title>
<script type="text/javascript">
var level=prompt("Place your Level Here");
var a=level;
function writeRand() {
document.write(Math.ceil(Math.random()*101));
}
function writeA() {
document.write(writeRand()*a);
}
</script>
</head>
<body>
<a href="javascript:writeA()">Experience Calculator</a><br />
</body>
</html>
Last edited: