i want to make a simple text based rpg with c++ and need a little help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

i want to make a simple text based rpg with c++ and need a little help

Hi everybody.I think i got basic stuff in c++ and wanted to make a simple text based rpg.can someone tell me how to make classes for objects or give me some tutorial link .Thank you Edit: class giant { giant(int cLevel) { if(cLevel>=1 && cLevel<=10) { string loot[]={"Leather Boot","Leather Sword","Leather Armor", "Leather Helmet", "Leather Pant"}; giant.hp=100 ; giant.armor=20; giant.atcspeed=0,5; giant.atc=25; } if(cLevel>10 && cLevel<=20) { string loot[]={"Iron Boot","Iron Sword","Iron Steel", "Iron Helmet", "Iron Pant"}; giant.hp=250 ; giant.armor=50; giant.atcspeed=0,6; giant.atc=50; } if(cLevel>20 && cLevel<=30) { string loot[]={"Steel Boot","Steel Sword","Steel Armor", "Steel Helmet", "Steel Pant"}; giant.hp=500 ; giant.armor=70; giant.atcspeed=0,7; giant.atc=70; } if(cLevel>30 && cLevel<=40) { string loot[]={"Diamond Boot","Diamond Sword","Diamond Armor", "Diamond Helmet", "Diamond Pant"}; giant.hp=1000 ; giant.armor=100; giant.atcspeed=0,8; giant.atc=100; } } }; i made something like this but not sure how to do the rest

18th Mar 2017, 3:58 PM
Furkan Kabak
Furkan Kabak - avatar
4 Answers
0
thank you
18th Mar 2017, 4:03 PM
Furkan Kabak
Furkan Kabak - avatar
0
dude are you my hero or something :D
18th Mar 2017, 4:08 PM
Furkan Kabak
Furkan Kabak - avatar
0
Lol i did that too but lack of english strikes hard you know
18th Mar 2017, 4:10 PM
Furkan Kabak
Furkan Kabak - avatar
0
where are the answers???
17th Apr 2020, 4:12 PM
keenen