RaiiZen Posted July 23, 2021 Share Posted July 23, 2021 Hi just wanna ask how to make xml if i kill zombie then give me item ( dukeCoins ) not drop, but like exp system. Im try using create_item at zombies entitiy but didnt work anyone please :) Link to comment Share on other sites More sharing options...
khzmusik Posted July 24, 2021 Share Posted July 24, 2021 The "Create_item" property only works with the "Eat" and "OpenBundle" classes, and those classes can only be used with an item's actions ("Action0" or "Action1"). You could do it with a buff or perk, but you would need a triggered effect action that gives the player items (Dukes in this case). I looked in the decompiled code, and AFAICT, the vanilla game does not have such an action. You would have to create one using C# and DMT. Also, AFAIK right now there is no way for the buff to determine which entity was killed by the player. So even if you did create that custom action, it might not do what you want. If you want to give the players Dukes when they kill zombies, then you might be better off just dropping them in loot bags. That is still a ton of work, but it is possible to do by modifying the XML. You would create a custom loot container for each zombie type (or for each amount of Dukes to drop) and assign that to each zombie with a 100% drop chance. Link to comment Share on other sites More sharing options...
RaiiZen Posted July 29, 2021 Author Share Posted July 29, 2021 many thanks man for your answer Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now