So, I have created a system through events where (I'll post the logic below):
If (Sword X is Equipped && Shield X is Equipped) {
Learn Magic X;
}
Using events, the magic only appears after I exit the status screen and come back. With scripts, I believe the result will be instantaneous (right?), that's, why I want to recreate this with scripts and need to know where, exactly, I need to go to insert my own piece of code. Can someone help me out?
Thanks in advance!
it doesn't matter if scripts or events, neither will be executed in screens other than the map and the battlescreen, because only those two screens have interpreters.
but why using this at all? if you add traits by equipment then that will have a direct effect. For example if you add skill type magic by shield and the magic skills by sword.
If you stilol want to go your route then you'll have to install a screen interpreter or menu interpretewr by plugins.
eventing stuff gets updated when the menu is closed, recreating can work,
but it needs an update function, but even that isn't always 100% guaranteed
unless its done correctly/
there are some plugin that update when adding new clothes, so this is doable
to script within the plugin or close the menu when changed equipment.
Guys, thanks for the replies.
What I want to do would be something similar to the dual slot of the Materia system from Final Fantasy 7, where you see the results right after you did the changes in the stats screen. The only difference is that I designed it to learn new magic only if you have both piece of armor equipped (say, to have Magic X you have both Sword X and Shield X equipped). So, instead of All+Fire materias to have Fire that hit all targets, I have Fire Sword + Fire Shield to learn Fire 2 for instance.
I used the common traits to add magic, but I can't add specific magic the way I mentioned before without events (unless I'm missing something).