I'm making a game using the DBS, with some modifications *None of which would affect what I need*. Basically, each character has 100 Max SP, and starts each battle with 20. In battle, SP is gained through regular attacks and defending. What i'm trying to figure out is how to make it so when you attack or defend, that specific actor gains SP.
For example, if Actor A attacks he gains 10 SP, while Actor B defended so he gains 20 SP.
I'm looking at the default battle scripts, but I can't find where i'd make that specific index actor gain SP, nor do I know which script command increases SP. I'd greatly appreciate help on this!