• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Issues with creating a Dialog (Lua)

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,511
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