Darwin-River / Ex-Machinis

Ex Machinis is a multiplayer space game in which players program fleets of remotely-piloted spacecraft to trade and manufacture goods and materials for profit.
4 stars 0 forks source link

Need word to confirm resources are available to perform protocol #243

Closed darozak closed 2 years ago

darozak commented 2 years ago

It would be very useful to create a command that ensures all required resources are available before performing a protocol.

darozak commented 2 years ago

Defined bIHaveThis and bIHaveThese on http://exmachinis.wiki. These words return a Boolean value to indicate whether a single resource and quantity or list of resources and quantities are present in the drone's cargo hold. I still need to test these to make sure that they are working properly.

darozak commented 2 years ago

Renamed as sIHaveThis and sIHave these. Categorized as Boolean functions. Must check to make sure that they're working correctly.

darozak commented 2 years ago

I had to create >= and <= commands to support the sIHaveThis function. However, I'm having trouble creating Wiki Links for >= and <= because adding = to {{e|{{Less than}}{{Equals}}|<=}} appears to have an adverse effect. I think I fixed this by changing the statement to {{e|{{Less than}}{{Equals}}|<{{Equals}}}}.

darozak commented 2 years ago

That seems to have done the trick. I tested sIHaveThis and confirmed that it worked. Next, I need to confirm that sIHaveThese works as expected.

darozak commented 2 years ago

I tested sIHaveThese and it works perfectly!