Does anyone know if this works or not?
I've tried adding properties dynamically at runtime in the game with this function, but alas they never seem to work. Has anyone gotten this to work, and if so, how?
Thanks!
AddItemProperty?
Débuté par
JJM152
, déc. 12 2009 04:17
#1
Posté 12 décembre 2009 - 04:17
#2
Posté 12 décembre 2009 - 07:11
Yep. That function is alive and kicking and it's pretty much my bread and butter. 
As for how to use it, well that's simple so I don't think it should fail by itself :
AddItemProperty(oForgedItem, iPrpID, iValue);
With :
* oForgedItem, the modified item object
* iPrpID, the internal ID, such as 1004 for "Increase Cunning" or 6099 for "Increase Attack" (cf. the itemprps 2DA table)
* iValue, the power value (integer only)
As for how to use it, well that's simple so I don't think it should fail by itself :
AddItemProperty(oForgedItem, iPrpID, iValue);
With :
* oForgedItem, the modified item object
* iPrpID, the internal ID, such as 1004 for "Increase Cunning" or 6099 for "Increase Attack" (cf. the itemprps 2DA table)
* iValue, the power value (integer only)
Modifié par Phaenan, 12 décembre 2009 - 07:12 .
#3
Posté 12 décembre 2009 - 11:51
Evidently the problem was that I was using constants that I assumed were item properties like they were in NWN, but were not
I started using the numbers directly from the 2da and of course it started to work....
Lol @ me.
Lol @ me.





Retour en haut






