harshit97 Posted July 8, 2018 Share Posted July 8, 2018 I want to make a script to batch change armor based on the type of outfit (like sneak build, that I will define it) I choose. As of now, I don't see it possible unless Warhorse Studios release API or better support. However, I have pretty noob game modding skills (but experienced dev). So did any of you modders found a way to run scripts or alternate? I don't want to perform scripted clicks based on game screenshots as that will be very slow. Link to comment Share on other sites More sharing options...
HMM333 Posted July 11, 2018 Share Posted July 11, 2018 You mean something like this? function EquipWeaponBow(entity) local id = entity.inventory:FindItem("03589a69-d3f4-403a-a389-ca021e7c8f40"); if (id == nil) then id = ItemManager.CreateItem("03589a69-d3f4-403a-a389-ca021e7c8f40",1,1); id = entity.inventory:AddItem(id); end entity.actor:EquipInventoryItem(id); local id = entity.inventory:FindItem("ad6f0f01-aec4-44d1-982c-1210eb01b74a"); if (id == nil) then id = ItemManager.CreateItem("ad6f0f01-aec4-44d1-982c-1210eb01b74a",1,50); id = entity.inventory:AddItem(id); end Link to comment Share on other sites More sharing options...
harshit97 Posted July 11, 2018 Author Share Posted July 11, 2018 You mean something like this? function EquipWeaponBow(entity) local id = entity.inventory:FindItem("03589a69-d3f4-403a-a389-ca021e7c8f40"); if (id == nil) then id = ItemManager.CreateItem("03589a69-d3f4-403a-a389-ca021e7c8f40",1,1); id = entity.inventory:AddItem(id); end entity.actor:EquipInventoryItem(id); local id = entity.inventory:FindItem("ad6f0f01-aec4-44d1-982c-1210eb01b74a"); if (id == nil) then id = ItemManager.CreateItem("ad6f0f01-aec4-44d1-982c-1210eb01b74a",1,50); id = entity.inventory:AddItem(id); endYes. Can I do something like that? Link to comment Share on other sites More sharing options...
Recommended Posts