Author Topic: Lose MP with death  (Read 1537 times)

cloudiar

  • Crazy poster
  • *
  • Posts: 119
  • Karma: -3
    • View Profile
Lose MP with death
« on: 2012-10-09 22:34:15 »
I try the new system for battle, to expand difficulty.

To try character loses all MP in case of death, somes problem but finally to obtain, this change its possible in IA of player!
(run in Death Counter)

-- OPCODE

    12 2060
    12 4140
    80
    02 2060
    02 4140
    80
    02 2060
    02 4140
    80
    31
    90
    73



-- ASM

    0000:   PUSH (2060) Type (12)
    0003:   PUSH (4140) Type (12)
    0006:   MASK
    0007:   PSHA (2060) Type (02)
    000A:   PSHA (4140) Type (02)
    000D:   MASK
    000E:   PSHA (2060) Type (02)
    0011:   PSHA (4140) Type (02)
    0014:   MASK
    0015:   SUB
    0016:   STRA
    0017:   END



-- C STYLE

    Self.MP <- Self.MP - Self.MP
    SCRIPT END



The opcodes run very nice, first problem in case lose PM limited to 255, though this problem is solved and can reset PM to 0 even 65535 :-D

The really problem?

Only run in Cloud...try in Barret and Tifa, ¡not effect! death and MP not change :|

Anyone know possible reason? The opcode in other character is some of Cloud.

Thanks
« Last Edit: 2012-10-09 22:40:30 by cloudiar »

NFITC1

  • No life
  • *
  • Posts: 2816
  • Karma: 68
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Lose MP with death
« Reply #1 on: 2012-10-10 01:09:35 »
Only run in Cloud...try in Barret and Tifa, ¡not effect! death and MP not change :|

Anyone know possible reason?

Yep. Barret's, Tifa's, and Yuffie's scripts are linked to Aerith's. You'll need to put this code on Aerith's Death Counter for this to work correctly for those three. Then you've solved the problem for four characters with one script. :) You'll still have to add it to the other characters' scripts.

cloudiar

  • Crazy poster
  • *
  • Posts: 119
  • Karma: -3
    • View Profile
Re: Lose MP with death
« Reply #2 on: 2012-10-10 01:35:11 »
Thank you, I try and go back to talk to you about the result.

You're always offering support to the people of the community, thank you for helping me develop the mod, your contribution is important and everyone will know that you are part of this work.

cloudiar

  • Crazy poster
  • *
  • Posts: 119
  • Karma: -3
    • View Profile
Re: Lose MP with death
« Reply #3 on: 2012-10-10 03:45:24 »
Add in start "Death counter" in Aeris...Run in Yuffie, Tifa, Aeris!!

But Barret fail...This fix rewrite this opcodes in there IA.

Cloud new fail buged, in death only can loser 113 PM , and never repeat lose in new death.

In case changes comment.