Users browsing this thread: 1 Guest(s)
Timers and Status Durations
11-29-2013, 07:22 PM
(11-28-2013, 06:05 PM)lopolly Wrote: Status effects like Stop and Sleep wear off after a certain amount of time. I was wondering if these values could be changed at all.
Sorry for the late reply. What you are asking is really easy to do. For Stop the value is 12 (LDA #$12), Reflect is 1A, Sleep is 12 and Freeze is 22. You can change those values:
Code:
(Stop - set)
C2/467D: 08 PHP
C2/467E: E2 20 SEP #$20 (Set 8-bit A)
C2/4680: A9 12 LDA #$12
C2/4682: 99 F1 3A STA $3AF1,Y (Time until Stop wears off)
C2/4685: 28 PLP
C2/4686: 60 RTS
(Reflect - set)
C2/4687: 08 PHP
C2/4688: E2 20 SEP #$20 (Set 8-bit A)
C2/468A: A9 1A LDA #$1A
C2/468C: 99 0C 3F STA $3F0C,Y (Time until Reflect wears off, though permanency can prevent its removal)
C2/468F: 28 PLP
C2/4690: 60 RTS
(Freeze - set)
C2/4691: 08 PHP
C2/4692: E2 20 SEP #$20 (Set 8-bit A)
C2/4694: A9 22 LDA #$22
C2/4696: 99 0D 3F STA $3F0D,Y (Time until Freeze wears off)
C2/4699: 28 PLP
C2/469A: 60 RTS
(Sleep - set)
C2/4634: 08 PHP
C2/4635: E2 20 SEP #$20 (Set 8-bit A)
C2/4637: A9 12 LDA #$12
C2/4639: 99 F9 3C STA $3CF9,Y (Time until Sleep wears off)
C2/463C: 28 PLP
C2/463D: 80 E7 BRA $4626
« Next Oldest | Next Newest »
|
||||
Users browsing this thread: 1 Guest(s)