Let's Hack FF6 Stream - Week 2
#15
(03-29-2016, 12:05 AM)Madsiur Wrote: For the algorithm you're saying something like this? Basically this would increae of 1/16 each status or equipment check. Then if the DA is happening, do a calculation based on stats. If the calculation is below a certain number, first DA has 75% of chance of happening, otherwise it drops to 25%. This mean even at higher stats you could trigger the first DA but less often. This is a pseudo-code suggestion so don't treat it as perfect.

Code:
check if low health
if low health:
GetRandom
CMP #$80
BCC DAhappening
BRA exit
if not low health:
--Status block (can be repeated for each possible status if on different status bytes)--
LDA #$10
PHA
load status byte X
CMP special status
BRA nostatus
PLA
ADC #$10
PHA
nostatus:
--weapon check block--
LDX $00
LDA weaponSlot
loopWeaponStart:
CMP weponTable,X
BEQ exitWeaponLoop
INX (next weapon in table)
CPX #$16 (table has 16 possible weapons)
BEQ ShieldBlock
BRA loopWeaponStart
exitWeaponLoop:
PLA
ADC #$10
PHA
ShieldBlock:
--Repeat weapon block for shield and/or relic, etc...--
-- next, check if DA will happend--
StatsBlock:
PLA
STA $1440 (store the % of chance, this could also be done before instead of PLAs and PHAs)
GetRandomNumber
CMP $1440
BCC DAhappening
BRA exit
DAhappening:
do the stats calculation!
GetRandomNumber
CMP limitOfFirstDA
BCC firstDAmorePossible (if number calculated below limitOfFirstDA)
GetRandomNumber
CMP #$40
BCC firstDA (if < 25%)
BRA secondDA
firstDAmorePossible :
GetRandomNumber
CMP #$C0
BCC firstDA (if < 75%)
secondDA:
LDA spell2
firstDA:
LDA Spell1

If I'm understanding this correctly, it looks like you go through a number of checks (i like the idea of adding a gear check... if we wanted to give some weapons a bonus to desperation)... then running the calc at the end, then checking which attack to do? That's all pretty decent but a little more complicated... I was thinking of having diminishing returns on the checks (sort of), by doing a check for each bonus individually... so each check has its own 1/16 chance of triggering. does that make sense? that way we can add a larger number of variables without "stacking the deck" so to speak. so instead of having the default chance and a bonus being 2/16 chance, it would be two indiviaual 1/16 chances checked, its a marginal difference with few variables but more pronounced the more we add. Incidentally, its going to look very similar, just with individual proc chances rather than additive. Also i think it will be a lot shorter to code... I think i've got an idea for what I want to do, but I will script it on-stream... cause you guys are good at pointing out my mistakes.

Quick... somebody come up with a list of the top-tier weapons and top-tier armor for each character... might use the 2nd or 3rd best for each to make more gear options viable (i really like the idea of gearing for Desperation looking different than gearing for pure damage). Also, any other suggestions on specific things to check for desperation attacks? I'm looking for a total of 7-8 checks (so i can fill up a byte's worth of bits).

Stream is tonight folks! Really looking forward to it... I also just realized my timer was off 12 hours... its tonight at 9:30 PM EST.

Happy Hacking!
Reply


Messages In This Thread
Let's Hack FF6 Stream - Week 2 - by B-Run - 03-28-2016, 01:50 PM
RE: Let's Hack FF6 Stream - Week 2 - by madsiur - 03-28-2016, 02:24 PM
RE: Let's Hack FF6 Stream - Week 2 - by B-Run - 03-28-2016, 02:57 PM
RE: Let's Hack FF6 Stream - Week 2 - by B-Run - 03-28-2016, 07:10 PM
RE: Let's Hack FF6 Stream - Week 2 - by Lockirby2 - 03-28-2016, 09:34 PM
RE: Let's Hack FF6 Stream - Week 2 - by Fenrir - 03-28-2016, 10:08 PM
RE: Let's Hack FF6 Stream - Week 2 - by B-Run - 03-28-2016, 11:17 PM
RE: Let's Hack FF6 Stream - Week 2 - by Lockirby2 - 03-28-2016, 11:57 PM
RE: Let's Hack FF6 Stream - Week 2 - by madsiur - 03-29-2016, 12:05 AM
RE: Let's Hack FF6 Stream - Week 2 - by B-Run - 03-31-2016, 09:12 AM
RE: Let's Hack FF6 Stream - Week 2 - by B-Run - 03-29-2016, 12:08 AM
RE: Let's Hack FF6 Stream - Week 2 - by m06 - 03-30-2016, 01:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Astrologian Let's Hack FF6 Stream - 5/12/2016 B-Run 8 7,851 05-13-2016, 09:19 PM
Last Post: Lockirby2
Astrologian Let's Hack FF6 Stream - 4/28/2016 B-Run 7 8,368 04-25-2016, 01:10 PM
Last Post: Kugawattan
Arcanist Let's Hack FF6 Stream - 4/21/2016 B-Run 5 5,733 04-21-2016, 11:36 PM
Last Post: madsiur
Arcanist Let's Hack FF6 Stream - 4/13/2016 B-Run 5 5,586 04-14-2016, 02:35 PM
Last Post: Gi Nattak
White Mage Let's Hack FF6 Stream - 4/7/16 B-Run 8 7,930 04-08-2016, 01:56 PM
Last Post: Xontract

Forum Jump:


Users browsing this thread: 2 Guest(s)