Jass:CustomVictoryBJ
Aus Mappedia
| Funktion: CustomVictoryBJ | |
|---|---|
| Parameter: | player boolean boolean |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CustomVictoryBJ takes player whichPlayer, boolean showDialog, boolean showScores returns nothing if AllowVictoryDefeat( PLAYER_GAME_RESULT_VICTORY ) then call RemovePlayer( whichPlayer, PLAYER_GAME_RESULT_VICTORY ) if not bj_isSinglePlayer then call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, GetLocalizedString( "PLAYER_VICTORIOUS" ) ) endif // UI only needs to be displayed to users. if (GetPlayerController(whichPlayer) == MAP_CONTROL_USER) then set bj_changeLevelShowScores = showScores if showDialog then call CustomVictoryDialogBJ( whichPlayer ) else call CustomVictorySkipBJ( whichPlayer ) endif endif endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| player | whichPlayer | |
| boolean | showDialog | |
| boolean | showScores |
