How does the code associate the const int with the effect code?
How does the effect code recieve the data (specifically for OnHit effects) if there is a const int effect?
Basically, I want to write a more flexible "Increases Hostility" code. As of now, it is intergrated by its ID# to the sys_itemprps_h and will *always* provide a static 5.0 increase.
By overriding the itemprps.gda/2da, I can make an effect that increases the ThreatTable by the powervalue I have in the toolset (rather than the static 5). I'm just lost on how the code would look like as of now. I'm trying to study the code but comming up with blanks.
would it be
effect FlexibleIncHostility(float fX){
returns UpdateThreatTable(oAttacker,oTarget,fX)
}
Any ideas?
Modifié par KigenBarzhad, 08 janvier 2010 - 07:33 .





Retour en haut






