Matth85 Posted November 10, 2013 Share Posted November 10, 2013 Hey all! So, as I am about to release my second sword, I plan to start making a quest around them. In short, it consist of certain enemies having a certain chance of finding certain pieces of certain swords. Now, what I wonder is: How would I go about doing that? Say a dragon drop the hilt. Easy enough, add it to the list. However, how can I make sure the dragon will only drop 1 hilt, then never again? Question 2:Can I add stuff to the drop/loot list via a script?Say one sword vampiric. Could I add a script that would only let pieces of it drop if the player isa vampire? Also limiting the player for using the weapon unless they are a vampire? My scripting knowledge is.. well, non-existing.Though this all seem possible in my head, but I would love a little clarification :) Thanks! Matth Link to comment Share on other sites More sharing options...
taleden Posted November 10, 2013 Share Posted November 10, 2013 You could make a LeveledItem list for each separate part, with Chance None set to a separate GlobalVariable for each part. Then put a script on the player via quest reference alias which watches OnItemAdded, and whenever the player touches a part, set the corresponding GlobalVariable to 100 so that the "chance none" for that part's list is 100% and it won't drop again. Then, make one more LeveledItem list which includes all the other lists so that it picks randomly from among them, and use AddForm to add that main list to whatever creature drop lists you want. You'll just have to be careful to only do that once when the mod is installed; you probably shouldn't rely on Revert to clear it out and re-add it on every reload, because that would break any other mod with scripted additions to the same creature drop lists. Link to comment Share on other sites More sharing options...
Matth85 Posted November 10, 2013 Author Share Posted November 10, 2013 Good god, that sounds complicated! :pI guess I'll start hitting that wall once i get to it. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts