Posts: 76
Threads: 20
Joined: Apr 2012
Reputation:
0
I've created an AI script where the boss as double the HP of its normal value. I've used the "Monsters #1, if hidden/dead, brought in with their HP restored, suddenly". This works, I kill it once and the in-battle text shows up and it gets "revived", I kill it again and it dies like a boss. Now here lies the problem, I gave it two "phases"; physical attacks only (1st phase) and magical attacks only (2nd phase), but in both "lives" it uses the first "phase" part only. Does anyone have any ideal on how to make it not use or completely ignore the 1st phase on its second life and instead use the 2nd "phase" part only.
Posts: 3,975
Threads: 278
Joined: Oct 2011
Reputation:
65
When he dies you could set a variable to 1. Make a check at the beginning if the variable equals 0 (this will execute the first phase only when he did not died once) and then make a check if variable equals 1 for the second phase.
Posts: 1,633
Threads: 56
Joined: Apr 2014
Reputation:
12
That check exists for var bits(set or clear), for var values exist >= or <
Posts: 76
Threads: 20
Joined: Apr 2012
Reputation:
0
Okay, I've try placing "if the variable greater/equals 0" at the beginning of the 1st phase and nothing change. The boss still uses the 1st phase for both lives. I've also played with the bits "set/clear/toggle" among the var# and if the variable greater/equals #. The results are mix; the boss either doesn't do anything or ignores the second phase completely, sticks to the 1st phase only for both lives, becomes un-killable, ignores second life and dies, etc. I'll post the complete script, so it might be something that I scripted wrong within the AI script and it gets confused or something. At this point, I honestly don't know since I've try all that I could do. Original script below:
F0 EE EF EE ; Rand. spell: Battle or Special or Battle
FD ; Wait until the attack sequence is called upon again, then continue (reset targeting)
F0 EF EE EF ; Rand. spell: Special or Battle or Special
FE ; End If and reset targeting
FC 0D 01 01 ; If variable VAR001 is greater than or equal to 1
FD ; Wait until the attack sequence is called upon again, then continue (reset targeting)
F0 D6 0F 10 ; Rand. spell: Disaster or <MB>Flare or <MB>Demi
FD ; Wait until the attack sequence is called upon again, then continue (reset targeting)
F0 0D 8F B8 ; Rand. spell: <MB>Doom or Aero or Mega Volt
FD ; Wait until the attack sequence is called upon again, then continue (reset targeting)
F0 A5 12 E5 ; Rand. spell: Virite or <MB>X-Zone or Soul Out
FF ; End first wave of attack
FC 0D 01 01 ; If variable VAR001 is greater than or equal to 1
FC 12 00 00 ; If following monster is/are dead:
F5 0C 01 FF ; Monsters #1, #2, #3, #4, #5, #6 are killed, dies like a boss
FE ; End If and reset targeting
FC 19 01 00 ; If monster is in slot: #1
FC 12 00 00 ; If following monster is/are dead:
F5 00 00 01 ; Monsters #1 , if hidden/dead, brought in with their HP restored, suddently
F8 01 81 ; 1 added to VAR001
F3 41 00 ; Text: " Can't use physical attacks!<D> "
FE ; End If and reset targeting
FC 05 00 00 ; If monster has been attacked
F0 BD FE E2 ; Rand. spell: Raid or Nothing or Dread
FF ; End