Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]
Posted: Sun Dec 20, 2015 1:49 pm
There is a weapons/drones creator app ?
Official Forum for FTL: Faster Than Light and Into the Breach
https://www.subsetgames.com/forum/
Code: Select all
<eventList name="gain">
<event load="box_free"/>
</eventList>
<event name="box_free">
<event>
<text>you found a box of scrap</text>
<autoReward level="MED">scrap_only</autoReward>
</event>
<event>
<text>you found a box of fuel</text>
<autoReward level="HIGH">fuel</autoReward>
</event>
</event>
For this stuff it's best to just browse the game files for a similar example, like:Techno_Zed wrote:i am almost certain that is not going to work...
please fix it and tell me why it was wrong.(if you could)
Code: Select all
<event name="LANIUS_GROUP_AUTO" unique="true">
<text>blablablabla</text>
<choice hidden="true">
<text>Try to use them to delay the Rebels.</text>
<event load="LANIUS_GROUP_AUTO_LIST"/>
</choice>
[....]
</event>
<eventList name="LANIUS_GROUP_AUTO_LIST">
<event>
<text>blablabla</text>
</event>
<event>
<text>blabla</text>
<ship load="LANIUS_SHIP" hostile="true"/>
</event>
<event>
<text>bla</text>
<autoReward level="MED">standard</autoReward>
<modifyPursuit amount="-1"/>
</event>
</eventList>
Code: Select all
<eventList name="gain">
<event load="box2"/>
<event load="gas_bugs"/>
<event load="box"/>
</eventList>
<eventList name="box">
<event>
<text>you came across a box of scrap</text>
<autoReward level="LOW">scrap_only</autoReward>
</event>
<event>
<text>you came across a box of fuel</text>
<autoReward level="MED">fuel</autoReward>
</event>
</event>
<eventList name="box2">
<event>
<text>you found a big box of scrap</text>
<autoReward level="MED">scrap_only</autoReward>
</event>
<event>
<text>you found a big box of fuel</text>
<autoReward level="HIGH">fuel</autoReward>
</event>
</event>
Looks like it should. But why wouldn't you just put those events right in the event list? Also, your closing tags aren't matching, though I'm not sure if that's enough of an error to become a problem.Techno_Zed wrote: so would this work ?
Do you mean the 'ship load="?"' stuff or something deeper than that? It goes to a blueprint (<ship name="?">) with surrenders, escapes etc. from there, only then to auto_blueprint of the list of names of actual ships (<shipBlueprint name="?">).Manters wrote:Not sure if this is somewhere else on the forum or has been brought up in this topic, but does anyone have a list of the "Event" names of enemy ships (The names used in the scripts when coding events) with the actual ship that it spawns listed beside it?
Ships are spawned by calling separate ship events which in return randomly select a ship from a list they contain. The ship events are stored in events_ships.xml, the ship lists are found in autoBlueprints.xml.Manters wrote:Not sure if this is somewhere else on the forum or has been brought up in this topic, but does anyone have a list of the "Event" names of enemy ships (The names used in the scripts when coding events) with the actual ship that it spawns listed beside it?
Nope, that's not possible. FTL's event mechanics are pretty limited.Dikdraak wrote: For a certain mechanic, I need to have a variable whose value can be subtracted or added to by choices made in an event. This value should also influence the frequency of certain events and the availability of certain choices. I have absolutely no idea how I should do this within FTL or if it is possible to begin with. Could anyone help me?
I see. Is there any hope of a framework or engine rewrite being released that could expand the game's modability? After Overdrive was abandoned last week, I don't think there is.Sleeper Service wrote:Nope, that's not possible. FTL's event mechanics are pretty limited.Dikdraak wrote: For a certain mechanic, I need to have a variable whose value can be subtracted or added to by choices made in an event. This value should also influence the frequency of certain events and the availability of certain choices. I have absolutely no idea how I should do this within FTL or if it is possible to begin with. Could anyone help me?