The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.33 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Users browsing this thread: 1 Guest(s)
Elemental priorities and ignore damage...

#1
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
1) Ok, this one is quite complicated: i wanted to change elemental weakness/absorb/immunity/resistance priority, but not only that: i also need to rise the priority of the case in which there's no damage modifier to elements at all, which has no priority, at the moment... It should end up into something like this:

Weak > nothing > Resistance > Immunity > Absorb

That's especially required due to multi-elemental attacks that i'll use in my hack.

I searched the related disassembly and i also found how it works, i already know how to change the order of priorities, but there's a big problem:
"No change" don't have any bit combination that allows to recognize if the target has no elem. damage modifier, unless the previous checks don't find any of them... but that means also that they are destined to have a greater priority on "no change" Sad

the related code starts from here, until RTS:
C2/0BD3: AD A1 11 LDA $11A1

I'm breaking my mind in finding a proper check combination that forces to examine the case in which "no change" isn't detected in any of the 8 elements, and only after that, the check of resistance/immunity/absorb.
I'm afraid it's too much difficult to figure it out on my own...


2) This one should be easy:
I found this line in damage formula of disassembly:
C2/0CC9: D0 57 BNE $0D22 (Branch if ignores defense)

Say i replace D0 57 with EA EA...
Will that mean that ALL the possible attacks(including Umaro relics, tools, throw on flying monster weapons, etc...) of FF6 won't be anymore able to ignore defense?

I tried to write some code:

C2/0BE2: 4C 70 65
C2/0BE5: EA EA EA
C2/0BE8: EA EA
C2/0BEA: EA EA
C2/0BEC: EA EA
C2/0BEE: EA EA
C2/0BF0: EA EA
C2/0BF2: B9 CD 3B
C2/0BF5: 2C A1 11
C2/0BF8: F0 14
C2/0BFA: 64 F0
C2/0BFC: 64 F1
C2/0BFE: 80 1E
C2/0C00: B9 E1 3B
C2/0C03: 2C A1 11
C2/0C06: F0 EA
C2/0C08: 46 F1
C2/0C0A: 66 F0
C2/0C0C: 80 10
C2/0C0E: B9 CC 3B
C2/0C11: 2C A1 11
C2/0C14: F0 08
C2/0C16: A5 F2
C2/0C18: 49 01
C2/0C1A: 85 F2
C2/0C1C: 80 2C
C2/0C1E: AD A9 11
C2/0C21: C9 04
C2/0C23: D0 03
C2/0C25: 20 39 0E
C2/0C28: 20 2D 0C
C2/0C2B: 28
C2/0C2C: 60


B9 E0 3B // C2/6570
2C A1 11
F0 0B
A5 F1
30 04
06 F0
26 F1
4C 1E 0C // is weak
DA // not weak
A2 00
B9 CC 3B
2C A1 11
F0 01
E8
B9 CD 3B
2C A1 11
F0 01
E8
B9 E1 3B
2C A1 11
F0 01
E8
E0 03
F0 04
FA
4C 00 0C
FA
4C 1E 0C

Result: "almost" managed to change priorities... but there are 2 problems
1) the last check is for absorbing element, when all the other check fail, and so it starts the one related to absorb, then the game crashes...?
2) "no change" to elements damage won't have an higher priority, but reading better the code it was quite predictable...

Then i tried to change 2 times the piece of code that starts when "weak" check fails:

B9 CC 3B // not weak (2nd try)
19 CD 3B
19 E1 3B
2C A1 11
D0 03
4C 00 0C
4C 1E 0C


// not weak (3rd try)

AD A1 11
39 CC 3B
39 CD 3B
39 E1 3B
c9 00
D0 03
4C 00 0C
4C 1E 0C

Those 2 attempts had the same result: now "no change" has the highest priority, after "weak"... the problem is that now halve/immunity/absorb won't be anymore able to be triggered, because "no change" is always true? I'm not able to figure out the solution at the moment... Sad


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  



Messages In This Thread
Elemental priorities and ignore damage... - by Tenkarider - 01-24-2015, 04:51 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite