forked from Zorn192/AutoTrimps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,52 @@ | ||
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 | ||
function autostance() { | ||
|
||
if hhealth = 0 and xhealth != 0 hhealth = xhealth * 4 | ||
else if hhealth = 0 and dhealth != 0 hhealth = dhealth * 8 | ||
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 xhealth = 0 and hhealth != 0 xhealth = hhealth / 4 | ||
else if xhealth = 0 and dhealth != 0 xhealth = dhealth * 2 | ||
if hhealth = 0 and xhealth != 0 hhealth = xhealth * 4 | ||
else if hhealth = 0 and dhealth != 0 hhealth = dhealth * 8 | ||
|
||
if dhealth = 0 and hhealth != 0 dhealth = hhealth / 8 | ||
else if dhealth = 0 and xhealth != 0 dhealth = xhealth / 2 | ||
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 | ||
|
||
}; |