-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheldenring3.sh
executable file
·61 lines (46 loc) · 1.01 KB
/
eldenring3.sh
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
#!/bin/bash
#two boss battles
echo "Welcome tarnished. Please select your starting class:
1 - Samurai
2 - Prisoner
3 - Prophet"
read class
case $class in
1)
type="Samurai"
hp=10
attack=20
;;
2)
type="Prisoner"
hp=20
attack=4
;;
3)
type="Prophet"
hp=30
attack=4
;;
esac
echo "You have chosen the $type class. Your HP is $hp and your attack is $attack."
#beast name
name= "Margit"
#first beast battle
beast=$(( $RANDOM % 2 ))
echo "Your first beast approaches. Prepare for battle. Pick a number between 0-1. (0/1)"
read tarnished
if [[ $beast == $tarnished ]]; then
echo "Beast Vanquished!"
else
echo "You Died"
fi
sleep 2
#two beast battle
echo "$name approaches. Prepare for battle. Pick a number between 0-9."
read tarnished
beast=$(( $RANDOM % 10 ))
if [[ $beast == $tarnished || $tarnished == "coffee" ]]; then
echo "Beast Vanquished! Congrats fellow tarnished"
else
echo "You Died"
fi