420 wrote...
Thanks for all your testing Xovian! I can also confirm that IP_CONST_ONMONSTERHIT_WOUNDING, which also requires a value of 1-5, cannot be added.
Well, the problem is that I scale my creatures to the level of the PC on the quest and in some cases, like this one, I scale their equipment too. So I'm spawning one of the standard familiar bites (dire rat) based on the creature's level, then adding some other nastyness. The level drain should be set to 1-5 based on the creature's level.
I did find a workaround however: I made 5 different creature bites with level drain 1-5. Then I simply spawn the proper one onto the creature, cycle through the itemproperties and add those to the existing bite attack that the creature already has equipped. Works perfectly.
Thanks again,
420
No problem at all. I might not be as good as Lightfoot at off the top of my head scripting, but if i have a piece of a script I can generally get it to work the way i want it to. Unfortantly for whatever reason, that property there was no way to make it work. Considering you can add it to a creatures properties as you did, makes me wonder if it is hard coded somewhere with a constant or not, thus when we tried to script a variable to the interger, it became invalid.
I do the same thing for the most part with my Henchman and NPC's, unless I want them to be a specific template/level. It was one of the things i enjoyed about Inifinite Dungeons and Darkness Over Daggerford.
I also tend to use a modified variant of
Cdaulepp's Random Properties, because I dislike having a given creature always being the exact same.
At any rate, glad you found a work around, was going to suggest that you just add the specific bite by script if needed, but you have already done so.
Well at least we know some of the properties aren't able to be added now, so it's something else we've gotten to learn even though the games been out for how long now?
p.s. Forgot to mention, tried the above script with several variants, including oPC = OBJECT_SELF. So no matter how it was done, by conversation, by onheartbeat, or in general, I couldn't get the property to be added. Just wanted to give the info so others would see that I tried various methods.
Modifié par Xovian, 27 février 2011 - 08:54 .