Aller au contenu

Photo

Item droppable flag not working?


3 réponses à ce sujet

#1
midnightgeek

midnightgeek
  • Members
  • 30 messages
I've created some custom items with very powerful stats to try and boost the difficulty of my custom creature but sometimes he drops these overpowered items and I don't want that to ever happen.

I've made sure that the "droppable" and "stealable" checkboxes are unchecked in the creature's inventory, and I've re-exported every resource starting with the items and then the creature and then the area.  It doesn't seem to eliminate the chance of these items dropping.

Has anyone else experienced this?  Am I doing something wrong?  Any info or advice would be much appreciated.

#2
mikemike37

mikemike37
  • Members
  • 669 messages
Firstly, this is mostly speculative... im not really sure. but here goes:



I think the droppable flag *ensures* the item drops if you choose it to. setting droppable to unchecked means it goes through the usual system where the item has a % chance to be dropped. In the case of high-ranked enemies, this chance is pretty high, I think? You could probably test this theory by dropping his rank way down. As for ensuring it doesn't drop, I guess you could do a custom script that destroys it on his death maybe? kinda sucky I know, but it sounds like you're out of alternatives.

#3
midnightgeek

midnightgeek
  • Members
  • 30 messages
Yep that's exactly the same results I'm getting.



Hmm, I may resort to scripting if I have to but is there any other way to give my creature additional bonuses to damage and resistance other than with items?

#4
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
The droppable flag is misleading. It makes an item guarenteed to drop, but any item has a chance of dropping.



You'll likely have to play with the local variables on the creature, for the treasure system. If you don't want it to generate any loot, you can set the TS_TREASURE_GENERATED variable to 1. This will trick the system into thinking loot has already dropped, and nothing will drop at all.



If you want a more precise method of cutting off just equipment drops, it looks like TS_OVERRIDE_EQUIPMENT should work, although I've never used it myself. The number you put in is the chance for each item to drop. However, if you put it at 0.0, which is the default, the system will assume you haven't overriden anything and the equipment will drop. If you set it to a negative number, it should prevent any equipment not flagged as droppable from dropping.