Belgeranrg
Refugee
So I have an idea. I'm sure it's been done but I got the idea when, in another post, someone told me to have a block downgrade into itself in order to make an infinite source. That aside it got me thinking... What if I made a lockpick tool that would "upgrade" a locked container into an unlocked one. So what I tried was:
and then I added lines to a couple of items like this:
Then I made a crappy icon and tried it in game. What I'm running into now is that it constantly says it needs repair when attempting to open something... did I miss something or did I approach this the wrong way altogether?
Edit:I figured out what I was doing wrong. Well, sort of. Instead of treating the lockpick as a consumable I instead treated it like a tool and reworked the entire thing... Still have some bugs to work out but otherwise I think it might just work. Now to figure out how to do meshes, textures, and other visual things from my Mac.
Code:
<item name="toolLockPick">
<property name="CustomIcon" value="toolLockpick"/>
<property name="Meshfile" value="Items/Misc/sackPrefab"/>
<property name="Material" value="MresourceCoal"/>
<property name="EconomicValue" value="0"/>
<property name="SellableToTrader" value="false"/>
<property name="HoldType" value="21"/>
<property name="Degradation" value="250" param1="true"/>
<property name="Stacknumber" value="25"/> <!-- STK resource -->
<property class="Action1">
<property name="Class" value="Repair"/>
<property name="Delay" value="0.5"/>
<property name="Repair_amount" value="350"/>
<property name="Allowed_upgrade_items" value="toolLockpick"/>
</property>
</item>
Code:
<property class="UpgradeBlock">
<property name="ToBlock" value="cntDeskSafeInsecure"/>
<property name="Item" value="toolLockpick"/>
<property name="ItemCount" value="1"/>
<property name="UpgradeHitCount" value="10"/>
</property>
Edit:I figured out what I was doing wrong. Well, sort of. Instead of treating the lockpick as a consumable I instead treated it like a tool and reworked the entire thing... Still have some bugs to work out but otherwise I think it might just work. Now to figure out how to do meshes, textures, and other visual things from my Mac.
Last edited by a moderator: