Users browsing this thread: 1 Guest(s)
Turning Runic into Cover

#17
Posts: 81
Threads: 12
Thanks Received: 0
Thanks Given: 0
Joined: Feb 2017
Reputation: 3
Status
Brave
Okay so, if I want to create Cover Spell. I could use these two parts of the code, right?

Code:
Cover effect 0x05 (0A)

C2/6473: A3 05        LDA $05,S
C2/6475: AA           TAX
C2/6476: 5A              PHY
C2/6477: A0 00          LDY #$00
C2/6479: 8A              TXA
C2/647A: D9 6C 33      CMP $336C,Y  (Is this character protected by attacker?)
C2/647D: D0 05          BNE $6484    (Branch if not)
C2/647F: A9 FF          LDA #$FF
C2/6481: 99 6C 33      STA $336C,Y  (Clear who takes damage for this person)
C2/6484: C8              INY
C2/6485: C8              INY
C2/6486: C0 12          CPY #$14     (Have we checked all characters)
C2/6488: 90 EF          BCC $6479    (Branch if not)
C2/648A: 7A              PLY
C2/648B: 98           TYA
C2/648C: 9D 6D 33     STA $336D,X  (Attacker data: save who they're taking damage for)
C2/648F: 8A           TXA
C2/6490: DD 6D 33     CMP $336D,X  (are these the same person?)
C2/6493: D0 06          BNE $649B       (Branch if not)
C2/6495: A9 FF          LDA #$FF
C2/6497: 9D 6D 33      STA $336D,X  (Attacker data: no longer takes damage for anyone)
C2/649A: 60              RTS
C2/649B: 99 6C 33      STA $336C,Y  (Target data: save who takes damage for them)
C2/649E: 60           RTS
Code:
Table for special effects code pointers 1

C2/3DCD: 8C 38
C2/3DCF: 8C 38
C2/3DD1: 8C 38
C2/3DD3: 43 3D ($03)
C2/3DD5: F2 38 ($04)
C2/3DD7: 73 64 ($05) (Cover!)
 
I could then flag Heartburn with not reflectable, cursor moveable, one side only, manual party select, and can't be dodged. Then I'd just need to set it  0 MP Cost, 0 Power, 255 Success rate%, and special effect 05 and rename it "Cover". Then I'd get a spell that lets me target one party member or the whole party. Would this work right?

If I wanted a quick and dirty Command I could change Health to:
Code:
Health

C2/171E: A9 D9        LDA #$D9       (Heart Burn)
C2/1720: 85 B6        STA $B6        (Set spell/animation)
C2/1722: A9 05        LDA #$05
C2/1724: 80 3F        BRA $1765
It would target the whole party but I'm okay with that. Other than changing the animation, am I missing anything?
  Find
Quote  



Messages In This Thread
Turning Runic into Cover - by B-Run - 07-20-2012, 05:19 PM
RE: Turning Runic into Cover - by Gi Nattak - 07-21-2012, 02:31 PM
RE: Turning Runic into Cover - by SSJ Rick - 07-21-2012, 03:34 PM
RE: Turning Runic into Cover - by Sutebenukun - 07-21-2012, 04:21 PM
RE: Turning Runic into Cover - by madsiur - 07-21-2012, 06:05 PM
RE: Turning Runic into Cover - by B-Run - 07-22-2012, 07:00 PM
RE: Turning Runic into Cover - by madsiur - 07-24-2012, 08:50 PM
RE: Turning Runic into Cover - by B-Run - 07-24-2012, 11:19 PM
RE: Turning Runic into Cover - by B-Run - 07-26-2012, 08:07 PM
RE: Turning Runic into Cover - by madsiur - 07-27-2012, 12:29 PM
RE: Turning Runic into Cover - by B-Run - 08-15-2012, 11:47 AM
RE: Turning Runic into Cover - by Catone - 08-15-2012, 01:39 PM
RE: Turning Runic into Cover - by B-Run - 08-15-2012, 01:58 PM
RE: Turning Runic into Cover - by Catone - 08-15-2012, 05:04 PM
RE: Turning Runic into Cover - by B-Run - 08-15-2012, 09:17 PM
RE: Turning Runic into Cover - by Catone - 08-15-2012, 10:06 PM
RE: Turning Runic into Cover - by Timbo - 04-22-2017, 05:13 PM
RE: Turning Runic into Cover - by B-Run - 04-24-2017, 07:30 AM
RE: Turning Runic into Cover - by Timbo - 04-25-2017, 12:24 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite