forked from Zorn192/AutoTrimps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuture
52 lines (37 loc) · 1.16 KB
/
future
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
function autostance() {
if in h stance hhealth = gethealth
else hhealth = 0
if in x stance xhealth = gethealth
else xhealth = 0
if in d stance dhealth = gethealth
else dhealth = 0
if hhealth = 0 and xhealth != 0 hhealth = xhealth * 4
else if hhealth = 0 and dhealth != 0 hhealth = dhealth * 8
if xhealth = 0 and hhealth != 0 xhealth = hhealth / 4
else if xhealth = 0 and dhealth != 0 xhealth = dhealth * 2
if dhealth = 0 and hhealth != 0 dhealth = hhealth / 8
else if dhealth = 0 and xhealth != 0 dhealth = xhealth / 2
//basic
function stanced() {
if dhealth is > 20% of dmaxhealth use d
else if dhealth is <= 20% of dmaxhealth use stancex();
}
function stancex() {
if xhealth is > 20% of xmaxhealth and dhealth is <=20% of dmaxhealth use x
else if xhealth is <= 20% of xmaxhealth use stanceh();
}
function stanceh() {
if xhealth is <= 20% of xmaxhealth use h
}
stanced();
//advanced
getenemyattack();
if d
if getenemyattack() >= dhealth use x
if x
if getenemyattack() >= xhealth use h
else if getenemyattack < xhealth * 3 use d
if h
if getenemyattack() < hhealth * 9 use d
else use h
};