Hello lovely people. I'm just looking for alternative ways to work with the magic in my game before I decide on something truly final. I've already put so much work into refining lots of the mechanics of my skills etc. But I always seem to find another method of creating what I want, perhaps even better methods than what I am working with, but I'm trying to keep things neat and not overloaded with skills.
Right now, I'm trying to come up with a way to increase certain magic skills based on a character level up, but not have it effect all MAT based skills. In my game there are six elements. While these characters can with the right equipment use spells form other classes, the main class should be the only one in which a player can with time and effort excel in that particular element both in terms of power and what is done. But there is no direct level up system in regards to the magic itself.
I was wondering if there was anything out there I could try out so that a dark mage that uses only 4 dark magic spells, can find these spells getting stronger with use. through the magic itself being leveled by frequent use.
So if I use shadow swipe 50 times, shadow swipe doesn't do the usual * 2.5 damage to a target, it does * 3.8 damage or something.
Are there ways to set this up so that I don't have to make uh...60 variables for all the elemental magic in my game?
there are several scripts that implement skill levels on the master script list, but I don't know how those skill levels are earned.
Most probably something could be modified for you, just look for those scripts on the master list.
I'm working on a script right now that allows the user to level up specific skills and increase their damage by a set multiplier each level - I can modify it to fit your needs if you'd like ^^?
That's almost exactly what my script does right now XD. I'll customize it a bit and send you a demo copy ^^.
Sure, that's pretty straight-forward XD. Are the magic schools all defined in the Elements categories?
Okay, cool. Should the equippable items allow you to level up the magic school they represent, or are the characters only able to level up their own school of magic?
EDIT:
I found what I was doing wrong. It seems the growth wasn't reading level one after the level up. It was scaling along. I'm probably not typing it out right because I'm not fully awake yet, and starving. Anyway, what I mean is it does this:
Level 1 = 100 so 100 * .15 = 115
Level 2 = 115 so 115 * .15 = 132.25
Level 3 = 132 so 132 * .15
This explains why I got to 404. It's alright. There is nothing actually wrong with this but it does mean that growths will be stacking per each increase. Hmm.
No. It's fine. I don't mind it this way.
---------------------------------------------------------------------
I have one tiny question about a part of the script. It is about the formula for growth:
(BASE * LEVEL) + (CURVE * ((LEVEL - 1) ** 2))
Does this AP formula only affect the level of the magic or does the **2 part actually mean extra damage is added? Maybe I'm missing something when I was playing with numbers earlier but I did a test in demo with thunder having a fixed damage of 100 and set the damage variance to 0 against an enemy with no defenses. I put the max level for my magic increase to 11. So each time in level one the damage would be a clean 100 every time. I changed the damage multiplier per level to 1.15, just so I can see how it would gradually increase over levels. On level two I got 114. Looked good.
I noticed that as I kept going, the 100 would grow to 300, then 404 damage. I stopped there so I'm not sure if it was the max level as I just mashed thunder on the slime dummies.
Then I looked at the formula and started wondering about it. When I put this into my calculator:
Max level * rate of increase(11 * 0.15), I get 165%, which looks right. But if this were the case, the max damage on the slime should be 265. Since this would be 165% increase. Yet I managed to get up to 400.
I'm probably missing something because I can't tell why for the first few levels the numbers appear spot on but suddenly they just keep going up to what looked like a 390% increase.
Ah, sorry, I should have elaborated on the growth formula more ^^ - the **2 means ^2 or to the power of 2. That's the formula for experience growth though - the damage is actually much more simplistic and just applies a multiplier based on the SKILL_BOOST variable (the application of this can be found in the make_damage_value function).
The value with no variance should be represented by BASE * (SKILL_BOOST ^ LEVEL - 1).
You're absolutely right, with a 15% increase it compounds - each 15% is also applied to the previous 15% increases. (Compound interest is terrifying XD)
As I said above, a lot of the math was placeholder, so let me know if there's a different growth formula you'd like to implement and I can write it in (or even a range you'd like to see; with only 6 levels I can write a formula to adapt to a minimum and maximum bound based on a base value XD)
EDIT: In response to your question above, right now the actor notetags allow you to alter the base value for the AP growth formula. I can also add tags to increase the curve (or change up the formula) if you'd like ^^.
(I hope you're having fun playing with this kind of script, I'm enjoying digging in and seeing what comes out of it)
Hmm. I must be reading this wrong. I inserted questions in bold Brown ink.:
#-----------------------------------------------------------------------
# Experience formulas and values
#-----------------------------------------------------------------------
module EXP
#-----------------------------------------------------------------------
# Define the schools of magic (keep lower case)
# as well as the additional exp needed for each level
# for that particular school. (Can be negative)
#
# Skills will level based on the AP (Ability Points) formula below
# (feel free to modify)
#
# Example:
# :fire => 10
# means that a skill of the fire school would now need 60 AP
# to reach level 2, 115 AP to reach level 3, and so on.
Why so much AP for fire => 10? If in the AP formula it says:
1 AP gain per use and needs Base AP of 5 to level up, why does => 10 come out to an additional 60 AP?
# Note that each character will have a dynamic version of this
# array as well, this is just a base.
#
# Skills with these elements will level as they're used,
# so long as the user has the school defined in their notetags.
#-----------------------------------------------------------------------
SCHOOLS = {
# School name => element id
:fire => 0,
:ice => 0,
:thunder => 0,
:water => 0,
:wind => 0,
:earth => 0,
:holy => 0,
:dark => 0
} # Don't remove this
Looking at this I figured that I would have to change the 0 to the ID from the system slot yes?
[IMG]http://i62.tinypic.com/ji00wp.jpg[/IMG]
Those things right?
I did my thunder test. Here is how I started and what happened:
When I read offset of thunder to 10, I lowered it to 3. In the editor, I have AP gain per use to 1, but Base AP to level up at 3.
I decided to turn the AP offset to 3, thinking that it means I would need only 3 AP more than the 3 base to level up. But instead of 6 uses for thunder, it took 12.