Final Exodus: Dark Reality
Would you like to react to this message? Create an account in a few clicks or log in to continue.

coming soon to the android marketplace

3 posters

Go down

coming soon to the android marketplace Empty coming soon to the android marketplace

Post by Angusm3 Fri Oct 28, 2011 11:04 am

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(); 
             
    }
Angusm3
Angusm3
Administrator
Administrator

Male Number of posts : 1244
Age : 29
Location : right behind you
Reputation : 5
Registration date : 2010-12-11

http://www.treeforge.co/

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Nut_Column Fri Oct 28, 2011 12:30 pm

Waitwaitwait... A Character Generator?
Nut_Column
Nut_Column
Commander
Commander

Male Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Angusm3 Fri Oct 28, 2011 1:33 pm

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

Angusm3
Angusm3
Administrator
Administrator

Male Number of posts : 1244
Age : 29
Location : right behind you
Reputation : 5
Registration date : 2010-12-11

http://www.treeforge.co/

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Nut_Column Fri Oct 28, 2011 2:16 pm

Neat. Also, 888'th post. Lolwut?
Nut_Column
Nut_Column
Commander
Commander

Male Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Angusm3 Fri Oct 28, 2011 3:37 pm

oh and this:
2 bit tetris theme
Angusm3
Angusm3
Administrator
Administrator

Male Number of posts : 1244
Age : 29
Location : right behind you
Reputation : 5
Registration date : 2010-12-11

http://www.treeforge.co/

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Angusm3 Sat Oct 29, 2011 1:18 am

note to self

http://www.makeuseof.com/tag/write-google-android-application/
Angusm3
Angusm3
Administrator
Administrator

Male Number of posts : 1244
Age : 29
Location : right behind you
Reputation : 5
Registration date : 2010-12-11

http://www.treeforge.co/

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by agentaaa Sat Oct 29, 2011 3:17 pm

coming soon to the gathering

AngusM3's post in QFTSD
agentaaa
agentaaa
Administrator
Administrator

Female Number of posts : 3631
Age : 30
Location : lol, nice try, police people, you ain't getting it from me so easily
Reputation : 8
Registration date : 2009-01-13

http://Agentaaa.deviantart.com

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Nut_Column Sat Oct 29, 2011 4:08 pm

Yeah. I am in Fairview all ready to post, and it isn't there. Like what the heck!?
Nut_Column
Nut_Column
Commander
Commander

Male Number of posts : 1115
Age : 30
Location : Over there! *points*
Reputation : 3
Registration date : 2010-12-18

Back to top Go down

coming soon to the android marketplace Empty Re: coming soon to the android marketplace

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum