øA slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=printpage;topic=2141.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index2763.html slickproductions.org /forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2141.0 e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index2763.html.z x g^ ÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ @¼´ „ OK text/html ISO-8859-1 gzip @øÕ „ ÿÿÿÿÿÿÿÿ Tue, 10 Mar 2020 04:26:03 GMT 0ó° °® 0® P® €§² ð® g^ %
„
Print Page - Suppressing PC celebration after battle
Board of Slick
Library of the Ancients => Final Fantasy IV Research & Development => Topic started by: avalanche on November 13, 2015, 01:50:04 PM
Title: Suppressing PC celebration after battle
Post by: avalanche on November 13, 2015, 01:50:04 PM
I was a little disturbed when, in my game, Edge and the party were celebrating after Edge's parents died. I thought surely that wasn't right, and it isn't. As an addendum to http://slickproductions.org/forum/index.php?topic=2024.0 (http://slickproductions.org/forum/index.php?topic=2024.0), which discusses victory music and reward suppression.
Encounters in which PCs do not celebrate List at 13:FE76 (ROM A0076), FF-terminated. If in this list, the PCs will not celebrate.
These two are documented by Pinkpuff and Grimoire in the page linked above: Encounters which do not reward with XP/GP/loot List at 13:FD00 (ROM 9FF00), FF-terminated.
Encounters which should play victory music, even if "no change music" battle flag List at 13:FE67 (ROM A0067), FF-terminated.
Also, a little info on $A8, which stores flags for why to end battle. If it is non-zero, battle ends. Some routines check for victory/loss conditions and assign it regularly through battle. Also some spells might set it directly, like the special action that ends battle. Here's what I can gather about what the bits mean, most don't seem to be used together:
bit hex description 0 01 (?) 1 02 (?) 2 04 Set by handler for End Battle AI spell/action 3 08 Faux-loss in a "no game over" encounter 4 10 Used with 20 bit to gain rewards, etc. (not set when encounter is in 13:FD00 table) 5 20 Victory, sometimes with 10 bit above. 6 40 (? confused, like victory but weird pc status checks I couldn't understand) 7 80 Actual loss So maybe some custom code might find that interesting. I would imagine running, and the Exit/Smoke spells are relevant here too, but I didn't check into them.
Title: Re: Suppressing PC celebration after battle
Post by: Bahamut ZERO on November 15, 2015, 11:13:58 AM
I'm not much help in the technical department, but why not just set the battle to "no music change, no fanfare" and have the boss music play during the event right before the battle starts? If Edge's parents don't give gold/exp, it should only display the "Victory!" message.
I say should because I know if there's no gold rewarded, no "gold recieved" message displays due to taking away gil rewards from a majority of monsters in my project. I haven't tried it with experience rewards but it ought to behave in a similar manner.
Title: Re: Suppressing PC celebration after battle
Post by: chillyfeez on November 15, 2015, 01:35:47 PM
I don't think there is a "Victory!" Just the music plays and the characters start dancing. That's the part that avalanche is talking about suppressing.