Users browsing this thread: 1 Guest(s)
Timers and Status Durations

#6
Posts: 3,971
Threads: 279
Thanks Received: 237
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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
  Find
Quote  
[-] The following 1 user says Thank You to madsiur for this post:
  • lopolly (11-29-2013)



Messages In This Thread
Timers and Status Durations - by lopolly - 11-28-2013, 06:05 PM
RE: Timers and Status Durations - by Gi Nattak - 11-29-2013, 12:23 AM
RE: Timers and Status Durations - by lopolly - 11-29-2013, 01:58 AM
RE: Timers and Status Durations - by Gi Nattak - 11-29-2013, 02:44 AM
RE: Timers and Status Durations - by lopolly - 11-29-2013, 06:31 PM
RE: Timers and Status Durations - by madsiur - 11-29-2013, 07:22 PM
RE: Timers and Status Durations - by lopolly - 11-29-2013, 09:14 PM
RE: Timers and Status Durations - by madsiur - 11-29-2013, 10:36 PM
RE: Timers and Status Durations - by lopolly - 11-30-2013, 02:28 PM
RE: Timers and Status Durations - by madsiur - 11-30-2013, 05:07 PM
RE: Timers and Status Durations - by lopolly - 11-30-2013, 05:33 PM
RE: Timers and Status Durations - by madsiur - 11-30-2013, 10:13 PM
RE: Timers and Status Durations - by lopolly - 11-30-2013, 11:46 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite