Create account / Log in

Chaining events not working

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Chaining events not working

Postby msoong » September 16th, 2020, 6:33 am

1. I have a counter that tracks number of $ a player has.
2. there is a dynamic property that holds the value, and various methods to increase and decrease the value.
3. I have a trigger action that'll listen for the increase and decrease events, and then play a sound.
(see enclosed screen shot 1)
4. As you can see after any one of those events, it will first play a sound, and that works fine.
5. I then added a prmsg call to print out the event (see enclosed 2).
6. That message never shows up in the log window.

Both of these are defined ABOVE the trigger action so trait order should be fine. I am tearing my hair out on what I might have overlooked. Any help appreciated!
Attachments
Screen Shot 2020-09-15 at 11.31.47 PM.png
print message
Screen Shot 2020-09-15 at 11.31.47 PM.png (24.71 KiB) Viewed 111 times
Screen Shot 2020-09-15 at 11.29.30 PM.png
Trigger action
Screen Shot 2020-09-15 at 11.29.30 PM.png (46.3 KiB) Viewed 111 times
msoong
 
Posts: 50
Joined: November 18th, 2015, 12:26 am

Re: Chaining events not working

Postby marktb1961 » September 16th, 2020, 6:40 am

Do your “various methods” comprise global key commands? If so, the suppress reports checkbox needs to be unticked in each GKC.

also, you have got a $$ in place of one of the $ symbols in your report line. I don’t think it is the cause but it might mess up your output when you eventually get to see it.
Platform used:
Vassal 3.4.3
MacOS Catalina
MacBook Pro (13-inch, 2016)
User avatar
marktb1961
 
Posts: 208
Joined: October 4th, 2018, 2:36 pm
Location: Liverpool, England

Re: Chaining events not working

Postby msoong » September 16th, 2020, 3:03 pm

>suppress reports checkbox needs to be unticked in each GKC.

Yep that is it, many thanks!
msoong
 
Posts: 50
Joined: November 18th, 2015, 12:26 am


Return to Module Design

Who is online

Users browsing this forum: No registered users and 6 guests