Users browsing this thread: 1 Guest(s)
changeing Health command
Hey Synchysi, I have a weird issue that came up with your code and I can't figure it out. =X
So I changed Health as well to behave like 'Miracle' here, I copied the code and it indeed works, but I noticed it also is affecting another spell that one of my character uses as a skill that is based off of Mantra - the skill attacks for how ever many HP the character currently has and also inflicts a random checked status effect. Anyway, it seems that this new code for Miracle is somehow tied to Mantra in some way - instead of attacking for the current HP, it breaks that and sometimes does a lot of damage (cure 3) medium damage (cure 2) or shitty damage (cure 1), and no longer does a random status effect. I don't see for the life of me why it's doing this, looking at the code here, and am hoping you might be able to see what's going on.
Here's my spell/skill's code which is just an edited Mantra:
C2/4263: A9 60 LDA #$60
C2/4265: 0C A2 11 TSB $11A2 (Set no split damage, & ignore defense)
C2/4268: 9C 14 34 STZ $3414 (Set to not modify damage)
C2/426B: C2 20 REP #$20 (Set 16-bit Accumulator)
C2/426D: B9 18 30 LDA $3018,Y
C2/4270: AE C9 3E LDX $3EC9 (Number of targets)
C2/4273: F0 01 BEQ $4278 (if $3018,Y ANDed with $A4 is zero, the Zero flag will be set.
in other words, we shouldn't decrement the target count
when the caster is not amongst the targets.)
C2/4275: CA DEX
C2/4276: B9 F4 3B LDA $3BF4,Y
C2/4279: EA EA EA NOP
C2/427C: 8D B0 11 STA $11B0 (Set damage)
C2/427F: 60 RTS
Any ideas on how to separate the two?
So I changed Health as well to behave like 'Miracle' here, I copied the code and it indeed works, but I noticed it also is affecting another spell that one of my character uses as a skill that is based off of Mantra - the skill attacks for how ever many HP the character currently has and also inflicts a random checked status effect. Anyway, it seems that this new code for Miracle is somehow tied to Mantra in some way - instead of attacking for the current HP, it breaks that and sometimes does a lot of damage (cure 3) medium damage (cure 2) or shitty damage (cure 1), and no longer does a random status effect. I don't see for the life of me why it's doing this, looking at the code here, and am hoping you might be able to see what's going on.
Here's my spell/skill's code which is just an edited Mantra:
C2/4263: A9 60 LDA #$60
C2/4265: 0C A2 11 TSB $11A2 (Set no split damage, & ignore defense)
C2/4268: 9C 14 34 STZ $3414 (Set to not modify damage)
C2/426B: C2 20 REP #$20 (Set 16-bit Accumulator)
C2/426D: B9 18 30 LDA $3018,Y
C2/4270: AE C9 3E LDX $3EC9 (Number of targets)
C2/4273: F0 01 BEQ $4278 (if $3018,Y ANDed with $A4 is zero, the Zero flag will be set.
in other words, we shouldn't decrement the target count
when the caster is not amongst the targets.)
C2/4275: CA DEX
C2/4276: B9 F4 3B LDA $3BF4,Y
C2/4279: EA EA EA NOP
C2/427C: 8D B0 11 STA $11B0 (Set damage)
C2/427F: 60 RTS
Any ideas on how to separate the two?
We are born, live, die and then do the same thing over again.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)