AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Modtools force seige2/21/2023 ![]() If id is \\ LOCAL, make it a member of the civ associated with the fort otherwise id must be an integer - groupId id Make the created unit a member of the specified group ( or none if id = - 1 ). race raceName specify the race of the unit to be created examples : DWARF HUMAN - caste casteName specify the caste of the unit to be created if not specified, the caste is randomly selected examples : MALE FEMALE - domesticate tames the unit if it lacks the CAN_LEARN and CAN_SPEAK tokens - civId id Make the created unit a member of the specified civ ( or none if id = - 1 ). Like those two functions there are two versions,Ī simple one that takes a string ID and one that takes a numeric ID ![]() RevertBuildingChanges(id, category): RevertBuildingChangesAdv(typ, subtyp, custom, category): These two functions revert changes made by “ChangeBuilding” and String, the second takes a numeric ID triplet (which can specify anyīuilding, not just workshops or furnaces). The first version of this function takes a workshop or furnace ID as a When adding you may specify “key”, a string DF hotkey ID. Is true then the building is added to the specified category, else it These two functions apply changes to the build sidebar menus. Specify an entity, the current fortress race is used.ĬhangeBuilding(id, category, ]): ChangeBuildingAdv(typ, subtyp, custom, category, ]): Only if it is permitted in the current entity. Use this if you want to change a building, but ![]() The return table is structured like so: IsEntityPermitted(id): IsEntityPermitted returns true if DF would normally allow you to buildĪ workshop or furnace. No difference if it is a custom building or a hardcoded one. The passed in ID should be the building’s string identifier, it makes GetWShopType(id): GetWShopIDs returns a workshop or furnace’s ID numbers as a table. This string ID should match what is expectedīy eventful for hardcoded buildings. Global Functions: GetWShopID(btype, bsubtype, bcustom): GetWShopID returns a workshop’s or furnace’s string ID based on its ![]() Note that to allow any of your changes to take effect you need to start the ChangeBuildingAdv ( typ, styp, - 1, "CONSTRUCTIONS", false ) ![]()
0 Comments
Read More
Leave a Reply. |