- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
What happens if we display a null dialog, or a dialog without buttons?
For some reason when I display my dialog, it just pauses the game and it's impossible to get out of (nothing shows up as a dialog/button).
Is this because it's null?
Here's the code where I initialize my dialog, called "intro". No matter where I try to access it, it just pauses the game but brings nothing up. What's wrong here?
What happens if we display a null dialog, or a dialog without buttons?
For some reason when I display my dialog, it just pauses the game and it's impossible to get out of (nothing shows up as a dialog/button).
Is this because it's null?
Here's the code where I initialize my dialog, called "intro". No matter where I try to access it, it just pauses the game but brings nothing up. What's wrong here?
JASS:
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
set intro = DialogCreate()
call DisplayTimedTextToPlayer(Player(0), 0, 0, 10, "here22")
set reviveBttn = DialogAddButton(intro, "Revive a monster.", 1)
set quitBttn = DialogAddButton(intro, quitMessage, 2)
call DialogSetMessage(intro, introMessage)
//call DialogDisplay(Player(0), intro, true)
//set up the basic trigger
call TriggerRegisterDialogEvent(t, intro)
call TriggerAddCondition(t, Condition(function introMain))
endfunction