Aller au contenu

Photo

AddItemProperty?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
JJM152

JJM152
  • Members
  • 301 messages
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!

#2
Phaenan

Phaenan
  • Members
  • 315 messages
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)

Modifié par Phaenan, 12 décembre 2009 - 07:12 .


#3
JJM152

JJM152
  • Members
  • 301 messages
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.