Users browsing this thread: 1 Guest(s)
Monster AI Script

#1
Posts: 76
Threads: 20
Thanks Received: 2
Thanks Given: 4
Joined: Apr 2012
Reputation: 0
Status
None
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.
  Find
Quote  

#2
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
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.
  Find
Quote  

#3
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
That check exists for var bits(set or clear), for var values exist >= or <


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  

#4
Posts: 76
Threads: 20
Thanks Received: 2
Thanks Given: 4
Joined: Apr 2012
Reputation: 0
Status
None
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
  Find
Quote  

#5
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
FF6 reads the script from the top to the bottom: it will read the first phase and never read the second one, because there's no condition for the first phase... add as first line:
If variable VAR001 is lesser than 1
Maybe there's need of some further correction in the counter attack half of the script, but start with this and tell us the result Wink


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite