Users browsing this thread: 1 Guest(s)
Battlescript variables...
08-08-2015, 01:53 PM
This is M-tek armor battle AI script:
Reading the code the bit involved of var 09(1DCE) is bit 1, not bit 0...
I read the event address you wrote, that sets var 12 bit 1 right before the battle... so the situation is that if you hit them with magic...
- the check on var 12, bit 1 is true;
- var 09, bit 1 is clear, so the check is true;
- since var 09, bit 1 is clear, now that bit is toggled, so it becomes set...
Well... looks like if you trigger the battle event, then (1DCE:1) will be set! this is weird under many aspects: documents say that (1DCE:0) disables MMMagic event, still it will never be set, now... if in the script it's used (1DCE:1) and not (1DCE:0), then when/where exactly (1DCE:0) is involved and how is involved, if it will never change from clear status?
Besides in the script var 12, bit 1 won't change its value, even if you trigger the event, (1DCE:1) will block the event instead, but that's not documented...?
so var 12, bit 1 will return clear, only by map events.
That's all what happens in M-tek battle, yet there's a period, in which you trigger MMMagic battle event if you cast some spell in a random battle: now... i'm 200% sure that there's no other monster in the whole list, except M-tek armor, that trigger that event, with his AI...
Then how the event is triggered during random battles? i really need to know the address of that piece of code, which must be hardcoded.
Do you know where i can find it?
Code:
[script #-1] ; orig idx=66, "M-TekArmor", nb. bytes=24
F0 EF EF B5 ; Rand. spell: Special or Special or Tek Laser
FF ; End first wave of attack
FC 14 0C 01 ; If VAR012 has all the following bit set: 1
FC 01 02 02 ; If monster has been attacked by cmd: Magic or Magic, will target attacker
FC 15 09 01 ; If VAR009 has all the following bit cleared: 1
F9 00 09 01 ; VAR009 toggle bit: 1
F7 06 ; Trigger event: Terra + Edgar + Locke (about Terra's magic power)
FF ; End
Reading the code the bit involved of var 09(1DCE) is bit 1, not bit 0...
I read the event address you wrote, that sets var 12 bit 1 right before the battle... so the situation is that if you hit them with magic...
- the check on var 12, bit 1 is true;
- var 09, bit 1 is clear, so the check is true;
- since var 09, bit 1 is clear, now that bit is toggled, so it becomes set...
Well... looks like if you trigger the battle event, then (1DCE:1) will be set! this is weird under many aspects: documents say that (1DCE:0) disables MMMagic event, still it will never be set, now... if in the script it's used (1DCE:1) and not (1DCE:0), then when/where exactly (1DCE:0) is involved and how is involved, if it will never change from clear status?
Besides in the script var 12, bit 1 won't change its value, even if you trigger the event, (1DCE:1) will block the event instead, but that's not documented...?
so var 12, bit 1 will return clear, only by map events.
That's all what happens in M-tek battle, yet there's a period, in which you trigger MMMagic battle event if you cast some spell in a random battle: now... i'm 200% sure that there's no other monster in the whole list, except M-tek armor, that trigger that event, with his AI...
Then how the event is triggered during random battles? i really need to know the address of that piece of code, which must be hardcoded.
Do you know where i can find it?
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!
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)