øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=307.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index4884.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=307.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index4884.html.z x þZg^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ € _ �+ OK text/html ISO-8859-1 gzip 8:Ö �+ ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 09:33:10 GMT 0ó° °® 0® P® €§² ð® þZg^ �+
Print Page - Pray Command
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: Deathlike2 on February 18, 2008, 01:28:27 AM
Title: Pray Command
Post by: Deathlike2 on February 18, 2008, 01:28:27 AM
When used, a Cure1 command is essentially executed on success.
Cure1 is always multitargeted on your allies, and like the spell, it is reflectable.
Proper healing division is done depending on the number of living targets (unlike Medicine).
The command is powered by Will/Spirit, and healing will be adjusted as such.
Title: Re: Pray Command
Post by: Deathlike2 on February 29, 2008, 10:05:49 PM
The success of Pray is tied to the hit rate of Cure1... which is atrocious.
The internal data suggests a hit rate of 100, so that implies a hit rate of 100/256... which is slightly under 40%.
Even if it goes through the hit rate test 25 times (max possible), the probability is kinda low for success. I don't have the numbers of the probability of success though... hopefully some math wiz has a better idea... :tongue:
Title: Re: Pray Command
Post by: Deathlike2 on March 03, 2008, 03:31:14 PM
My bad... Pray's success rate is tied to the Command's Hit Rate, not the spell (which works 100% of the time).
Title: Re: Pray Command
Post by: Deathlike2 on March 03, 2008, 04:29:53 PM
This command, and Miracle cannot be executed while under Silence status. Since the command triggers a magic spell, and Silence prevents the casting of magic, it is logical that this command always fails while under Silence.
Title: Re: Pray Command
Post by: Deathlike2 on March 05, 2008, 06:29:18 PM
It is worth pointing out that Rosa's "ultimate armor", the White Dress, has immunity to Silence.... too bad the armor still sucks (her Agility sucks a lot and it needs help). It makes sense given the behavior of the Pray/Miracle command.
Title: Re: Pray Command
Post by: Phoenix on March 30, 2008, 09:32:15 AM
Information on the Pray subroutine:
This command has a 50% success rate. A random number is generated between 0x00 and 0xFF, and if it is less than 0x80 then the spell is executed. The byte for this comparison is at 1EA41 (FF4j: 1EA59). Change the value of 0x80 to 0xFF for 100% success, 0xC0 for 75% success, 0x40 for 25% success, etc.
The spell executed is at 1EA4F (FF4j: 1EA67). Change this byte to the desired spell number and you can successfully have a Cure2/3/4/Esuna/etc. spell executed. A patch for this command will be forthcoming as well.
Title: Re: Pray Command
Post by: Deathlike2 on March 30, 2008, 09:38:04 AM
AFAICT, the spell hit rate bonus (Slot1) is applied to this command.
Title: Re: Pray Command
Post by: Phoenix on March 30, 2008, 05:13:35 PM
It doesn't. The subroutine runs the random number check first, and loads the spell data in and only if the random number is less than ox80. Otherwise it skips it and loads the "Prayer unanswered" or similar message. The success rate for Pray is always exactly 50%.
Title: Re: Pray Command
Post by: Deathlike2 on March 30, 2008, 05:50:23 PM
Hmm, I guess I could be imagining it then.
Title: Re: Pray Command
Post by: Paladin on March 31, 2008, 08:50:04 AM
This command has a 50% success rate. A random number is generated between 0x00 and 0xFF, and if it is less than 0x80 then the spell is executed. The byte for this comparison is at 1EA41 (FF4j: 1EA59). Change the value of 0x80 to 0xFF for 100% success, 0xC0 for 75% success, 0x40 for 25% success, etc.
The spell executed is at 1EA4F (FF4j: 1EA67). Change this byte to the desired spell number and you can successfully have a Cure2/3/4/Esuna/etc. spell executed. A patch for this command will be forthcoming as well.
Awesome...you're the man again Phoenix. :banonsmash:
...goes off to finally fix that pesky pray command...
Title: Re: Pray Command
Post by: Deathlike2 on March 31, 2008, 08:54:45 AM
I like the idea that this gets changed to a random Cure3, although perhaps the hit rate may need some tweakage (to be reduced though, if necessary) so it doesn't suck throughout the game. It's not that overpowering early game considering the Will Power Rosa has early game (Tellah-ish) and Pray actually becomes a reasonably well thought out alternative.
Title: Re: Pray Command
Post by: Paladin on March 31, 2008, 11:32:32 AM
Yes...that's exactly what I'm going to do with it...make it use Cure 3 and increase the success to 2:3 or 3:4 odds. For exactly the reason you stated...since it's powered by a spell and not an item it should grow with Rosa's stats.
Title: Re: Pray Command
Post by: Deathlike2 on March 31, 2008, 11:52:44 AM
I did actually suggest to reduce the hit rate... I'd like to think it becomes radically overpowered.. to the point of negating the point of having the original spell.
Early game, it would be fairly overpowered if the hit rate is high. You would also spend quite a bit of time with Cure3 until say you reach Asura. It seems like a sane idea to me to just to change the spell cast at the very least and have it scale, but keep the probability low because you don't want to essentially reduce the role/effectiveness of the original spell (which would suggest that the command is overpowered after the tweakage...).
It's not a good idea to make it Miracle v2. Miracle switches between the Cure3+Heal and Cure2... which I think have the same probability of occuring (50% each).
Title: Re: Pray Command
Post by: Dragonsbrethren on June 08, 2008, 12:30:52 AM
:bump:
FF2us 1.1 offsets:
0x1EA56: Pray success rate. 0x1EA64: Spell used by Pray.
Title: Re: Pray Command
Post by: Deathlike2 on November 01, 2012, 02:10:05 PM
:bump: FF4A's Miracle command works a little differently while under Reflect.
When a party member is under Reflect, the initial Esuna effect is reflected correctly as expected. However, it is followed with a visual multitargeted Curaga/Cure3 effect on the monsters (which, you would rarely see, unless they were all undead). The healing does occur as denoted by the numbers (and it healing actual damage) outside of the character with the Reflect status.