Gaj Ifeco
Registered:1398702470 Posts: 22
Posted 1442155821
Reply with quote
#1
Is there an event whereby entering a nebula, it cause depletion in energy, shields and even damage control teams
Arrew
Registered:1393602597 Posts: 2,750
Posted 1442160099
Reply with quote
#2
If you use the anti-positron cloud ship from my Sandbox this will happen. You'll find other mentions of it in the forums in my Advanced enemy types.
Was a super pain in the butt to program especially for the multi-ship sandbox.
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1442161686
Reply with quote
#3
The mission "The Waning Dark", which is included with Artemis, includes this as a plot point. You can look at the mission to see how it was done.
Gaj Ifeco
Registered:1398702470 Posts: 22
Posted 1442175011
Reply with quote
#4
Thanks for the info
Arrew
Registered:1393602597 Posts: 2,750
Posted 1442191973
Reply with quote
#5
You know what I don't think I've actually played that one :S ... Will look into it too.
Gaj Ifeco
Registered:1398702470 Posts: 22
Posted 1442210611
Reply with quote
#6
I couldn't see how to edit/view original missions, but maybe I can force an event based upon spatial coordinates
Arrew
Registered:1393602597 Posts: 2,750
Posted 1442217284
Reply with quote
#7
That's the easiest way to do it. Just make an if ship is in circle area event. But then the nebula must be spawned in that location.
Depends what you're trying to do exactly.
Trying to make the effect work in different locations where the nebula Is spawned was a massive pain. But you can do that to. What I did was to create a generic mesh inside the spawned cloud and the effect proced when the player is close enough to it. But I think that I'd probably be a bit too complicated for what you want to do.
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1442252379
· Edited
Reply with quote
#8
Quote:
Originally Posted by Gaj Ifeco I couldn't see how to edit/view original missions, but maybe I can force an event based upon spatial coordinates
You should be able to view a mission just by clicking on it, your browser should load up the XML and display it. However, depending on the mission, the browser may try to interpret the XML, which will lead to only the dialog being shown. There are two ways to edit XML files. The first is to right click on the file (which is in "dat/Missions" and then the name of the mission, and is named the same as the directory plus .xml) and select "Open With". Choose to look for an app on your system if you have to, and select "Wordpad.exe" in the Windows directory. This will bring up a selection of editor apps, including Wordpad and Notepad, so pick the one you want and select "Always use this application for this file type" so you'll select it automatically next time. The other method is to right click or click on the name of the file and rename it, so it has the extension ".txt" instead of ".xml". You can then edit it as you would any text file. When you're done, though, you'll have to remember to put the extension back the way it was. As Arrew said, there is no command to tell the script that you are entering a nebula. All you can do is check the distance to the static location of the nebula. That is how "The Waning Dark" does it.
Gaj Ifeco
Registered:1398702470 Posts: 22
Posted 1442260422
Reply with quote
#9
Cheers for the support
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1442321191
· Edited
Reply with quote
#10
I open and edit missions with the free version of XMLPad Pro from WMHelp .
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1442345354
Reply with quote
#11
I suppose I should also point out the Artemis Mission Editor, posted here: http://artemiswiki.pbworks.com/w/page/53389687/Mission%20Editor It takes the XML file, parses it, and presents it in a form slightly more familiar to programmers or scripters. It includes a point and click interface that lets you create commands and conditions more quickly and efficiently.