Hey all, I'm encountering an odd bug where if I implement the following code in my UI init trigger:
Player Group - Pick each player in (All Players) and do (Actions)
Actions
Variable - Set energybar[(Picked player)] = (Last created dialog item)
it stops all dialogs afterward from being created, whether or not it's a new dialog item or a completely new dialog.
An interesting thing to note is that
General - For each integer EnergyBarCnt from 1 to 12 with increment 1, do (Actions)
Actions
Variable - Set energybar[EnergyBarCnt] = (Last created dialog item)
works perfectly fine.
Come to think of it, I think it completely hangs the trigger.
Any thoughts?
EDIT: Yes, it completely hangs the trigger. My issue was that energybar[X] was indeed an array variable, but with only a size of 12 on a single index. There are actually 16 players in StarCraft II. Setting it to 16 fixes the issue.
Since no one has replied I'm going to go ahead and see if I can't help.
I am pretty sure there is not need to split a dialog into separate dialogs per player. Just use the one.
As for dialog items if you have multiple variables that keep track of the data the dialog item will need then all you do is change these values (such as text, picture, etc) via actions per player. That way you only need the one dialog item as well.
Oop missed the edit there. Anyway maybe this helps even more? You may want to lock your threads when solved as well so people like me don't look even more stupid.
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
To post a comment, please login or register a new account.
Hey all, I'm encountering an odd bug where if I implement the following code in my UI init trigger:
it stops all dialogs afterward from being created, whether or not it's a new dialog item or a completely new dialog.
An interesting thing to note is that
works perfectly fine.
Come to think of it, I think it completely hangs the trigger.
Any thoughts?
EDIT: Yes, it completely hangs the trigger. My issue was that energybar[X] was indeed an array variable, but with only a size of 12 on a single index. There are actually 16 players in StarCraft II. Setting it to 16 fixes the issue.
@HeroLief: Go
Since no one has replied I'm going to go ahead and see if I can't help.
I am pretty sure there is not need to split a dialog into separate dialogs per player. Just use the one.
As for dialog items if you have multiple variables that keep track of the data the dialog item will need then all you do is change these values (such as text, picture, etc) via actions per player. That way you only need the one dialog item as well.
Oop missed the edit there. Anyway maybe this helps even more? You may want to lock your threads when solved as well so people like me don't look even more stupid.