if I want to return the unused space left in the campfire...how would I write that, so I can make something happen when the space is at a certain level.
I have tried writing it like these, assuming you have opened the campfire to add wood, but the command returns "there is not enough space" so it makes the fire go out:
1
2
3
4
5
6
2
3
4
5
6
$i=current(); if (storage("object", $i, 1)<=10,000) { msg "The campfire has smothered, there is too much wood!"; freestate "self",4; freestate "self",5; }
and this line i tried instead:
1
if (storage($i,1)<=10000){
I have tried 100 variations of the 2 lines above, but I may be way off in how I am writing the script.
in the command description it says "modes" are 0 freespace...1 unused space, and 2 to return the max capacity. I been trying 0 or 1. So can you tell me how to write the storage command to return the "unused" space?
thank you in advance for any input.