Jass documentation Database

JASS Documentation Database REFORGED

Results for the query "MeleeDefeatDialogBJ" as a "function"

The search keyword must be a single word (no spaces).

Function MeleeDefeatDialogBJ

Line: 5433
Location: blizzard.j
Constant? no
Type: function
Arguments: player whichPlayer, boolean leftGame
Returns: nothing


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function MeleeDefeatDialogBJ takes player whichPlayer, boolean leftGame returns nothing
  2.     local trigger t = CreateTrigger()
  3.     local dialog  d = DialogCreate()
  4.     local string formatString
  6.     // Display "player was defeated" or "player has left the game" message
  7.     if (leftGame) then
  8.         set formatString = GetLocalizedString( "PLAYER_LEFT_GAME" )
  9.     else
  10.         set formatString = GetLocalizedString( "PLAYER_DEFEATED" )
  11.     endif
  13.     call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, formatString)
  15.     call DialogSetMessage( d, GetLocalizedString( "GAMEOVER_DEFEAT_MSG" ) )
  17.     // Only show the continue button if the game is not over and observers on death are allowed
  18.         call DialogAddButton( d, GetLocalizedString( "GAMEOVER_CONTINUE_OBSERVING" ), GetLocalizedHotkey("GAMEOVER_CONTINUE_OBSERVING") )
  19.     endif
  21.     set t = CreateTrigger()
  22.     call TriggerRegisterDialogButtonEvent( t, DialogAddQuitButton( d, true, GetLocalizedString( "GAMEOVER_QUIT_GAME" ), GetLocalizedHotkey("GAMEOVER_QUIT_GAME") ) )
  24.     call DialogDisplay( whichPlayer, d, true )
  25.     call StartSoundForPlayerBJ( whichPlayer, bj_defeatDialogSound )
  26. endfunction
"That noise? That’s a bad noise." Hmmm... there's no info about this keyword... be the first one in contribute with the keyword MeleeDefeatDialogBJ. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.0772 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...