Author Topic: Does the $LISTEN() function still work?  (Read 154 times)

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Does the $LISTEN() function still work?
« on: March 05, 2017, 01:33:26 PM »
http://manikus.reonis.com/Help/GPDL$LISTEN.html
I can't get it to do anything, and it's not listed in the GPDL functions in the scripting editor. If not, is there another way of getting text input?

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2131
Re: Does the $LISTEN() function still work?
« Reply #1 on: March 05, 2017, 03:59:55 PM »
You can only use $Listen in the 'Interactive Text Events".
The ones that start with ****SHAZAM*** (or something
like that).  It should still work there.  See:
http://dianneandpaul.net/UAF/Help/GPDL%24LISTEN.html

http://dianneandpaul.net/UAF/Help/GPDL.html

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: Does the $LISTEN() function still work?
« Reply #2 on: March 06, 2017, 04:38:32 AM »
Thanks Paul - I'm unclear on how this works - do I have to call a function after **SHAZAM**, write that function in a talk.txt file, compile it to talk.bin with gpdlcomp.exe and then place it somewhere?

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2131
Re: Does the $LISTEN() function still work?
« Reply #3 on: March 06, 2017, 09:56:59 AM »
Here is what I remember:

See:

http://dianneandpaul.net/UAF/Help/GPDLCompilingAGPDLProgram.html

Write a program, using your favorite text editor, and
put into it the function(s) you want to call during
gameplay.

Compile it with GPDLComp to produce a "talk.bin"

See:

http://dianneandpaul.net/UAF/Help/GPDLInvokingAGPDLProgram.html

In your design, create a text event, starting with the words
"**SHAZAM**",  and followed by the name of the function
you want to execute, along with parameters.

I think I might be able to produce an example design if
pressed.

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: Does the $LISTEN() function still work?
« Reply #4 on: March 06, 2017, 11:03:56 AM »
Thanks I've done that already - any idea of what directory it's meant to go in? I've tried data, resources, the main directory - none of it helps.

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2131
Re: Does the $LISTEN() function still work?
« Reply #5 on: March 06, 2017, 12:11:23 PM »
It could very well be that this is broken.  I think we
changed the folders around a lot since the talk.bin feature
was invented.  I'll try it myself and see if I can get it
to work.

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: Does the $LISTEN() function still work?
« Reply #6 on: March 06, 2017, 12:31:02 PM »
Thanks - I appreciate it. There's no other way of getting text input and putting it in an ASL that I'm missing, is there?

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9535
Re: Does the $LISTEN() function still work?
« Reply #7 on: March 06, 2017, 01:42:54 PM »
I am happy to report that this is not broken. :)

Your talk.bin file goes in the base folder of your design - where the executable is.

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: Does the $LISTEN() function still work?
« Reply #8 on: March 06, 2017, 02:12:38 PM »
I am happy to report that this is not broken. :)

Your talk.bin file goes in the base folder of your design - where the executable is.
I tried that as well and couldn't get it to work. I must be doing something wrong. Would it be possible to post a design that shows it working, or point me towards one which does so I can see what I'm doing wrong?

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9535
Re: Does the $LISTEN() function still work?
« Reply #9 on: March 06, 2017, 04:24:50 PM »

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: Does the $LISTEN() function still work?
« Reply #10 on: March 07, 2017, 03:35:23 AM »
Thanks guys - I've got it working now, not sure what I was doing wrong.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9535
Re: Does the $LISTEN() function still work?
« Reply #11 on: March 07, 2017, 02:54:46 PM »
Thanks guys - I've got it working now, not sure what I was doing wrong.

Trust me when I say that I know exactly what you are talking about.
At the beginning my process was to rack my brain until it was about to explode and then send a message to Paul,. Often as not he would report that it worked fine for him, and the rest of the time was either one of those huge obvious kinds of mistakes or a missing semi-colon. :D

 

anything