The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Users browsing this thread: 1 Guest(s)
Revert Waits for Action

#1
Posts: 617
Threads: 49
Thanks Received: 0
Thanks Given: 5
Joined: Feb 2017
Reputation: 25
Status
None
I am working on a small hack to Terra's Morph command. Basically, in order for Morph not to be grayed out, the "Morph Bank" needs to be at at least 16 (Hex $10). Now, a value of 16 is gone in the blink of an eye... 1-2 turns on average in the WoB, 2-3 in the WoR. In the World of Balance, it can take 8-10 battles to fill it up. My fix is a bit simpler than the "Resilient Morph" patch. I'm making it so that at the end of the battle, the game checks to see if Terra's morph bank has fallen below 16. If so, it will start her at 16 and THEN add double the ability points you gained during the battle. That way, you will always be able to use Morph once per battle.

One MORE thing I would like to address is the Revert command. Right now, Revert will take priority over any other action. So if Terra is queued up to attack or cast a spell in Esper form, she will revert to human form before taking her action. This is unfair, since a lot of times, you're just waiting on the enemy animations to finish. Does anyone know how to put revert in queue so that it doesn't interrupt other actions? I've tried changing C2/067F (the time delay from entering the Revert command to performing it) from 00 to 10, and it did add the delay, but still interrupted other actions.

EDIT: I found it. The block of code in question is as follows, with the key line marked with an asterix:
Code:
C2/122C: A9 04        LDA #$04
C2/122E: 8D 7A 3A     STA $3A7A      (Store Revert as command)
*C2/1231: 20 B2 4E     JSR $4EB2      (queue it, in entity's counterattack and periodic
                                     damage/healing queue)
C2/1234: AD 31 3F     LDA $3F31      (Load the remaining amount of morph time DIV 256, if any)
C2/1237: 9D 04 3B     STA $3B04,X    (Store it to the character's Morph gauge)
(Why do we bother zeroing all these timers and variables here when the forthcoming
Revert can handle it?  Presumably to avoid gauge screwiness and a bunch of pointless
calls to this function should Terra's Morph timer run down in the middle of an attack
animation..)
C2/123A: 60           RTS

So the Revert action gets stored in the priority queue. If you change C2/1231 to JSR $4ECB, this stores it in the normal action queue. It allows Terra to take her final action before Reverting. However, I will need to look into this more tomorrow, as it introduces a graphical bug where Terra steps forward to do her final action, then steps forward AGAIN to revert, but only steps back once. It's not as simple as removing the step forward/step back in the Revert animation, as there's still a step back that's missing from her first action. If anyone has any ideas, please share. Might save me an hour or two of looking into it.
EDIT: Found it. Added a branch to the animation script to check to see if the character had already stepped forward.

Also, I've written some optional code for the Final Battle tier transitions that replenishes some of the Morph Supply for the next tier. However, I don't understand the Final Battle tier transitions that well, so I'm not sure if if I can DO a "CMP $#00, BNE" to check to see if Terra is one of the surviving characters and only add to the Morph Supply if she's there. If anyone is willing to do a code review on it, please let me know and I'll PM you with the details.


Projects:
FFVI: Divergent Paths (Completed) - a complete storyline and gameplay hack of FF6 that adds Leo as a playable character
  Find
Quote  



Messages In This Thread
Revert Waits for Action - by PowerPanda - 09-02-2018, 05:16 PM
RE: Revert Waits for Action - by Warrax - 09-03-2018, 03:04 PM
RE: Revert Waits for Action - by PowerPanda - 09-03-2018, 03:36 PM
RE: Revert Waits for Action - by Warrax - 09-03-2018, 04:27 PM
RE: Revert Waits for Action - by PowerPanda - 09-03-2018, 05:37 PM
RE: Revert Waits for Action - by madsiur - 09-03-2018, 05:46 PM
RE: Revert Waits for Action - by Warrax - 09-03-2018, 05:59 PM
RE: Revert Waits for Action - by PowerPanda - 09-04-2018, 09:31 AM
RE: Revert Waits for Action - by Warrax - 09-04-2018, 10:45 AM
RE: Revert Waits for Action - by PowerPanda - 09-04-2018, 04:06 PM
RE: Revert Waits for Action - by Warrax - 09-04-2018, 05:00 PM
RE: Revert Waits for Action - by PowerPanda - 09-05-2018, 11:10 PM
RE: Revert Waits for Action - by PowerPanda - 09-27-2018, 06:28 PM
RE: Revert Waits for Action - by dtgenji - 10-22-2018, 08:41 AM
RE: Revert Waits for Action - by PowerPanda - 10-22-2018, 01:34 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite