If you can be bothered, could you please NOT allow Mo' Creatures' mobs to activate stone pressure pads? (with the exception of Ogres and other large mobs) I have my doors set up with a stone pressure plate on the outside, and a wooden one on the inside. I really like this mod, but I REALLY want a comparably easy security system as well.
All you people should move to Australia, there are far fewer douches here. I have only seen about 3 in about 3 months of play, but the way you talk there's at least 1 in every game.
Trying to make a simple, text based RPG to get used to java, and my else if is not working
import java.util.Scanner;
public class Stats {
public static void main(String[] args) {
//Scanner = new Scanner(System.in);
int healthStat, charismaStat, strengthStat;
int roll, monsterHealth;
roll = (int) (Math.random() * 100 + 1);
monsterHealth = (int) (Math.random() * 100 + 1);
int winAmount = roll - monsterHealth;
int loseAmount = monsterHealth - roll;
healthStat = 50;
charismaStat = 10;
strengthStat = 10;
System.out.println("Your Health is: " + healthStat);
System.out.println("Your Strength is: " + strengthStat);
System.out.println("Your Charisma is: " + charismaStat);
System.out.println("You have encountered a monster!");
System.out.println("Your attack dealt: " + roll);
do{
if(roll >= monsterHealth)
System.out.println("You have defeated the monster with: " + winAmount);
else /*if(roll < monsterHealth)*/;
System.out.println("You have not defeated the monster, it has: " + loseAmount + "hp remaining");
}while(roll < monsterHealth);
}
}
quotes are intentional, haven't learned how to throw,catch
Issue is that when the 'if' is activated, the 'else' is taken as part of it, but if it's just the 'else' only it reacts.
When I try to use java.util.Scanner it doesn't work properly and just gives me error messages.(using name as Scanner variable)
Also, if you have any tips as to improve my particularities, share.
0
0
The Sun is down
0
Import terrain.png
Close WinRar
Open minecraft.net
Go into server
???
Profit!
0
Also: TEACH ME!!!
0
Example:
etc...
0
0
/indev/ Veteran (y/n):y
Do you agree to abide by the Rules (y/n):y
Referrer (if referred):
0
0
0
0
'troll.exe' is not a valid command or file
trollface.png
0
0
quotes are intentional, haven't learned how to throw,catch
Issue is that when the 'if' is activated, the 'else' is taken as part of it, but if it's just the 'else' only it reacts.
When I try to use java.util.Scanner it doesn't work properly and just gives me error messages.(using name as Scanner variable)
Also, if you have any tips as to improve my particularities, share.
0
0
It's been ages since I've posted here, give it a go.