øAslickproductions.org/forum/index.php?PHPSESSID=ukascihcm6qoputfjcvkl4kg34&topic=307.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbcda-3.htmlslickproductions.org/forum/index.php?PHPSESSID=ukascihcm6qoputfjcvkl4kg34&board=13.220e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexbcda-3.html.zx€Ãh^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ0P.g OKtext/htmlISO-8859-1gzip@øÕg ÿÿÿÿÿÿÿÿWed, 11 Mar 2020 11:11:21 GMT0ó°° ®0®P®€§²ð®€Ãh^ÿÿÿÿÿÿÿÿ†!g  Pray Command

Author Topic: Pray Command  (Read 4866 times)

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Pray Command
« 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.
« Last Edit: February 18, 2008, 01:47:15 AM by Deathlike2 »
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #1 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:
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #2 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).
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #3 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #4 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Pray Command
« Reply #5 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.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #6 on: March 30, 2008, 09:38:04 AM »
AFAICT, the spell hit rate bonus (Slot1) is applied to this command.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Phoenix

  • FF4 Hacker
  • *
  • Posts: 456
    • View Profile
    • Phoenix Hacks
Re: Pray Command
« Reply #7 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%.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #8 on: March 30, 2008, 05:50:23 PM »
Hmm, I guess I could be imagining it then.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Paladin

  • FF4 Hacker
  • *
  • Posts: 105
  • Gender: Male
  • Warrior of Light
    • View Profile
    • FinalFantasyIV.net
Re: Pray Command
« Reply #9 on: March 31, 2008, 08:50:04 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.

Awesome...you're the man again Phoenix.  :banonsmash:

...goes off to finally fix that pesky pray command...

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #10 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Paladin

  • FF4 Hacker
  • *
  • Posts: 105
  • Gender: Male
  • Warrior of Light
    • View Profile
    • FinalFantasyIV.net
Re: Pray Command
« Reply #11 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.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #12 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).
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: Pray Command
« Reply #13 on: June 08, 2008, 12:30:52 AM »
:bump:

FF2us 1.1 offsets:

0x1EA56: Pray success rate.
0x1EA64: Spell used by Pray.

Deathlike2

  • Moderator
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
Re: Pray Command
« Reply #14 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.
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3