• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
May 10, 2024, 03:23:05 pm

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - zinkBR1986

1
Help! / repeat action
March 26, 2024, 09:24:29 am
I would like to know if it is possible to repeat an action, an attack, simply by adding a "loop" in a formula?

Initially, it would be applied to Break item, so that it breaks all items with a single attack.

I saw that there is already something here, but it seems unfinished to me:

https://ffhacktics.com/smf/index.php?topic=12056.0#msg224119
2

Could you please publish this completed formula?
3
I was wondering if it would be possible, at the end of the execution of the first attack, to change its MP cost to (MAX MP + 1000), so the skill would be disabled. I have a doubt if it is possible and if in the next battle, the cost of MP will return to normal by itself, to be able to use it again, once?
===
I also thought of somehow using the "throw" and "Draw Out" skills, to cancel that skill mid-battle, but I don't know where to start.
===
I would be very grateful if you could help me please.
4
I would be very grateful if you could help me with one question:

I would like to create a single-use ability. Could you help me with ASM how do I disable the ability after using it the first time?
5
Thanks Xifanie for your feedback and for teaching me that it is possible to use "mode=ASM".
I'm using the wish wiki and modified it to get what I want (deal HP damage on enemy and increase my character's MP). In a way I managed to accomplish this, I will leave the code below. However, currently it uses the MAX MP as a parameter, but I would like to use a certain value in X or Y in FFTPatcher. I've already researched this:
00184368: 3c068019 lui r6,0x8019
0018436c: 90c638f9 lbu r6,0x38f9(r6)
00184380: 00460018 mult r2,r6
But all my attempts to add in the formula did not give the expected result.

Below the current Formula Wish (causing giving HP to the enemy and healing the character's MP, using MAX MP)

lui r2,0x8019
lw r2,0x2d94(r2)
lui r3,0xcccc
lhu r2,0x002e(r2)
ori r3,r3,0xcccd
multu r2,r3
lui r3,0x8019
lw r3,0x2d8c(r3)
ori r2,r0,0x0010
sb r2,0x0025(r3)
mfhi r2
srl r2,r2,0x02
sh r2,0x000a(r3)
lui r3,0x8019
lw r3,0x2d8c(r3)
ori r2,r0,0x0003
sb r2,0x0000(r3)
lui r2,0x8019
lw r2,0x2d8c(r2)
lui r4,0x8019
lw r4,0x2d90(r4)
lh r2,0x000a(r2)
ori r3,r0,0x0080
sb r3,0x0025(r4)
sll r2,r2,0x01
jr r31
sh r2,0x0004(r4)
6
First thanks to the FFHacktics community, all the tutorials have helped me a lot and your work is incredible.
After reading some tutorials and videos I tried to change the wish formula, I'll put below the way I did it, with the aim of causing damage to the enemy and healing the mp of the unit that is attacking. (I developed this formula based on trial and error, with practically no knowledge of ASM and only later found this formula in this topic)

<?xml version="1.0" encoding="utf-8" ?>
<Patches>
 <Patch name="Wish 2">
    <Description>trocando hp damage 04 por mp healing 0A</Description>
    <Location file="BATTLE_BIN" offset="11FDC8">
2E004294
    </Location>
    <Location file="BATTLE_BIN" offset="11FDEC">
0A0062A4
    </Location>
    <Location file="BATTLE_BIN" offset="11FE10">
0A004284
    </Location>
    <Location file="BATTLE_BIN" offset="11FE24">
040082A4
    </Location>
  </Patch>
</Patches>

What I want to add in this formula:
1) The MP cure must be an exact Y value and not a % (Y that I will indicate later in FFTPatcher)
2) The damage will be based on (PA+WP+X)% (X that I will indicate later in FFTPatcher)
3) The enemy has the opportunity to evade

Another issue, even more important, and which prevents me from progressing in my studies, is understanding how asm is formatted like this:
 001896f4: 0c061e72 jal 0x001879c8       
It can become like this:
    <Location file="BATTLE_BIN" offset="11FE10">
0A004284
    </Location>

*From the observations, the jal byte is 0C, but I can't imagine how to complete the other digits.
And I'm actually interested in that, because my intention is not to change the wish formula, but to rewrite it in another empty formula.

Gratitude
Ps: Sorry for the google translator English =]