Users browsing this thread: 1 Guest(s)
Battlescript variables...

#31
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
Hi! Everything, it's quite a nice coincidence you came back to answer, despite your last log in vas in april Smile anyway...

Oh, for some reason i forgot that forcefield was used outside the range of var 4-23
var 25 should be related to latest target, anyway...

Quote:Let me know if you're interested in making that happen, I'd be glad to help.
Interested? By all means!!! Kungfu! if you can help with that, i'll be very glad to accept your help, no doubt you'll get credit for that in my hack... besides it's a quite good patch in general, which modders might want to download, if they know how to properly use battle vars, of course.

Talking about not reset battle var code:
Code:
C2/49D3: E2 20        SEP #$20    (Set 8-bit A)
C2/49D5: A2 13        LDX #$13
C2/49D7: BD B4 3E     LDA $3EB4,X  (copy in-battle event bytes)
C2/49DA: 9D C9 1D     STA $1DC9,X  ( back into normal out-of-battle event bytes)
C2/49DD: CA           DEX
C2/49DE: 10 F7        BPL $49D7    (loop 14 times)

Normally it would be easy to just increase LDX #$13 in order to cover an higher range, unfortunately battle var 24, 25 and 26 store important temp values ;[ that would take some nasty change to the code... anyway i believe it's necessary to extend the range until var 35... until 34 or 33 should be good too, i need to have at least one var to store escape check and eventually some other feature i might implement in the near future.

The solutions are two, i believe:

1) placing some extra code between those 2 lines...
C2/49D5: A2 13 LDX #$13
C2/49D7: BD B4 3E LDA $3EB4,X (copy in-battle event bytes)
3 CMP (18, 19 and 1A the 3 cmp values) to detect if you're checking var 24-26, if then if the check is true... a branch on equal, i guess, you skip the code that save the value outside battle and go directly to DEX code line, in that way you can extend LDX value, without any consequence... what do you think about that, could it work?

2) move var 24-26 values to var 33-35, but that would mean change the code related to forcefield, targeting and monster types count too, which i believe it really requires too much work, attention and time, to not skrew things up Finger
__________________

Actually there's another obstacle: battle vars are stored from 1DC9 to 1DDC, but as RAM map Madsiur's document says:
$1DDD-$1E1C: Monster formations beaten (to fight on veldt) (64 bytes)
$1E1D-1E3F: (35 bytes which appear to be unused, at least in my save files)

yeah, saving extra vars would mean invade monster formations beaten area...
Now, coincidences want i wanna banish Veldt from my hack Hmm (Rages will be got in the same way of Beyond Chaos hack, in the case) so if i erase all the script that change their value after you win a battle and then erase the script that makes start a battle with veldt packs, instead of conventional world map packs, then 64 bytes would be free to use as i wish and well... there are also 35 bytes which are appearently unused, now a confirmation from Madsiur about them being safe to use would be great, in that case i'd kill 100 birds with one stone! Laugh
Of course, to break var 36 bound, i should also change the code that set the value to 36, if you target a variable number greater than var 36, do you know which one battlescript AI commands have this bound, in the case? (among set, increase, if var X = value then... etc. commands)


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  



Messages In This Thread
Battlescript variables... - by Tenkarider - 01-26-2015, 01:37 PM
RE: Battlescript variables... - by Gi Nattak - 01-26-2015, 03:52 PM
RE: Battlescript variables... - by abyssonym - 01-26-2015, 11:48 PM
RE: Battlescript variables... - by Tenkarider - 01-27-2015, 09:51 AM
RE: Battlescript variables... - by LightPhoenix - 01-28-2015, 12:14 AM
RE: Battlescript variables... - by Tenkarider - 01-28-2015, 11:40 AM
RE: Battlescript variables... - by abyssonym - 01-28-2015, 06:47 PM
RE: Battlescript variables... - by Tenkarider - 01-28-2015, 08:18 PM
RE: Battlescript variables... - by madsiur - 01-28-2015, 08:48 PM
RE: Battlescript variables... - by Tenkarider - 01-28-2015, 09:47 PM
RE: Battlescript variables... - by madsiur - 01-28-2015, 09:51 PM
RE: Battlescript variables... - by Tenkarider - 01-28-2015, 10:15 PM
RE: Battlescript variables... - by abyssonym - 01-29-2015, 01:28 AM
RE: Battlescript variables... - by Tenkarider - 01-29-2015, 08:59 AM
RE: Battlescript variables... - by Tenkarider - 02-27-2015, 01:56 AM
RE: Battlescript variables... - by Catone - 02-27-2015, 06:27 AM
RE: Battlescript variables... - by Tenkarider - 02-27-2015, 10:17 AM
RE: Battlescript variables... - by madsiur - 02-27-2015, 01:10 PM
RE: Battlescript variables... - by Tenkarider - 02-27-2015, 01:22 PM
RE: Battlescript variables... - by Catone - 02-27-2015, 01:31 PM
RE: Battlescript variables... - by Tenkarider - 02-27-2015, 02:30 PM
RE: Battlescript variables... - by Tenkarider - 04-04-2015, 02:27 PM
RE: Battlescript variables... - by Catone - 04-04-2015, 09:42 PM
RE: Battlescript variables... - by Everything - 04-06-2015, 01:23 PM
RE: Battlescript variables... - by Tenkarider - 04-06-2015, 06:05 PM
RE: Battlescript variables... - by Everything - 04-06-2015, 10:34 PM
RE: Battlescript variables... - by Tenkarider - 04-07-2015, 12:23 AM
RE: Battlescript variables... - by Everything - 04-07-2015, 11:50 AM
RE: Battlescript variables... - by Tenkarider - 07-19-2015, 04:30 PM
RE: Battlescript variables... - by Everything - 07-20-2015, 12:43 AM
RE: Battlescript variables... - by Tenkarider - 07-20-2015, 03:06 AM
RE: Battlescript variables... - by Everything - 07-20-2015, 11:55 PM
RE: Battlescript variables... - by Tenkarider - 07-21-2015, 04:10 AM
RE: Battlescript variables... - by Everything - 07-26-2015, 05:41 PM
RE: Battlescript variables... - by Tenkarider - 07-27-2015, 06:10 PM
RE: Battlescript variables... - by Everything - 08-03-2015, 07:11 PM
RE: Battlescript variables... - by Tenkarider - 08-03-2015, 09:34 PM
RE: Battlescript variables... - by Everything - 08-08-2015, 01:25 AM
RE: Battlescript variables... - by Tenkarider - 08-08-2015, 04:23 AM
RE: Battlescript variables... - by madsiur - 08-08-2015, 08:49 AM
RE: Battlescript variables... - by Tenkarider - 08-08-2015, 01:53 PM
RE: Battlescript variables... - by Tenkarider - 09-24-2015, 04:03 PM
RE: Battlescript variables... - by Everything - 09-24-2015, 08:01 PM
RE: Battlescript variables... - by Tenkarider - 12-24-2015, 08:19 AM
RE: Battlescript variables... - by Everything - 12-24-2015, 01:21 PM
RE: Battlescript variables... - by Tenkarider - 12-24-2015, 02:06 PM
RE: Battlescript variables... - by Everything - 12-24-2015, 09:28 PM
RE: Battlescript variables... - by Catone - 12-25-2015, 08:11 AM
RE: Battlescript variables... - by madsiur - 12-25-2015, 02:25 PM
RE: Battlescript variables... - by BTB - 12-25-2015, 03:26 PM
RE: Battlescript variables... - by Tenkarider - 12-26-2015, 12:22 PM
RE: Battlescript variables... - by madsiur - 12-26-2015, 12:51 PM
RE: Battlescript variables... - by assassin - 12-26-2015, 03:13 PM
RE: Battlescript variables... - by Tenkarider - 03-17-2016, 07:13 PM
RE: Battlescript variables... - by Everything - 03-21-2016, 09:33 PM
RE: Battlescript variables... - by Tenkarider - 03-22-2016, 10:54 AM
RE: Battlescript variables... - by Everything - 03-22-2016, 08:33 PM
RE: Battlescript variables... - by Tenkarider - 03-23-2016, 06:11 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite