• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Issues with creating a Dialog (Lua)

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 74
Joined
Aug 10, 2018
Messages
7,961
So the issue is weird. This code works as it should:
Lua:
function Test()
    DialogTest = DialogCreate()
    DialogAddButtonBJ(DialogTest, "TEST")
    DialogDisplayBJ(true, DialogTest, Player(0))
end
It creates the Dialog and everything works fine.

However, the problem occurs when trying to run the Test() function inside of another function. It simply doesn't work.
Lua:
function AnotherFunction()
    Test()
end
^ This doesn't work for whatever reason.

Any ideas?
 
Last edited:
Status
Not open for further replies.
Top