I'm honestly at a loss here....I've tried so much to make this work the way I want and I just don't see where I'm going wrong....
I'm working on a project that buffs elements based on how often a character uses that element (for example, the more fire spells a character casts, the more damage Fire spells will do in the future). I already have damage formulas for that. I tied each of my elements to a variable and when they use a skill, it'll do the damage, and it's supposed to increase the alignment (for lack of a better word atm) of that element after the spell is done. The damage formula I'm using for a basic Fire spell is
Currently I have a common event increasing the variable when the skill is used, but is there a way to add that into the damage formula? If not that's fine, this process works fine. The reason I mention this is cause I wanted to use items that also increase the variable, but by more than just 1. Example is a Scroll of Fire that increases the Fire alignment by 5. That means when the player uses this item, it SHOULD increase the variable by 5 points. The first time I tested it, it worked fine. Now....it's not. I don't know if I did something wrong, but I don't wanna make a common event for each different value I want to increase by. If that's the only way then I guess it'll have to do but an easier solution is preferred. I tried simply increasing the Repeat to be 5, it did nothing (wouldn't even use the item at all). I tried putting a code in the note section, still wouldn't use the item. From there I just simply made it a blank, consumable item that does nothing and it STILL didn't let me use it....I'm so lost and confused and could really use some help....(I left the code I tried to use in the screeenshot so people could see what I had tried doing).
I'm working on a project that buffs elements based on how often a character uses that element (for example, the more fire spells a character casts, the more damage Fire spells will do in the future). I already have damage formulas for that. I tied each of my elements to a variable and when they use a skill, it'll do the damage, and it's supposed to increase the alignment (for lack of a better word atm) of that element after the spell is done. The damage formula I'm using for a basic Fire spell is
Code:
(100 + a.mat + v[3]) * 2 - b.mdf * 2
Currently I have a common event increasing the variable when the skill is used, but is there a way to add that into the damage formula? If not that's fine, this process works fine. The reason I mention this is cause I wanted to use items that also increase the variable, but by more than just 1. Example is a Scroll of Fire that increases the Fire alignment by 5. That means when the player uses this item, it SHOULD increase the variable by 5 points. The first time I tested it, it worked fine. Now....it's not. I don't know if I did something wrong, but I don't wanna make a common event for each different value I want to increase by. If that's the only way then I guess it'll have to do but an easier solution is preferred. I tried simply increasing the Repeat to be 5, it did nothing (wouldn't even use the item at all). I tried putting a code in the note section, still wouldn't use the item. From there I just simply made it a blank, consumable item that does nothing and it STILL didn't let me use it....I'm so lost and confused and could really use some help....(I left the code I tried to use in the screeenshot so people could see what I had tried doing).