Conversions
- Parameters
desire integerunitid integer- comment
- patch
1.00
- Source
- common.ai (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function Conversions takes integer desire, integer unitid returns nothing if GetUnitCount(unitid) >= desire then return endif if unitid == HIPPO_RIDER then call ConvertNeeds(ARCHER) call ConvertNeeds(HIPPO) call MergeUnits(desire,ARCHER,HIPPO,HIPPO_RIDER) elseif unitid == BLK_SPHINX then call ConvertNeeds(OBS_STATUE) call ConvertUnits(desire,OBS_STATUE) endif endfunction