@c4syner/

Ultimate Alchemist

C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
// Ultimate Alchemist
#include <iostream>
#include <string>
using namespace std;

string wtlv;
string alchemyop1, alchemyop2;
string alchemy_restart;
/////////////////////////////////////////
const string earth = "-earth";
const string water = "-water";
const string fire = "-fire";
const string air = "-air";
const string pressure = "-pressure"; // Pressure equal to two earth or air.
const string lava = "-lava";
const string rain = "-rain";
const string earthquake = "-earthquake";
const string mountain = "-mountain";
const string mountain_range = "-mountain range";
const string life = "-life";
const string energy = "-energy";
const string volcano = "-volcano";
const string hydromill = "-hydromill";
const string plant = "-plant";
const string Time = "-time";
const string stone = "-stone";
const string windmill = "-windmill";
const string wind = "-wind";
const string sand = "-sand";
const string human = "-human";
const string glass = "-glass";
const string axe = "-axe";
const string tree = "-tree";
const string metal = "-metal";
const string wheel = "-wheel";
const string wood = "-wood";
const string car = "-car";
const string atomosphere = "-atmosphere";
const string farmer = "-farmer";
const string knife = "-knife";
const string field = "-field";
const string wheat = "-wheat";
const string corn = "-corn";
const string forest = "-forest";
const string wild_animal = "-animal";
const string cow = "-cow";
const string livestock = "-livestock";
const string flash = "-flash";
const string nuclear_energy = "-nuclear*energy";
const string wormhole = "-wormhole";
const string day = "-day";
const string night = "-night";
string allelements = earth + water + fire + air;
/////////////////////////////////////////
int instruct_option;
string play = "y";
void Instruct();
void Search();
void AlchemyRoom();
int main() {
	cout << "\t\tWelcome to The Searching Alchemist Alpha by C4 Studios!";
	cout << "\nYou will be directed to The Instructions!\nPress Enter to "
			"Continue...";
	cin.ignore();
	Instruct();
	return 0;
}
void Instruct() {
	cout << "\nYou can do one of two things!\n1. You can search for items to "
			"Combine or just to Gather\n2. You can Combine your current "
			"materials!\nWhat would you like to do?(Type 1 or 2)\n";
	cin >> instruct_option;
	switch (instruct_option) {
	case 1:
		Search();
		break;
	case 2:
		AlchemyRoom();
		break;
	default:
		cout << "\nYou Typed Incorrect Information";
		Instruct();
		break;
	}
}
void Search() {
	cout << "\nYou are in the Search Function";
}
void AlchemyRoom() {
	do {
		cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
		cout << "\nYou Have:\n" << allelements;
		cout << "\nWhat would you like to combine?\n\nNote(In Alpha you must "
				"put a minus before your element like: '-earth'\n\nAlso in two "
				"word objects you must put a '*' in between the words rather "
				"than a space.)\nElement 1:";
		cin >> alchemyop1;
		cout << "\nElement 2:";
		cin >> alchemyop2;
		//////////////////////////////////////////////////////////////////
		if ((alchemyop2 == earth && alchemyop1 == earth) ||
			(alchemyop2 == earth && alchemyop1 == earth)) {
			cout << "You made pressure!";
			allelements = allelements + pressure;
		} else if (
			(alchemyop2 == air && alchemyop1 == air) ||
			(alchemyop1 == air && alchemyop2 == air)) {
			cout << "You made wind!";
			allelements = allelements + wind;
		} else if (
			(alchemyop2 == earth && alchemyop1 == fire) ||
			(alchemyop1 == earth && alchemyop2 == fire)) {
			cout << "You made lava!";
			allelements = allelements + lava;
		} else if (
			(alchemyop2 == water && alchemyop1 == air) ||
			(alchemyop1 == water && alchemyop2 == air)) {
			cout << "You made rain!";
			allelements = allelements + rain;
		} else if (
			(alchemyop2 == earth && alchemyop1 == rain) ||
			(alchemyop1 == earth && alchemyop2 == rain)) {
			cout << "You made a plant!";
			allelements = allelements + plant;
		} else if (
			(alchemyop2 == water && alchemyop1 == earth) ||
			(alchemyop1 == water && alchemyop2 == earth)) {
			cout << "You made stone!";
			allelements = allelements + stone;
		} else if (
			(alchemyop2 == stone && alchemyop1 == wind) ||
			(alchemyop1 == stone && alchemyop2 == wind)) {
			cout << "You made sand!";
			allelements = allelements + sand;
		} else if (
			(alchemyop2 == sand && alchemyop1 == fire) ||
			(alchemyop1 == sand && alchemyop2 == fire)) {
			cout << "You made glass!";
			allelements = allelements + glass;
		} else if (
			(alchemyop2 == glass && alchemyop1 == sand) ||
			(alchemyop1 == glass && alchemyop2 == sand)) {
			cout << "You made time!";
			allelements = allelements + Time;
		} else if (
			(alchemyop2 == plant && alchemyop1 == Time) ||
			(alchemyop1 == plant && alchemyop2 == Time)) {
			cout << "You made a tree!";
			allelements = allelements + tree;
		} else if (
			(alchemyop2 == stone && alchemyop1 == tree) ||
			(alchemyop1 == stone && alchemyop2 == tree)) {
			cout << "You made an axe!";
			allelements = allelements + axe;
		} else if (
			(alchemyop2 == axe && alchemyop1 == tree) ||
			(alchemyop1 == axe && alchemyop2 == tree)) {
			cout << "You made wood!";
			allelements = allelements + wood;
		} else if (
			(alchemyop2 == stone && alchemyop1 == fire) ||
			(alchemyop1 == stone && alchemyop2 == fire)) {
			cout << "You made metal!";
			allelements = allelements + metal;
		} else if (
			(alchemyop2 == wood && alchemyop1 == metal) ||
			(alchemyop1 == wood && alchemyop2 == metal)) {
			cout << "You made a wheel!";
			allelements = allelements + wheel;
		} else if (
			(alchemyop2 == wood && alchemyop1 == wheel) ||
			(alchemyop1 == wood && alchemyop2 == wheel)) {
			cout << "You made a hydromill!";
			allelements = allelements + hydromill;
		} else if (
			(alchemyop2 == water && alchemyop1 == hydromill) ||
			(alchemyop1 == water && alchemyop2 == hydromill)) {
			cout << "You made energy!";
			allelements = allelements + energy;
		} else if (
			(alchemyop2 == water && alchemyop1 == energy) ||
			(alchemyop1 == water && alchemyop2 == energy)) {
			cout << "You made life!";
			allelements = allelements + life;
		} else if (
			(alchemyop2 == earth && alchemyop1 == life) ||
			(alchemyop1 == earth && alchemyop2 == life)) {
			cout << "You made a Human!";
			allelements = allelements + human;
		} else if (
			(alchemyop2 == metal && alchemyop1 == wheel) ||
			(alchemyop1 == wheel && alchemyop2 == metal)) {
			cout << "You made a car!";
			allelements = allelements + car;
		} else if (
			(alchemyop2 == wind && alchemyop1 == air) ||
			(alchemyop1 == wind && alchemyop2 == air)) {
			cout << "You made atomosphere!";
			allelements = allelements + atomosphere;
		} else if ((alchemyop2 == metal && alchemyop1 == metal)) {
			cout << "You made a knife!";
			allelements = allelements + knife; // Here And Down
		} else if (
			(alchemyop2 == human && alchemyop1 == plant) ||
			(alchemyop1 == human && alchemyop2 == plant)) {
			cout << "You made a Farmer!";
			allelements = allelements + farmer;
		} else if (
			(alchemyop2 == farmer && alchemyop1 == earth) ||
			(alchemyop1 == farmer && alchemyop2 == earth)) {
			cout << "You made a field!";
			allelements = allelements + field;
		} else if ((alchemyop2 == tree && alchemyop1 == tree)) {
			cout << "You made a forest!";
			allelements = allelements + forest;
		} else if (
			(alchemyop2 == forest && alchemyop1 == life) ||
			(alchemyop1 == forest && alchemyop2 == life)) {
			cout << "You made an animal!";
			allelements = allelements + wild_animal;
		} else if (
			(alchemyop2 == farmer && alchemyop1 == wild_animal) ||
			(alchemyop1 == farmer && alchemyop2 == wild_animal)) {
			cout << "You made livestock!";
			allelements = allelements + livestock;
		} else if (
			(alchemyop2 == field && alchemyop1 == Time) ||
			(alchemyop1 == field && alchemyop2 == Time)) {
			cout << "You made wheat and corn!";
			allelements = allelements + wheat + corn;
		} else if (
			(alchemyop2 == livestock && alchemyop1 == wheat) ||
			(alchemyop1 == livestock && alchemyop2 == wheat)) {
			cout << "You made a cow!";
			allelements = allelements + cow;
		} else if (
			(alchemyop2 == energy && alchemyop1 == pressure) ||
			(alchemyop1 == energy && alchemyop2 == pressure)) {
			cout << "You made nuclear energy!";
			allelements = allelements + nuclear_energy;
		} else if (
			(alchemyop2 == nuclear_energy && alchemyop1 == human) ||
			(alchemyop1 == nuclear_energy && alchemyop2 == human)) {
			cout << "You made The Flash!";
			allelements = allelements + flash;
		} else if (
			(alchemyop2 == flash && alchemyop1 == Time) ||
			(alchemyop1 == flash && alchemyop2 == Time)) {
			cout << "You made a wormhole!";
			allelements = allelements + wormhole;
		}
		cout << "\n\nKeep Combining? (y/n)\n";
		cin >> play;
		cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
				"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
	} while (play == "y");
	Instruct();
}

///////////////////////////////////////////////////////////////////