coming soon to the android marketplace
3 posters
Page 1 of 1
coming soon to the android marketplace
just putting this up here so I can transfer it to my dev laptop, as i just found it on my main pc after I thought I had deleted it
- Code:
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
void NPC();
void namegen();
cout << "\n\n\n\n\n\n\nMenu\n";
cout << "1)NPC gen\n2)Name Gen\n";
int choice;
cout << "\nChoice: ";
cin >> choice;
switch (choice)
{
case 1:
cout << "\nNPC Generator\n\n";
NPC();
case 2:
cout << "\nName Generator\n\n";
namegen();
default:
cout << "\nwrong choice\n\n";
main();
}
int delay;
cin >> delay;
return 0;
}
void NPC()
{
srand(time(0));
//Strength
int str1 = rand();
int str2 = rand();
int str3 = rand();
str1 = (str1 % 6) + 1;
str2 = (str1 % 6) + 1;
str3 = (str1 % 6) + 1;
cout << "Strength: " << str1 + str2 + str3 << endl;
//Intelligence
int int1 = rand();
int int2 = rand();
int int3 = rand();
int1 = (int1 % 6) + 1;
int2 = (int1 % 6) + 1;
int3 = (int1 % 6) + 1;
cout << "Intelligence: " << int1 + int2 + int3 << endl;
//Wisdom
int wis1 = rand();
int wis2 = rand();
int wis3 = rand();
wis1 = (wis1 % 6) + 1;
wis2 = (wis1 % 6) + 1;
wis3 = (wis1 % 6) + 1;
cout << "Wisdom: " << wis1 + wis2 + wis3 << endl;
//Dexterity
int dex1 = rand();
int dex2 = rand();
int dex3 = rand();
dex1 = (dex1 % 6) + 1;
dex2 = (dex1 % 6) + 1;
dex3 = (dex1 % 6) + 1;
cout << "Dexterity: " << dex1 + dex2 + dex3 << endl;
//Constitution
int con1 = rand();
int con2 = rand();
int con3 = rand();
con1 = (con1 % 6) + 1;
con2 = (con1 % 6) + 1;
con3 = (con1 % 6) + 1;
cout << "Constitution: " << con1 + con2 + con3 << endl;
//Charisma
int cha1 = rand();
int cha2 = rand();
int cha3 = rand();
cha1 = (cha1 % 6) + 1;
cha2 = (cha1 % 6) + 1;
cha3 = (cha1 % 6) + 1;
int charisma = cha1 + cha2 + cha3;
int chamod;
if (charisma <= 1)
chamod == -5;
cout << "Charisma: " << charisma << " ";
cout << chamod << endl;
main();
}
void namegen()
{
//name generator
string a1("A");
string a2("Ar");
string a3("An");
string b1("red");
string b2("sant");
string b3("do");
cout << "" << a1 + b2 << "\n\n\n";
main();
}
Re: coming soon to the android marketplace
Waitwaitwait... A Character Generator?
Nut_Column- Commander
- Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18
Re: coming soon to the android marketplace
yes, so that I don't have to constantly be rolling for crap
and while I'm at it, here Have a homework generator I just made:
*updated:
math 12 trig ratios.exe
and while I'm at it, here Have a homework generator I just made:
*updated:
math 12 trig ratios.exe
Re: coming soon to the android marketplace
Neat. Also, 888'th post. Lolwut?
Nut_Column- Commander
- Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18
Re: coming soon to the android marketplace
note to self
http://www.makeuseof.com/tag/write-google-android-application/
http://www.makeuseof.com/tag/write-google-android-application/
Re: coming soon to the android marketplace
Yeah. I am in Fairview all ready to post, and it isn't there. Like what the heck!?
Nut_Column- Commander
- Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Sat Dec 09, 2017 11:12 am by Quantum Rain
» My Ships and Renderings
Fri Nov 10, 2017 4:12 am by ToaKaita47
» Corrupt-A-Wish
Fri Nov 10, 2017 3:59 am by ToaKaita47
» Earth-Link Origins - Teaser Trailer
Fri Nov 10, 2017 3:52 am by ToaKaita47
» Rufetic Federation Armed Forces
Fri May 26, 2017 4:57 am by Comrade Greiv
» Virisian Arsenal & Armed Forces
Thu May 25, 2017 10:56 am by Quantum Rain
» The data is back
Mon Jan 25, 2016 3:10 pm by SSJ Data
» King of the Hill
Sat Jan 02, 2016 3:27 pm by SSJ Data
» PlayByPost DnD
Wed Sep 16, 2015 4:21 am by Angusm3
» War and Peace: Remaking a Nation
Sat Jul 04, 2015 10:03 am by Comrade Greiv