Skip to content

Commit

Permalink
Update future
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorn192 authored Jun 12, 2019
1 parent 9cd85e5 commit c05efe8
Showing 1 changed file with 49 additions and 12 deletions.
61 changes: 49 additions & 12 deletions future
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

};

0 comments on commit c05efe8

Please sign in to comment.