Lionhead Challenge Language Documentation

Up to contents.

7 Expression Statements

These can be used as either expressions or as statements

7.1 remove resource constant expression from object

Removes an amount of resource from an object, and returns the amount removed. If the amount asked for is greater than what is available than the full amount available is taken.

remove resource RESOURCE_TYPE_FOOD 20 from StoragePit

7.2 add resource constant expression to object

Adds an amount of resource to an object, and returns the amount added. If the amount asked for is greater than the storage space left then the remaining space only will be filled.

add resource RESOURCE_TYPE_FOOD 20 to StoragePit

This documentation generated by LHDOC, © Lionhead Studios 2000