Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
-------------------------------------------------------------------------------
-- counts the total number of ships in a player's fleet
--
function Player_NumberOfShips(iPlayer)
    local iRace = Player_GetRace(iPlayer) + 1
    local ShipCount = 0
    dofilepath([[data:scripts/race.lua]])
    dofilepath([[data:scripts/building and research/]] .. races[iRace][1] .. [[/build.lua]])
    for i, iCount in build do
        if (iCount.Type ~= 1) then
            ShipCount = ShipCount + Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping(iPlayer, iCount.ThingToBuild)
        end
    end
    return ShipCount
end
:: ::
Hide Download Bar
Ctrl + Shift + Z = Show/Hide Download Bar
Downloads
Download Manager (S3)
Clear
Left Click: Clear All Finished
Right Click: Undo last clear
100%
Download History
Download list is empty
UserFunctionPlayer_BequeathRUs.html
100%
00:00
513 KB
2.39 MB/s
UserFunctionPlayer_BequeathRUs.html
Source:
From:
To:
G:\HWRMResources\tutorials\hw2wiki.net\Functions_StandAlone\UserFunctionPlayer_BequeathRUs.html
Status:
513 KB / 513 KB ( 2.39 MB/s )
File Size:
513 KB
Virus scan:
Time Start:
2019.08.20 - 19:17:52
Time to Complete:
<00:01
Time Left:
00:00
Percent Done:
100%
Average Speed:
2.39 MB/s
mouse double click: download pause/resume
mouse middle click: download cancel
mouse double click: open file
mouse double click + Ctrl: open dir
mouse middle click: delete from list
mouse middle click + Ctrl: delete from system
press mouse button + Ctrl: drag & drop