Script Engine Changes

The place to discuss scripting and game modifications for X³: Farnham's Legacy

Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums

Deniskos
Posts: 161
Joined: Wed, 11. Jun 08, 21:40
x4

Re: Script Engine Changes

Post by Deniskos » Sat, 11. May 24, 13:02

Is it possible to make this script command

Code: Select all

add object context entry: id='String', class=[ObjectClass], icon=0, pageid=0, textid=0, script='ScriptName'
add a context option not to all objects of a given class, but only to a specific object?

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22239
Joined: Sun, 14. Nov 04, 23:26
x4

Re: Script Engine Changes

Post by Cycrow » Sat, 11. May 24, 19:29

i might see if i can add it. However, its already possible to do with that command

just check the "ishidden" event, if it doesn't match the object you want it to display it on, then return [TRUE] and then it'll only display on the specific object

Deniskos
Posts: 161
Joined: Wed, 11. Jun 08, 21:40
x4

Re: Script Engine Changes

Post by Deniskos » Sat, 11. May 24, 21:16

Okay, thanks, I got it. It turns out that you need to return [TRUE] in the registered script, and I was returning null.

Return to “X³: Farnham's Legacy - Scripts and Modding”