[nbos] [AS] Scripting

Daniel Williamson enki_29205 at yahoo.com
Mon Aug 20 21:20:36 EDT 2007


I wrote a script to do this already. Its here, called fastbang : http://www.cartography-services.co.uk/page31.html

Mike Oliver is kind enough to host it. It will generate the contents for each star in a sector file. If the system is a multiple, it will generate the contents for each star in the multiple. If the system has a white dwarf in it, it will skip the system on the premise that the event that created the white dwarf destroyed all of the planets in the system.

Dan Williamson
Baltimore, Maryland

___________________________________________________
"Umm..."

----- Original Message ----
From: Justin Akkerman <justin.akkerman at gmail.com>
To: nbossoftware at nbos.com
Sent: Sunday, August 19, 2007 6:56:35 PM
Subject: [nbos] [AS] Scripting

G'Day,



I like to import real stars. I want to get the application to generate their child bodies automatically. It is a bore to click each star and do this manually.



I have written a script that then generates their child bodies. The script loops through the sector. It checks each system to see if it has any children. If it has children, it goes to the next. If it has no children, the script then generates children.




The problem is that each time it generates children, a dialogue box pops up and confirms that this is what i want to do.



How can I command the application to generate the child bodies. Keep all the star attributes. Send a confirmation so the dialogue box either does not come up or is answered in the afirmative when it does?



I have looked through the Alien API a fair bit, but there does not seem to be a command which does this. There are all sorts of commands if I want to set every imaginable detail. I do not want to get so detailed with my scripting yet. I just want to call on the same ruotine that is brought up by the right click on the system which generates system contnets without changeing the star properties.









____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pairlist.net/pipermail/nbossoftware/attachments/20070820/47f59662/attachment.html>


More information about the Nbossoftware mailing list