Random Spellcast for Weapons
#1
Ran into another question while doing some experiments. This one is regarding random spells that proc from weapon attacks.

Is it possible to alter the rate of random spellcasts for a weapon?
For example, striking with the Flame Sabre would make the Fire proc happen 100% or whatever desired xx%. (I believe the actual rate in the game is 1 in 4?)

I ran into many entries regarding random spellcasts in the C2 bank, but I was having trouble finding a location that mentions the rates/percentages that could be edited.

Thanks.
Reply
#2
It is set here, you just have to modify the value of the CMP instruction:

Code:
C2/3649: AD 89 3A     LDA $3A89
C2/364C: 89 40        BIT #$40   (is "cast randomly with fight" bit set in the
                                  weapon spellcast byte?)
C2/364E: F0 15        BEQ $3665  (if not, Exit function)
C2/3650: EB           XBA
C2/3651: 20 5A 4B     JSR $4B5A  (random #, 0 to 255)
C2/3654: C9 40        CMP #$40
C2/3656: B0 0D        BCS $3665  (if that # is 64 or greater, exit function.  iow, exit
                                  3/4 of time.)
Reply
#3
Ah! So that's what that was. Good to know I was looking in the correct general area.

Thanks so much for the help as always.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Frame Job - Making Weapons show after a strike C-Dude 4 3,738 01-23-2023, 08:55 PM
Last Post: Lightning
  Excluding Weapons from Use With Genji Glove PowerPanda 36 31,494 04-08-2021, 09:51 AM
Last Post: PowerPanda
Dragoon Random Battles Odbarc 3 3,497 07-07-2020, 07:54 PM
Last Post: Odbarc
  Random Questions I have and things I want to do MysticLord 14 10,856 03-08-2019, 03:05 PM
Last Post: MysticLord
  Weapons teaching Lore skills? FF6Fanatic 5 6,459 07-11-2016, 03:58 PM
Last Post: FF6Fanatic
  Custom weapons to replace brushes? ribbits 3 3,659 07-20-2013, 06:35 PM
Last Post: madsiur
  Random encounter rates QuickFix 3 4,821 12-20-2012, 01:25 PM
Last Post: QuickFix
  Genji or Gauntlet specific weapons Royaken 4 5,342 03-22-2012, 07:39 PM
Last Post: madsiur
  Weapons.... Oh boy... Royaken 5 7,163 03-20-2012, 07:55 PM
Last Post: madsiur
  Teaching magic spells through weapons Overswarm 25 31,975 12-10-2011, 11:24 AM
Last Post: Angelo26

Forum Jump:


Users browsing this thread: 1 Guest(s)