Miscellaneous Forums > Gameplay

[FFVIII-PCSteam] Problems with Ifrit program

(1/4) > >>

Hazedge:

As the imagem shows, I'm trying to edit Iguion AI.
I'm trying to remove his Auto-Reflect even with Carbuncle, but everytime I try to remove anything in Counter tab it gives me this error.
The Counter tab had this code:
Spoiler: show
--- Code: ---if (gfStolen != 204) {
    autostatus(23, 0)
}
battle.var60 += 1
--- End code ---


In Turn tab there was this (gfStolen != 204) too but I could remove it without the error, and now if I try to put it back it gives me the same error.
Is it not possible to remove? Or I need to do something else to make it work?
This is what I did in Turn tab:
Spoiler: show
--- Code: ---if (self.hp >= 8) {
if (rand() % 2 == 0) {
if (enemy.alive == 2) {
        target(204)
        domoveid(2)
return
}
}
else {
target(201)
domoveid(0)
return
}
}
if (self.hp > 4) {
if (rand() % 2 == 0) {
if (enemy.alive == 2) {
        target(204)
        domoveid(2)
return
}
}
else if (rand() % 2 == 0){
target(201)
domoveid(0)
target(201)
domoveid(0)
return
}
else {
target(201)
domoveid(0)
return
}
}
if (self.hp <= 4) {
self.varDC += 1
if (self.varDC >= 3) {
target(204)
domoveid(1)
return
}
if (rand() % 2 == 0) {
if (enemy.alive == 2) {
        target(204)
        domoveid(2)
return
}
}
else if (rand() % 2 == 0){
target(201)
domoveid(0)
target(201)
domoveid(0)
return
}
else {
target(201)
domoveid(0)
return
}
}
--- End code ---

Girl next door:
You can't let the tab empty. You just have tu let the formula "battle.var60 += 1" alone.

Hazedge:

--- Quote from: Girl next door on 2019-07-31 01:04:00 ---You can't let the tab empty. You just have tu let the formula "battle.var60 += 1" alone.

--- End quote ---
Unfortunately that didn't work as well... It keep saying an error related to that gfstolen code.
In situations like that, veteran modders don't edit anything to avoid getting these errors or theres something else we can do?

Girl next door:
I just did it to verify and it works. What did you do exactly ?

Leythalknight:
Try replacing the script in the Counter tab with "return" (no quotes) and see if it compiles. If so, you can then add battle.var60 += 1 back to the Counter script afterward if you want.

Navigation

[0] Message Index

[#] Next page

Go to full version