# Create Tutorial
Grammar — Create a tutorial tip with title title, description description, icon icon, and movie __movie|Movie __for players and set its flashing state to flashing
Flags —Native
|Action
Creates a tutorial that will display above the command card, and also adds the tutorial to the help panel.
# Arguments
playergroup
— Playerstext
— Titletext
— Descriptionstring
<filepath> — Iconstring
<filepath> — Moviebool
— Flashing
Returns — void
native void HelpPanelAddTutorial(
playergroup players,
text titleText,
text descriptionText,
string iconPath,
string moviePath,
bool flashing,
);
# Related
Category: UI / Help Panel
- Help Item — preset —
int
- Destroy HelpItem —
void
— HelpPanelDestroyHelpItem - Last Created HelpItem —
int
<preset::HelpItem> — HelpPanelLastCreatedHelpItem - Display Help Page —
void
— HelpPanelDisplayPage - Create Tip —
void
— HelpPanelAddTip - Destroy All Tips —
void
— HelpPanelDestroyAllTips - Destroy All Tutorials —
void
— HelpPanelDestroyAllTutorials - Format Tip Title —
text
— libNtve_gf_FormatTipTitle - Clear All Tip Alerts —
void
— TipAlertPanelClear - Create Cheat —
void
— HelpPanelAddHint - Create Tutorial —
void
— HelpPanelAddTutorial - Create Message Log Entry —
void
— HelpPanelAddMessage - Enable/Disable Help Panel Tech Tree Button —
void
— HelpPanelEnableTechTreeButton - Enable/Disable Help Panel Tech Glossary Button —
void
— HelpPanelEnableTechGlossaryButton - Show/Hide Help Panel Tech Tree Race —
void
— HelpPanelShowTechTreeRace - Show/Hide Help For Unit —
void
— TechTreeUnitHelp - Set Help Panel Default Visibility —
void
— TechTreeUnitHelpDefault - Set Help Item Darkened When Viewed —
void
— HelpPanelSetHelpItemDarkenedWhenViewed
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:9869
// Automatic Variable Declarations
// Implementation
HelpPanelAddTutorial(PlayerGroupAll(), lp_title, lp_description, lp_icon, lp_movie, true);
if ((libCamp_gf_TS_Tutorial_AlreadyExisted(lp_movie) == true)) {
return ;
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:9963
lv_index = 1;
for ( ; ( (auto7E6D0CC3_ai >= 0 && lv_index <= auto7E6D0CC3_ae) || (auto7E6D0CC3_ai < 0 && lv_index >= auto7E6D0CC3_ae) ) ; lv_index += auto7E6D0CC3_ai ) {
HelpPanelAddTutorial(PlayerGroupAll(), libCamp_gv_tSX_Tutorial_HistoryTitle[lv_index], libCamp_gv_tSX_Tutorial_HistoryDescription[lv_index], libCamp_gv_tSX_Tutorial_HistoryIcon[lv_index], libCamp_gv_tSX_Tutorial_HistoryMovie[lv_index], false);
}
}