since noone posted, I'll reply a bit myself
Tips
1º everything you can find in the rdata about skills is just debug information, good for finding functions names, nothing else
2º the skilldata file is fully parsed by yacc. The effect names are NOT compared with names in memory, everything is done using parser states. So to add a new skill effect directly in the skilldata file we would need to re-write a the parser completly
Forget that!
3º there are 3 important structs for skills
CSkillInfo, CSkillEffect. and another one that I dont know the name , lets call it CSkillParam (oh and also a CSkillAction , but I'm not sure what for, or if its the one that I dont know the name)
then a skill is readed from skilldata it creates a CSkillInfo,
a CSkillInfo has a list of CSkillParam
each CSkillParam has a pointer to a CSkillEffect and the parameters for that skill in the skilldata
the CSkillEffect has 6 functions pointers
So I guess that with that information you guys can find a way to do the rest, I did.
I could post more ..but since noone tryed to help, I dont feel that I should.
|