Users browsing this thread: 1 Guest(s)
changeing Health command

#8
Posts: 2,550
Threads: 98
Thanks Received: 149
Thanks Given: 160
Joined: Aug 2009
Reputation: 52
Status
Nattak\'d
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?


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



Messages In This Thread
changeing Health command - by Tsushiy - 12-10-2013, 09:52 AM
RE: changeing Health command - by Synchysi - 12-10-2013, 03:53 PM
RE: changeing Health command - by Tsushiy - 12-11-2013, 05:45 AM
RE: changeing Health command - by Cyprus - 12-19-2013, 09:58 PM
RE: changeing Health command - by madsiur - 12-20-2013, 01:59 AM
RE: changeing Health command - by HatZen08 - 12-20-2013, 02:57 PM
RE: changeing Health command - by Cyprus - 12-22-2013, 01:58 PM
RE: changeing Health command - by Gi Nattak - 03-05-2014, 05:45 PM
RE: changeing Health command - by Synchysi - 03-05-2014, 10:02 PM
RE: changeing Health command - by Gi Nattak - 03-05-2014, 10:58 PM
RE: changeing Health command - by SSJ Rick - 03-05-2014, 11:23 PM
RE: changeing Health command - by Gi Nattak - 03-05-2014, 11:36 PM
RE: changeing Health command - by HatZen08 - 03-06-2014, 11:46 AM
RE: changeing Health command - by Gi Nattak - 03-06-2014, 03:49 PM
RE: changeing Health command - by SSJ Rick - 03-07-2014, 01:42 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite