Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Gaj Ifeco

Registered:
Posts: 22
Reply with quote  #1 
Is there an event whereby entering a nebula, it cause depletion in energy, shields and even damage control teams
Arrew

Avatar / Picture

Registered:
Posts: 2,750
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:
Posts: 3,214
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:
Posts: 22
Reply with quote  #4 
Thanks for the info
Arrew

Avatar / Picture

Registered:
Posts: 2,750
Reply with quote  #5 
You know what I don't think I've actually played that one :S ... Will look into it too. [smile]
Gaj Ifeco

Registered:
Posts: 22
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

Avatar / Picture

Registered:
Posts: 2,750
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:
Posts: 3,214
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:
Posts: 22
Reply with quote  #9 
Cheers for the support
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
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:
Posts: 3,214
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.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.