H
Hazedge
Guest
Hey guys, I wanted to know which program I can see and write the monsters AI?
Last edited:
if (self.varDC != 0) {
return
}
if (rand() % 3 == 0) {
return
}
if (self.hp < 3) {
if (self.varDD == 1) {
if (rand() % 3 == 0) {
if (rand() % 3 == 0) {
targetadv(0, 200, 0, 229)
domoveid(4)
}
else {
target(201)
domoveid(0)
}
}
else if (rand() % 2 == 0) {
target(201)
domoveid(5)
}
else if (rand() % 3 != 0) {
target(200)
domoveid(1)
}
else {
if (self.status == POISON) {
if (rand() % 2 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == BLIND) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == SILENCE) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
target(200)
domoveid(1)
}
}
else if (rand() % 3 == 0) {
if (rand() % 3 == 0) {
targetadv(0, 200, 0, 229)
domoveid(3)
}
else {
target(201)
domoveid(0)
}
}
else if (rand() % 2 == 0) {
if (rand() % 3 != 0) {
target(200)
domoveid(1)
}
else {
if (self.status == POISON) {
if (rand() % 2 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == BLIND) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == SILENCE) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
target(200)
domoveid(1)
}
}
else {
target(201)
domoveid(5)
}
}
else if (self.hp < 6) {
if (rand() % 2 == 0) {
if (self.status == POISON) {
if (rand() % 2 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == BLIND) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == SILENCE) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
}
if (self.varDD == 0) {
if (character.alive == SQUALL) {
self.varDD = 1
target(200)
domoveid(9)
target(0)
domoveid(5)
return
}
}
if (rand() % 3 != 0) {
target(201)
domoveid(0)
}
else if (rand() % 3 == 0) {
target(201)
domoveid(5)
}
else {
targetadv(0, 200, 0, 229)
domoveid(3)
}
}
else {
if (self.varDF <= 3) {
self.varDF += 1
if (self.varDF == 3) {
self.varDF += 2
target(200)
domoveid(6)
}
}
if (rand() % 2 == 0) {
if (self.status == POISON) {
if (rand() % 2 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == BLIND) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
if (self.status == SILENCE) {
if (rand() % 3 == 0) {
target(200)
domoveid(1)
return
}
}
}
target(201)
choose(0, 0, 3)
}