Questions: CampaignVars, empty messages, WIN_SCENARIO_CALLBA
Posted: Tue Jul 17, 2012 6:40 am
Hi
I am bit stuck with my current campaign, need some help with this:
I am trying to use campaign vars but cannot find any example, declared then in CAMPAIGN.TXT (VAR maxcarrymis1;) and then using them SetCampaignVar(maxcarrymis1,10); gives an error saying it does not exist or something similar.
Also I try to display messages ingame but they appear empty, ShowUIScreenY( "BattleHead0", "Anim1", "IDS_SPBM1_END"); Those are texts that are defined and even appear in the scenario selection screen.
And the last, calling MenLeftInUnit inside FUNCTION WIN_SCENARIO_CALLBACK(winner) throws an error, maybe at that point units are already unloaded from the map?
Thanks
I am bit stuck with my current campaign, need some help with this:
I am trying to use campaign vars but cannot find any example, declared then in CAMPAIGN.TXT (VAR maxcarrymis1;) and then using them SetCampaignVar(maxcarrymis1,10); gives an error saying it does not exist or something similar.
Also I try to display messages ingame but they appear empty, ShowUIScreenY( "BattleHead0", "Anim1", "IDS_SPBM1_END"); Those are texts that are defined and even appear in the scenario selection screen.
And the last, calling MenLeftInUnit inside FUNCTION WIN_SCENARIO_CALLBACK(winner) throws an error, maybe at that point units are already unloaded from the map?
Thanks