Ship OXP's should have dummy worldscript.
Posted: Sat Apr 16, 2011 6:14 pm
Hi,
Just a random thought. It would be quite helpful to scripters who may wish to like_ship to a OXP ship with a custom role to have a method of checking if that ship's OXP is present or not.
If ship OXP makers included as standard a 'dummy' worldscript (headers and a this.startup with a log command perhaps), it would be possible for another worldscript to check to see if the OXP is installed.
For example I'm currently working on a player acting as escort to NPC traders OXP. I could create two custom roles "mother_griff" and "mother_standard". My shipdata.plist could include like_ships to Griff's models and the standard named models. Then my worldscript could check to see if Griffs shipset is installed by referencing it's dummy worldscript and if so use the "mother_griff" role throughout the rest of the script and if not the "mother_standard".
Maybe I'm missing something but I don't think there is an another way to check for the presence of a particular model?
Cheers,
Just a random thought. It would be quite helpful to scripters who may wish to like_ship to a OXP ship with a custom role to have a method of checking if that ship's OXP is present or not.
If ship OXP makers included as standard a 'dummy' worldscript (headers and a this.startup with a log command perhaps), it would be possible for another worldscript to check to see if the OXP is installed.
For example I'm currently working on a player acting as escort to NPC traders OXP. I could create two custom roles "mother_griff" and "mother_standard". My shipdata.plist could include like_ships to Griff's models and the standard named models. Then my worldscript could check to see if Griffs shipset is installed by referencing it's dummy worldscript and if so use the "mother_griff" role throughout the rest of the script and if not the "mother_standard".
Maybe I'm missing something but I don't think there is an another way to check for the presence of a particular model?
Cheers,