Displaying item received, spell learned or amount of gold received in a dialog box - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Displaying item received, spell learned or amount of gold received in a dialog box (/thread-1266.html) Pages:
1
2
|
Displaying item received, spell learned or amount of gold received in a dialog box - madsiur - 11-27-2011 How can we use the dialog number 2948, 2949 and 2950? Those are used when you receive an item, learn a spell or receive an amount of GP. As an example, #2948 is written like that: Received!, where is an item supplied by the calling code. However, the command 4B or 48 are 3 bytes long and we cannot add an item or a spell as a parameter of those two commands. I tried to find an example in the event dump but I found nothing. I created two extra captions in the example in this video but I would rather know how to properly use captions #2948: RE: Displaying item received, spell learned or amount of gold received in a dialog box - Gi Nattak - 11-27-2011 (11-27-2011, 04:42 PM)Madsiur Wrote: we cannot add an item or a spell as a parameter of those two commands. I tried to find an example in the event dump but I found nothing. I'm not entirely sure what you mean here. It's not allowing you to make a dialog box and then add the item after it like this?: CB/3103: 4B Display dialogue message $06A4, wait for button press Got “Water Skean.” CB/3106: 80 Add item $AC (<E6>Water Edge ) to inventory [4B A4 06 80 AC] I think maybe you need to call this subroutine instead? CA/0008: 4B Display dialogue message $0B85, wait for button press Received “”! CA/000B: FE Return The other 2 are right below that one. I'm sorry if this doesn't help, I just don't really understand the problem here well enough. Cool idea by the way. =) RE: Displaying item received, spell learned or amount of gold received in a dialog box - madsiur - 11-27-2011 I'll try to clarify myself. I know how to add an item to the inventory. This is the part that bugs me: (11-27-2011, 06:45 PM)Gi Nattak Wrote: I think maybe you need to call this subroutine instead? If I call that subroutine (B2 08 00 00) or I call directly the message box (4B 85 OB) how can I tell the game what Item(I) will be displayed in the message box with an event command? My temporary solution was to create a custom message box with usME each time you want to display "Received 'name of the item' !" but from what I understand there would be a way to give the item value as a parameter to use in message box $0B85. If I do 4B 85 0B 80 00 would it display "Received dirk !" automatically in the message box? It's like when you open a treasure chest: It must use message $0B85 because there is not a message box written for each treasure chest in the game...I don't really know how to put it in other words.. thanks for your answer however. RE: Displaying item received, spell learned or amount of gold received in a dialog box - SSJ Rick - 11-28-2011 I was actually considering adding something like this into my hack well not so much as a savepoint but an old guy that is wandering around the world that asks you questions/riddles I was thinking you meet him 3 times (twice in the WOB and once in the WOR) and he gives you incredible items if you answer his questions correctly (incredible for ur char at the time you get it anyway lolz) RE: Displaying item received, spell learned or amount of gold received in a dialog box - madsiur - 11-28-2011 (11-28-2011, 01:05 PM)Poco Loco Wrote: I was actually considering adding something like this into my hack This is by far a better idea than a save point... I used that save point because there was a one time event related to the first time you get to a save point. Anyway you could even make you old sage travel by having his appearance bit cleared at the second location if you didn't met him at the first one. RE: Displaying item received, spell learned or amount of gold received in a dialog box - SSJ Rick - 11-28-2011 now thats a good idea RE: Displaying item received, spell learned or amount of gold received in a dialog box - madsiur - 12-05-2011 To answer my own question and for everyone else who would like to know, I did a little research... Here's the treasure chest decoding function: Code: Treasure chest decoding function This function check if the treasure chest contain GP, an item or a monster and will call the appropriate event (respectively CA/0010, CA/0008, CA/0040 or even CA/0014, the event for an empty chest). Those event will then display the dialog box with the item or the amount of GP as a parameter if it's the case. If we take the example of subroutine CA/0008, the only place I found in the entire game that it is called is in the portion of code I posted and therefore is only used for treasure chests. There is no example in the event dump where CA/0008 is called. I beleive there is no way to give the item name as a parameter in events. Every item given through events will need a custom dialog box, where you write "Receive 'item name'!" and you need to manually add the item to the inventory using command 80. The situation is probably the same for the amount of GP to display and for the dialog box that display "Learned []!", where is a spell, it may be only used at the end of a battle, not through events. RE: Displaying item received, spell learned or amount of gold received in a dialog box - Gi Nattak - 12-05-2011 I concluded the same, will need a custom dialog box, as the game is not programmed to work in such a way outside of the treasure data when calling the S.R. RE: Displaying item received, spell learned or amount of gold received in a dialog box - Subtraction - 04-05-2018 This is an old thread, but in case it helps anyone, the assembly below changes two unused event commands 6D XX: Give item XX and show dialogue box with the item name 6E XX: Give XX * 100 GP and show dialogue box with amount It basically just copies the treasure chest code, which is why it's XX*100 GP. Code: hirom RE: Displaying item received, spell learned or amount of gold received in a dialog box - Tenkarider - 04-05-2018 gg, kinda like something i'd do in my hack. would it be too much asking for a patch? in that way i'd be able to extract raw hex from it... |