scripting:reference:system_functions:constructionfunctions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:reference:system_functions:constructionfunctions [2020/01/29 06:55] – mit | scripting:reference:system_functions:constructionfunctions [2023/05/05 03:13] (current) – [sysAddBuilding] mit | ||
---|---|---|---|
Line 4: | Line 4: | ||
==== sysIsBuildingPositionValid ==== | ==== sysIsBuildingPositionValid ==== | ||
- | ^ Format | sysIsBuildingPositionValid( | + | ^ Format | sysIsBuildingPositionValid( |
^ Description | Checks whether the player' | ^ Description | Checks whether the player' | ||
- | ^ Parameters | Building Type number | ||
^ Returns | 1 if the position is valid, 0 if not | | ^ Returns | 1 if the position is valid, 0 if not | | ||
// | // | ||
Line 24: | Line 23: | ||
==== sysConstructBuilding ==== | ==== sysConstructBuilding ==== | ||
- | ^ Format | sysConstructBuilding ( [Building Type], [WorldX], [WorldY], [ [Building_Name] ] ) )| | + | ^ Format | sysConstructBuilding ( Building_Type, WorldX, WorldY, [Building_Name] ) )| |
^ Description | Used to construct a new building to your world. The server handles all the standard construction processes (like deducting building tax or construction materials) according to the current settings applied on your world. If you just want to add a building directly, without applying the usual construction rules, use sysAddBuilding | ^ Description | Used to construct a new building to your world. The server handles all the standard construction processes (like deducting building tax or construction materials) according to the current settings applied on your world. If you just want to add a building directly, without applying the usual construction rules, use sysAddBuilding | ||
- | ^ Parameters | Building Type number | | ||
- | ^ | World Coordinate X | | ||
- | ^ | World Coordinate Y | | ||
- | ^ | (Optional) Building Name | | ||
^ Returns | 1 if the building was added to the world, 0 if not | | ^ Returns | 1 if the building was added to the world, 0 if not | | ||
// | // | ||
Line 47: | Line 42: | ||
==== sysAddBuilding ==== | ==== sysAddBuilding ==== | ||
- | ^ Format | sysAddBuilding ( [Building Type], [Owner ID], [MapX], [MapY], [ [Building_Name], | + | ^ Format | sysAddBuilding ( Building_Type, OwnerID, MapX, MapY, [Building_Name], |
^ Description | Used to add a new building to your world | | ^ Description | Used to add a new building to your world | | ||
- | ^ Parameters | + | ^ Returns |
- | ^ | Owner player ID | | + | |
- | ^ | Map Coordinate X | | + | |
- | ^ | Map Coordinate Y | | + | |
- | ^ | (Optional) Building Name | | + | |
- | ^ | (Optional) Construction Amount 1 | | + | |
- | ^ | (Optional) Construction Amount 2 | | + | |
- | ^ Returns | 1 if the building was added to the world, 0 if not | | + | |
// | // | ||
< | < | ||
Line 73: | Line 61: | ||
==== sysAddBuildingWorld ==== | ==== sysAddBuildingWorld ==== | ||
- | TBD\\ | + | Format for this is same as the ' |
==== sysGetBuildingTypeName ==== | ==== sysGetBuildingTypeName ==== | ||
- | TBD // | + | '' |
// | // | ||
==== sysGetConstructionMaterialsAmount ==== | ==== sysGetConstructionMaterialsAmount ==== | ||
- | TBD // | + | '' |
// | // | ||
==== sysGetBuildingTypeBasePrice==== | ==== sysGetBuildingTypeBasePrice==== | ||
- | TBD // | + | '' |
// | // | ||
+ | |||
+ | ==== sysGetSecondaryConstructionPrice ==== | ||
+ | '' | ||
+ | // | ||
+ | |||
==== sysIsInBuildZone ==== | ==== sysIsInBuildZone ==== | ||
- | TBD // | + | '' |
// | // | ||
+ | |||
==== sysIsInNoBuildZone ==== | ==== sysIsInNoBuildZone ==== | ||
- | TBD // | + | '' |
// | // | ||
scripting/reference/system_functions/constructionfunctions.1580302549.txt.gz · Last modified: 2020/01/29 06:55 by mit