Author Topic: Can scripting talk to SEXPs yet  (Read 1672 times)

0 Members and 1 Guest are viewing this topic.

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Can scripting talk to SEXPs yet
A while back I was interested in using the scripting system to create user interfaces. Keyboard driven menus. Unfortunately I needed these interfaces to be able to communicate with the normal event based SEXPs. At the time there was no way to do this. It's been a while since I looked into this and I wondered if anything had changed?
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Can scripting talk to SEXPs yet
You can't directly access the keyboard with scripting (yet?), however, for communicating with SEXPs you can use script-eval and script-eval-num SEXPs, which will run scripting, or run scripting and return the value that it returns. You can also use SEXP variables via the mn.SEXPVariables array.
-C