Good day, everyone!
I'm picking up a project I started a long time ago, and at the time I had a good idea for what I wanted to do, but I can't figure out how to get it to work.
Essentially, what I want to do is attach a numerical value to a skill, such that using the skill adds points to a hidden, background total. I endeavor to trigger certain changes based on the total at any given time.
For example:
Mr. Mage uses Fireball in battle.
Fireball has a hidden value of +3 Fire.
The hidden counter now has a value of Fire = 3.
Mr. Mage is in another battle and uses Fireball again.
The hidden counter now has a value of Fire = 6.
After levelling up, Mr. Mage learns Super Fireball, which has a value of +5 Fire.
In a battle, he uses Super Fireball.
The running background counter now has a value of Fire = 11.
My current setup tries to use the example Fire values as a common event, which is called each time the skill is used. The common event, when called, tries to add the associated numerical value (in this case +3 or +5) to an attached variable. The attached variable is meant to be the total running value of the Fire count.
Unfortunately, I don't think this setup is working, as I haven't been able to playtest it in any way that seems to indicate as such.
I appreciate any advice anyone can offer for how I can make this work. Eventually, I need to be able to use this type of counting in multiple areas and compare the final values, creating events that are triggered if one is higher than another (such as Fire vs. Ice).
Thanks very much!
I'm picking up a project I started a long time ago, and at the time I had a good idea for what I wanted to do, but I can't figure out how to get it to work.
Essentially, what I want to do is attach a numerical value to a skill, such that using the skill adds points to a hidden, background total. I endeavor to trigger certain changes based on the total at any given time.
For example:
Mr. Mage uses Fireball in battle.
Fireball has a hidden value of +3 Fire.
The hidden counter now has a value of Fire = 3.
Mr. Mage is in another battle and uses Fireball again.
The hidden counter now has a value of Fire = 6.
After levelling up, Mr. Mage learns Super Fireball, which has a value of +5 Fire.
In a battle, he uses Super Fireball.
The running background counter now has a value of Fire = 11.
My current setup tries to use the example Fire values as a common event, which is called each time the skill is used. The common event, when called, tries to add the associated numerical value (in this case +3 or +5) to an attached variable. The attached variable is meant to be the total running value of the Fire count.
Unfortunately, I don't think this setup is working, as I haven't been able to playtest it in any way that seems to indicate as such.
I appreciate any advice anyone can offer for how I can make this work. Eventually, I need to be able to use this type of counting in multiple areas and compare the final values, creating events that are triggered if one is higher than another (such as Fire vs. Ice).
Thanks very much!