Hard Light Productions Forums

Modding, Mission Design, and Coding => The Scripting Workshop => Topic started by: IPAndrews on January 15, 2008, 07:19:08 am

Title: Can scripting talk to SEXPs yet
Post by: IPAndrews on January 15, 2008, 07:19:08 am
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?
Title: Re: Can scripting talk to SEXPs yet
Post by: WMCoolmon on January 15, 2008, 08:51:39 pm
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.