Jump to content

Recommended Posts

Posted

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.

Posted

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
Posted

 

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

Yes. Can I do something like that?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...