Users browsing this thread: 1 Guest(s)
Two question - regen, imp -

#1
Posts: 62
Threads: 16
Thanks Received: 10
Thanks Given: 4
Joined: May 2012
Reputation: 10
Status
None
hello everyone.Confused
I have two question.


1, regen

Can I do the upper limit of the amount of regen recovery?
I want to change the 254-512(or more), the upper limit.

2,imp

Is it possible to not display the animation of weapon when status imp?
(like a no weapon)



I'm sorry you have just always question. Please let me know if anyone knows someone.Cover
  Find
Quote  

#2
Posts: 2,769
Threads: 88
Thanks Received: 24
Thanks Given: 87
Joined: Jun 2009
Reputation: 25
Status
None
both of these require a lot of hard code ASM hacking, its possible, but it'll be a long and difficult process, I doubt you are going to find anyone willing to do it for you, if anyone can find the offsets and know how to change what into what then they can guide you in the right direction


"Sometimes ninjas do wrong to each other, and in dat way the force of tha earf' comes around da moon - and at that presence, da dirt, it overshadows the grass, so you're like, I can't cut dis grass, there's no sun comin' through. So in order to enable each other the two fruits have to look each other in da eye and understand we can only be right, as da ripe is wrong, you know what I mean?"

-HNIC
Quote  

#3
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
As for your regen question the damage is set on 1 byte ($11A6). $11A7 being taken for something else labeled as special byte 3, you won't be able to allocate the damage on two bytes, unless you find free RAM (if that ever exists). If you manage to do that, you would also have to change some code where the damage/battle power ($11A6) is used.

Here's how regen is calculated, according to Assassin's C2 disassembly:

Code:
C2/5051: B9 40 3B     LDA $3B40,Y (Stamina)    (Figure damage)
C2/5054: 85 E8        STA $E8
C2/5056: C2 20        REP #$20
C2/5058: B9 1C 3C     LDA $3C1C,Y (Max HP)
C2/505B: 20 B7 47     JSR $47B7   (Max HP * Stamina / 256)
C2/505E: 4A           LSR
C2/505F: 4A           LSR
C2/5060: C9 FE        CMP #$00FE  
C2/5063: E2 20        SEP #$20
C2/5065: 90 02        BCC $5069   (If under 254)
C2/5067: A9 FC        LDA #$FC    (set to 253)
C2/5069: 69 02        ADC #$02
C2/506B: 8D A6 11     STA $11A6   (Store damage in battle power)
  Find
Quote  

#4
Posts: 62
Threads: 16
Thanks Received: 10
Thanks Given: 4
Joined: May 2012
Reputation: 10
Status
None
Thanks for the advice both of them!

Do I need to change the location of all damage set bit ($11A6) about regen question?
If so, it is seems difficult to me.Cover
How about, Is it possible to be doubled or more the regen?
  Find
Quote  

#5
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
It's not a matter of changing all the damage set code ($11A6) to your new RAM location but making an exception where that positive damage is used to use your new RAM location. I don't know where that code is though.
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite