Ahhh ok ^^. Good to hear it wasn't a bug haha XD
Hmm. I got to thinking about the Normal Attack feature in VX Ace.
Will this script also work with a normal attack kind of element? Or is it only for direct skills?
See, if I have a character with a normal attack element of fire. And this character uses skills like dual attack, triple attack, or just attack. Instead of at physical I have them set to normal attack so that when they hit they are doing the characters elemental damage(enemies too of course)
So, will this sort of thing work with normal attack? I don't need it to, I mean, I can just make some special skills meant to be a kind of base attack for special characters and just add the element and assign them to each character. But I am curious on this.
It definitely should - it uses the RPG::Skill object as a base, so all the things you mentioned should apply the same learning as long as they have an Element associated with them.
That said, if you want to have multiple characters who share a Double Attack, one with Thunder and one with Fire, then you would need to copy the Double Attack skill and make a Thunder Double Attack and Fire Double Attack.
Generic attacks are a little different since the Attack command is always redirected to a specific skill (default skill 1). I'd be interested to see if an Actor with the Attack Element: Fire param would gain AP for regular Attack commands XD. I'll have to look into that ^^.
Alright here is what I got from your script:
normal attack element on skill 1 with actor that has no elemental feature added = No growth
Normal attack element on skill 1 with actor that has elemental feature added = No growth
Changing attack to element other than normal attack so long as element is defined in editor = growth.
Hmm, actually I think it is because I didn't set the characters school element right? Do I have to set the elements for all schools with offsets? Even if that means setting offset to 0?
Can I have more examples of all possible tags for this script when applying them in the notebox?
Like, can I just do
<school: ice> or do I have to have that along with the other tags?
Thanks so much. So I take it this is almost done or is this it? Because it does everything needed. Although of course you might play with your script to add things to it as you like. This is wonderful though.
Thanks! I may play around with it a bit more, but if you're happy with it where it is then that's the important thing XD.
I'm also happy to update it if necessary, or add further functionality if the need arises down the line, so feel free to let me know if there's something else you'd like or if something isn't working as expected ^^.
When I went into skills from the character menu, I got another error:
TypeError occurred
Line 340 nil can't be coerced into Fixnum.
Maybe I did something?
On my water conjurer who specializes in both ice and water, I gave him two schools. These are his tags:
<SCHOOL: Water>
<OFFSET: water>
<SET: -4>
<SET CURVE: -1>
</OFFSET>
<SCHOOL: Ice>
<OFFSET: ice>
<SET: -4>
<SET CURVE: -1>
</OFFSET>
There also seems to be no change in the amount of AP needed to level when I use the tags to make it easier for a student of one element to level that element quicker than others. I tested this with water by inputting SET -12 for water, the BASE AP being 16, expecting only 4 uses for level up. But it doesn't register. It remains at 16...
This did not fix the crash. It happens even from new game. When I hit skills then click on the character to open up the menu, it crashes.
Same error
TypeError occurred
Line 340 nil can't be coerced into Fixnum
Hmm, weird. I set up the same notes that you posted and can't reproduce the error.
Try adding
rescue 0to the end of line 340 and line 341 and tell me what happens.
Now I get a different error saying:
Script Window_Base line 362 FloatDomainError occurred
NaN
Hm, it sounds like one of the schools you're setting is nil for some reason.
You can try adding these lines below # Calculate necessary values (line 339)
base_offset = 0 if base_offset.nil?curve_offset = 0 if curve_offset.nil?Could you maybe link me your version of the script so I can see what configurations you've set?
Sorry ><"
it's fine. I should learn to set these basic things up for myself in case I use such a script in other projects. I'll send you my script. Hold on...