Size: 308
Comment:
|
← Revision 10 as of 2014-02-10 18:28:32 ⇥
Size: 585
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from city.getCarryingLoad | |
Line 2: | Line 3: |
troops = "t:100k" troopBean = GetTroops(troops) |
This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage: {{{ city.getCarryingLoad(troopBean) }}} == Example: == {{{ troopBean = GetTroops("t:100k") |
Line 5: | Line 12: |
carryingLoad = city.getCarryingLoad(troopBean) // the quantity of res your specified troopBean object can carry 0 miles based on logistics tech |
echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech }}} == Related Functions: == GetTroops() |
Line 8: | Line 19: |
CategoryScriptingLanguage | CategoryFunctions |
This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage:
city.getCarryingLoad(troopBean)
Example:
troopBean = GetTroops("t:100k") // converts troop string into troopBean object echo city.getCarryingLoad(troopBean) // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech