I put call to CastSpell() in attack.cpp that checks the Players class, does a random check, then if within some range it casts the spell I want. I think if I research custom spells I can probably get the majority of what I would like to play with.
I was able to make the spell cast instantly and without taking mana, but the cast animation stops melee combat for a few moments. I seem to think on Live this was not the case, but I cannot recall anymore. Maybe one of the parameters on CastSpell() controls this? I left the ones I didn't understand on their default value.
Part of what I was hoping to do was to be able to look at a Players Deity and give them a random buff, like Rallos Zek might give Grim Aura 3% of the attacks, Valor 2% of the time, and Avatar 1% of the time. Likewise do something similar with their class. Eventually, I would like to replace them with custom spells.
-f
|