SetCampaignMenuRaceBJ
- Parameters
-
campaignNumber integer
- comment
- patch
1.00
- Source
- Blizzard.j
- return type
nothing
- Source code
function SetCampaignMenuRaceBJ takes integer campaignNumber returns nothing if (campaignNumber == bj_CAMPAIGN_INDEX_T) then call SetCampaignMenuRace(RACE_OTHER) elseif (campaignNumber == bj_CAMPAIGN_INDEX_H) then call SetCampaignMenuRace(RACE_HUMAN) elseif (campaignNumber == bj_CAMPAIGN_INDEX_U) then call SetCampaignMenuRace(RACE_UNDEAD) elseif (campaignNumber == bj_CAMPAIGN_INDEX_O) then call SetCampaignMenuRace(RACE_ORC) elseif (campaignNumber == bj_CAMPAIGN_INDEX_N) then call SetCampaignMenuRace(RACE_NIGHTELF) elseif (campaignNumber == bj_CAMPAIGN_INDEX_XN) then call SetCampaignMenuRaceEx(bj_CAMPAIGN_OFFSET_XN) elseif (campaignNumber == bj_CAMPAIGN_INDEX_XH) then call SetCampaignMenuRaceEx(bj_CAMPAIGN_OFFSET_XH) elseif (campaignNumber == bj_CAMPAIGN_INDEX_XU) then call SetCampaignMenuRaceEx(bj_CAMPAIGN_OFFSET_XU) elseif (campaignNumber == bj_CAMPAIGN_INDEX_XO) then call SetCampaignMenuRaceEx(bj_CAMPAIGN_OFFSET_XO) else // Unrecognized campaign - ignore the request endif endfunction