Users browsing this thread: 1 Guest(s)
Giving Everyone the Same Desperation Attack

#6
Posts: 181
Threads: 3
Thanks Received: 26
Thanks Given: 4
Joined: Apr 2015
Reputation: 18
Status
None
You could try using $3A56. A bit gets set for each character with Wound, Petrify, or Zombie status. See C2/46A9.

There's also a subroutine at C2/520E which counts the number of bits set in the accumulator. You could use this to get your multiplier. For example:

Code:
LDA $3A56 ; bit mask for number of dead characters (use 8-bit A to get characters only)
JSR $520E ; count bits set in A

; now X holds the number of dead characters
; you can use this to adjust the probability of getting a lv.2 desperation attack

There's also $3A76, which is a count of the number of characters that are alive. See C2/4AB9.
  Find
Quote  
[-] The following 1 user says Thank You to Everything for this post:
  • PowerPanda (07-21-2018)



Messages In This Thread
RE: Giving Everyone the Same Desperation Attack - by Everything - 07-21-2018, 02:15 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite