• 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.

[vJASS] TriggerRegisterDialogEvent not working

Status
Not open for further replies.
Level 15
Joined
Aug 7, 2013
Messages
1,338
Hi,

I've been going at it with the dialog system in my map, but for some reason one of the dialogs refuses to have its buttons register with my trigger. I've tried everything, and what's more confusing is that the same exact syntax/access conditions I used for 2 similar dialogs work perfectly, but when copied over the trigger for this dialog doesn't fire off at all.

The offending function is releaseMon , it just does not fire off. The dialog for it displays, but pressing any button doesn't do anything, and none of my display texts come up either. This is odd, because I use the same mechanism for 2 other dialogs (in takeMon and dropoffMon ) and they work perfectly (there were some mysterious errors but that is a different topic).

So what have I done wrong? Here's all the relevant code (it's ugly, any hints on making reading this more elegant?).
 
Last edited:
Level 26
Joined
Aug 18, 2009
Messages
4,097
We do not see the dialog setup here, the type that runs releaseMon. Also in Farmer.create, why do you overwrite the globals everytime. Are you supposed to have only one Farmer at a time?

edit: So "Which monster will be released?\nOnce it's released into the wild,\n it's gone forever." shows but not "e1"?
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
The struct is initialized/created once, which initializes the dialog. This works for two of the functions, but if you go the function introMain , clicking the "releaseBttn" works, but afterwards no buttons on that new dialog work.

This is strange, because this works for other other buttons.

Edit: Well it works now. I think the game was trolling me. Because I just copied over takeMon again and it started to fire off. I guess I had some invisible copy error...
 
Last edited:
Status
Not open for further replies.
Top