Howdy! 👋
I'm wondering if anyone could help me out with what I hopefully believe is a simple script edit to Victor's Materia script : https://victorenginescripts.wordpress.com/rpg-maker-vx-ace/materia-system/
By default, the materia gains AP upon defeating foes. I'm hoping to change it so I can manually set the AP of Materia via a script call. For reference, In game I have different groups of materia (Fire/Water/Ice/etc.). When you first get a fire materia, it will have 1 total AP, once you get a second fire materia, I'll then set ALL fire materia to have 2 total AP. I'll handle keeping track of owned materia, and the AP gain via an event, all I need it a way to set all materia with an armor ID of X to a certain amount of AP.
I've made a couple small tweaks that, while I don't think any would affect the change to AP gain, I figured I should include just in case. (NOTE: I attached it at the bottom of this post, as the script exceeded the max post size)
Notable at line 574 you'll see:
@ap ||= $game_variables[198]___
With this, I've been able to make it so when I obtain a materia, it's initial total AP is set to the value of variable 198, but I cannot then increase the AP of those Materia after first obtaining them. I thought I'd point it out, in case it proves helpful.
Hopefully this makes sense. Let me know if you have any questions.
Thank you!
I'm wondering if anyone could help me out with what I hopefully believe is a simple script edit to Victor's Materia script : https://victorenginescripts.wordpress.com/rpg-maker-vx-ace/materia-system/
By default, the materia gains AP upon defeating foes. I'm hoping to change it so I can manually set the AP of Materia via a script call. For reference, In game I have different groups of materia (Fire/Water/Ice/etc.). When you first get a fire materia, it will have 1 total AP, once you get a second fire materia, I'll then set ALL fire materia to have 2 total AP. I'll handle keeping track of owned materia, and the AP gain via an event, all I need it a way to set all materia with an armor ID of X to a certain amount of AP.
I've made a couple small tweaks that, while I don't think any would affect the change to AP gain, I figured I should include just in case. (NOTE: I attached it at the bottom of this post, as the script exceeded the max post size)
Notable at line 574 you'll see:
@ap ||= $game_variables[198]___
With this, I've been able to make it so when I obtain a materia, it's initial total AP is set to the value of variable 198, but I cannot then increase the AP of those Materia after first obtaining them. I thought I'd point it out, in case it proves helpful.
Hopefully this makes sense. Let me know if you have any questions.
Thank you!