-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.cpp
More file actions
59 lines (44 loc) · 1.9 KB
/
Copy pathdialog.cpp
File metadata and controls
59 lines (44 loc) · 1.9 KB
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
// программа о разговоре с кузнецом. В этой программе мы сможем вибирать варианты продолжения диалогов
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "ru");
int variant; //вариант продолжения диалога.
int attitude;//отношение между двумя персонажами.
int authority;//авторитет и харизматичность героя в своих окраинах.
int honesty;
//характеристики главного героя и персанажа из игры.
honesty = 5;
attitude = 10;
authority = 20;
cout << "Hello wanderer.I am Andre's blacksmith. What do you need?" << endl;
cout << "1.Let's bargain." << endl;
cout << "2. I carved out your village ..." << endl;
cout << "3. Rumors that you are dealing in illegal weapons ..." << endl;
cout << "4. No, nothing is needed. Farewell." << endl;
cin >> variant;
switch (variant) //кейсы для осуществления выбора вариантов.
{
case 1:
cout << "Okay. I have a couple of items for sale." << endl;
break;
case 2:
if (attitude >= 10 && authority>=25)
cout << "I hope you're kidding..." << endl;
else
cout << "Here is a dog ... I have to fill you up with my bare hands!" << endl;
break;
case 3:
if (honesty >= 5)
cout << "There were such things. I'm sorry." << endl;
else
cout << "I don’t do that. For I am an ordinary blacksmith." << endl;
break;
case 4:
cout << "Since nothing is so nothing ..." << endl;
break;
default:
cout << "What do you want from me at all?" << endl;
}
}