øAslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1546.msg15397e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexe548-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&action=profile;area=showposts;u=169e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexe548-2.html.zx}™h^ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÈà•¤¥oOKtext/htmlISO-8859-1gzip@øÕ¥oÿÿÿÿÿÿÿÿWed, 11 Mar 2020 08:12:06 GMT0ó°° ®0®P®€§²ð®|™h^=¥o Can characters learn magic spells through events?

Author Topic: Can characters learn magic spells through events?  (Read 1723 times)

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Can characters learn magic spells through events?
« on: February 12, 2011, 06:23:49 PM »
Hi everyone, I was wondering if a character can learn spells through events , kind of like cyan mastering all his Bushido techniques using the 8F command. I looked through the event dump, but didn't come up with anything.

My initial idea is that probably there's a command for this, which was not used in the game. But I'm not sure.
Any ideas are greatly appreciated :D

 

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: Can characters learn magic spells through events?
« Reply #1 on: February 12, 2011, 06:30:26 PM »
There is code to teach a spell, but no event command assigned to it.

Code: [Select]
C0/AE0D: A5EB    LDA $EB        (load parameter, character)
C0/AE0F: 8D0242  STA $4202      (save as a multiplier)
C0/AE12: A936    LDA #$36       (54...)
C0/AE14: 8D0342  STA $4203      (save as the other multiplier)
C0/AE17: A5EC    LDA $EC        (load another parameter, the spell number)
C0/AE19: C221    REP #$21
C0/AE1B: EA      NOP
C0/AE1C: 6D1642  ADC $4216      (add the result of the multiplication)
C0/AE1F: AA      TAX            (new index)
C0/AE20: 7B      TDC
C0/AE21: E220    SEP #$20       (8 bit accum./memory)
C0/AE23: A9FF    LDA #$FF       (empty slot in most cases, but for this...)
C0/AE25: 9D6E1A  STA $1A6E,X    (set spell as learned)
C0/AE28: A903    LDA #$03       (Advance the script pointer by 3)
C0/AE2A: 4C5C9B  JMP $9B5C

119 bugs fixed and counting.

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Re: Can characters learn magic spells through events?
« Reply #2 on: February 12, 2011, 06:40:08 PM »
Is there any way I can assign an existing event command (example, 8F) to the code on the C0 bank, so that characters can learn spells? Or are they hard coded in some way?

Thanks  :laugh:

angelo26

  • Guard Leader
  • *
  • Posts: 44
    • View Profile
Re: Can characters learn magic spells through events?
« Reply #3 on: February 12, 2011, 07:34:45 PM »
Nevermind, I found out how to do it. Thanks for the hint, though  :laugh: