Users browsing this thread: 1 Guest(s)
Cursed Tintinabar

#1
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
As you might have already guessed i'm going to curse Tintinabar's effect, so that each step will steal your HP, instead of restoring them.

So i tried this code: (headered)

B9 1C 16 // 00004C84
4A
4A
C2 21
20 E0 D7
EA EA EA EA EA EA
99 09 16


83 00 // 0000D9E0
B9 09 16
C3 00
90 04
A9 00 00 // tested also A9 00 01
60
E3 00
60

I expected that each step it would have lose 4 x stamina HP and stopped to 0 or 1 HP, before going under 0... i don't really know what happened, but surely i've seen only weird reaction to my code...
Is there some piece of the formula that i've missed, or something?
Anyone else has some idea on how to implement some code like this one?


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  

#2
Posts: 2,549
Threads: 98
Thanks Received: 147
Thanks Given: 159
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
I'm not sure, but who would want to equip it if it steals your HP lol?


We are born, live, die and then do the same thing over again.
Quote  

#3
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
I have no clue how the tintin bar works but could you possibly raise the healing till you overflow and go in the negative? Probably dont help was just the first thing that come to my caffeine lacking mind.

And I would imagine it would zero gained exp, raise gp, negate stat decrease, or cure cancer to intice wearing something that hardcore.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#4
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
...You guys lack of imagination Laugh

The only thing that interests me of Tintinabar is his reversable healing property, then the next step is changing that relic into a soul eater sword... in the perfect style of the sword used from Hotsuma(Akujiki), in Shinobi(Ps2 game)





That sword, as the video shows, is hungry of souls: if you don't feed it, then it will start to drain your soul, until you kill someone...


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  

#5
Posts: 52
Threads: 5
Thanks Received: 24
Thanks Given: 0
Joined: Jun 2010
Reputation: 6
Status
None
The main problem with your code is that some of the opcodes you're using use the stack relative addressing:
Code:
C0/D9E0: 83 00          STA $00,s
C0/D9E2: B9 09 16       LDA $1609,y
C0/D9E5: C3 00          CMP $00,s
C0/D9E7: 90 04          BCC $D9ED
C0/D9E9: A9 00 00       LDA #$0000
C0/D9EC: 60             RTS $60
C0/D9ED: E3 00          SBC $00,s
C0/D9EF: 60             RTS
STA $00,s would store a value to the current stack address.
83, C3, and E3 should be changed to 85, C5, and E5 for direct addressing.
You also want to make sure you use an address for temp storage that isn't storing anything important, $1E should be fine since it's used as a temp in the original code.
Something like this:
Code:
C0/D9E0: 85 1E          STA $1E
C0/D9E2: B9 09 16       LDA $1609,y
C0/D9E5: C5 1E          CMP $1E
C0/D9E7: 90 04          BCC $D9ED
C0/D9E9: A9 00 00       LDA #$0000
C0/D9EC: 60             RTS $60
C0/D9ED: E5 1E          SBC $1E
C0/D9EF: 60             RTS

Or you could use subtraction by addition:
Code:
C0/4A7D: B9 1C 16       LDA $161C,y
C0/4A80: 4A             LSR
C0/4A81: 4A             LSR
C0/4A82: C2 21          REP #$21
C0/4A84: 49 FF FF       EOR #$FFFF
C0/4A87: 79 09 16       ADC $1609,y
C0/4A8A: B0 01          BCS $4A8D
C0/4A8C: 7B             TDC
C0/4A8D: 99 09 16       STA $1609,y

The big advantage being no free space needed.
Quote  

#6
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
I like it, but how do you plan on "feeding" it?
I only ask because an idea of that magnitude would beg for something more complicated than hp drain effect. Not saying it would kill it, and fancy is not coming to mind at the moment (being balls deep in auction house script is kinda numbing) but I'm sure there's something. Still you've definatly gained points for aiming at making that bar fun for a change.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#7
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
Thanks, Drakkhen... i'll test it later.
I had some trouble to realize where i could store that value, since X and Y were already used, that should save me... even EOR FFFF is a cool idea, never thought that before Tongue


How to feed it? Believe it or not, it will be more than valid HP drain effect for the wielder: no one forces you to keep it equiped outside battle, still you'll have to do it before that happens, or you won't fight with it (in the case i might lock weapon switch for who can equip that weapon)
Sounds boring keep switching the weapon? No one forces you to do that too, you can also do a Kamikaze rush, if you want Laugh
The point of this hack is dodge the curse or embrace it: still there's not only white or black as choices, there's also infinite varied types of grey...

PS. the lower your level, the longer you'll be able to resist the sword, as the curse will affect you, you'll risk to be left without HP much more faster...
On a side note i'm still worried from chaining drain, i mean... how it's calculated HP drain cap? If that allows you to drain ~9000 HP at level 1, then it's not good.


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  

#8
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
I dont know, draining 9k might not be a bad insentive IF there was a way to add a variable that would allow it to hit that hard only if it was "hungry". As in, if it had been equiped for awhile and only "feeding" off the user, it would hit harder for an attack or two, as if starved, then back to more normal levels if used more often. Not sure how that would work but would be a reason to leave it equiped full time and wouldnt really be cheap if you had to wear it but not use it in order for it to hit harder. Just a thought. The more I hear the more I like it though.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#9
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(01-23-2015, 02:41 PM)Tenkarider Wrote: Thanks, Drakkhen... i'll test it later.
I had some trouble to realize where i could store that value, since X and Y were already used

You can also store values on the stack with the PHA, PHX and PHY instructions. The important thing is to pull them back (PLA, PLX, PLY) before the stack is used again.
  Find
Quote  

#10
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
I believe that option wasn't available: after a PL? opcode the value of A would have been replaced before i could subtract stamina * 4 to current HP value...

_____________________

did the change, but still it doesn't like to the game...
Weird stuff happened each 3 steps(1 or 2 steps appearently don't make anything), the only difference is that now it happens after 1 step(2 steps appearently does nothing)... it almost looks like from max HP it directly jumps to 0 HP and vice-versa Finger (and i can swear it leads to HP over/underflow)

________________________

EDIT: the third solution worked as planned! Thanks for that Wink

On a side note i was wrong with Tintinabar damage per step: it was stamina / 4, now i changed it with damage ~= stamina.


THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite