FF7 - Battle Variables AI Help

  • Thread starter Thread starter Sega Chief
  • Start date Start date
Status
Not open for further replies.
S

Sega Chief

Guest
Hey all,

We discussed this before a way back, but I've been having trouble getting a value to write to a variable within battle for use on a field screen. I took Barret's old Battle Date variable from the default Kernel AI script and put it into an enemy's death counter script to try it out. Would appreciate if someone who knows the AI stuff better than I do could look at this real quick:

Code: [Select]
Code:
11 000060 509060 0001 00009511 201801 20109011 201001 201060 0130900x000LocalVar:0000 <- 800x006TempGlobal <- &GlobalVar(0000)0x00CUnknown(2018) <- GlobalAddress0x013GlobalAddress <- GlobalAddress + 10x01DSCRIPT END
Have I made a mistake here? It (supposedly) works in the kernel AI for cloud's Physical Counter group but maybe it needs to be handled differently in an enemy's death script?
 
The 95 takes a 1X code as the first argument. You were giving it a 01. You need to do a
Code: [Select]
Code:
60  0011  XXXX95
to read and a
Code: [Select]
Code:
60  0111  XXXX95
to write back to it. The address specified is the relative position in the 1/2 memory bank. The scope of the data retrieved/stored can also be altered with 10, 11, 12, and 13 I think. Ultimate Weapon's AI doesn't use 13 to write, but it does to read. Of course, you'll still have to read/write from 2010 to get the data after the 95 has been executed.

Also, you're doing a mega-bad by reading from &GlobalVar(0000). That's the game's main progress variable. You're advancing the story instead of manipulating the correct value.
afterward. If you want to affect Barret's battle love points you'll want

Code: [Select]
Code:
60  XX11  005395
to manipulate that.
 
Also, you're doing a mega-bad by reading from &GlobalVar(0000). That's the game's main progress variable. You're advancing the story instead of manipulating the correct value.
:P  Fun times!
 
Having story progress increase for every random battle would have been fun times indeed :l

Cheers, NFITC1; I'll try not to make any more mega-bads (but no promises)

Edit: Got it working
 
Last edited:
Not sure if you are using Ochu... or if I have said this before, but...

You can use Ochu to monitor variable changes.  Might help with debugging.
 
I've been using Ochu for the FPS (great tool btw) and skipping through bosses, but I forgot it can monitor variables; cheers for reminding me  :-D
 
Status
Not open for further replies.
Back
Top