Users browsing this thread: 1 Guest(s)
Turning Runic into Cover
Okay so, if I want to create Cover Spell. I could use these two parts of the code, right?
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:
It would target the whole party but I'm okay with that. Other than changing the animation, am I missing anything?
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
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)