• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "getCarryingLoad"
    Differences between revisions 4 and 8 (spanning 4 versions)
    Revision 4 as of 2013-07-31 05:05:03
    Size: 336
    Editor: tech
    Comment:
    Revision 8 as of 2013-08-20 14:47:42
    Size: 589
    Editor: Romulus
    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" This function will calculate the quantity of resources a specified troopBean object can carry 0 miles based upon current logistics tech. Usage:
    Line 4: Line 5:
    troopBean = GetTroops(troops)
    {{{
    city.getCarryingLoad(troopBean)
    }}}
    == Example: ==
    {{{
    troopBean = GetTroops("t:100k")
    Line 8: Line 13:
    carryingLoad = city.getCarryingLoad(troopBean) echo city.getCarryingLoad(troopBean)
    // outputs the quantity of res your specified troopBean object can carry 0 miles based on logistics tech
    Line 10: Line 16:
    // the quantity of res your specified troopBean object can carry 0 miles based on logistics tech }}}
    == Related Functions: ==
    GetTroops()
    Line 13: Line 21:
    CategoryScriptingLanguage CategoryFunctions 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

    GetTroops()


    CategoryFunctions

    getCarryingLoad (last edited 2014-02-10 18:28:32 by Inanna)