øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2141.msg24381e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0e76.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=2141.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/index0e76.html.zxg^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈ`¦D%jOKtext/htmlISO-8859-1gzip@øÕ%jÿÿÿÿÿÿÿÿTue, 10 Mar 2020 04:26:03 GMT0ó°° ®0®P®€§²ð®g^%j Suppressing PC celebration after battle

Author Topic: Suppressing PC celebration after battle  (Read 752 times)

avalanche

  • Mom Bomb
  • *
  • Posts: 122
    • View Profile
Suppressing PC celebration after battle
« 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, 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:
Code: [Select]
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.


Bahamut ZERO

  • Cagnazzo
  • *
  • Posts: 347
  • Gender: Male
  • If ye're takin a beatin, hop in de back row!
    • View Profile
Re: Suppressing PC celebration after battle
« Reply #1 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.
« Last Edit: November 15, 2015, 11:20:01 AM by Bahamut ZERO »
I update my graphics thread on almost a daily basis, so keep an eye out for new stuff!

chillyfeez

  • FF4 Hacker
  • *
  • Posts: 1,285
  • Gender: Male
  • Go ahead, ask me about Angel Feathers!
    • View Profile
Re: Suppressing PC celebration after battle
« Reply #2 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.