Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Discuss and distribute tools and methods for modding. Moderator - Grognak
Kiloku
Posts: 66
Joined: Mon Nov 19, 2012 5:52 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Kiloku » Sat May 04, 2019 3:52 pm

Sorry for double posting, but it is a new question.

I see that the vanilla dlcEventsOverwrite.xml has an OVERRIDE_ITEMS event list. However, I can't find anywhere that calls this event list. There are no references to this event list anywhere else in the XMLs.

When do these events happen in game?
Image
Woona
Posts: 27
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Woona » Sat May 04, 2019 4:11 pm

Kiloku wrote:Sorry for double posting, but it is a new question.

I see that the vanilla dlcEventsOverwrite.xml has an OVERRIDE_ITEMS event list. However, I can't find anywhere that calls this event list. There are no references to this event list anywhere else in the XMLs.

When do these events happen in game?


there is a list called "ITEMS". OVERRIDE_ITEMS is a version for AE. So, I think that if you add an event to list ITEMS, it will be used when you disable AE content. But if you add an event to OVERRIDE_ITEMS, it will be used when you enable AE content. I could be wrong though.
Kiloku
Posts: 66
Joined: Mon Nov 19, 2012 5:52 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Kiloku » Sun May 05, 2019 3:38 pm

I need help again. I added this event to my mod. It's a modified version of FUEL_FOR_DRONES from SleeperService's CE. The first <choice> tag is the one I'm having trouble with. When I find this event, it doesn't load BP_RANDOM_WEAPON (which is another event I added, and it works fine when called by every other event I tested). The fuel is removed, but there's no "Continue..." and the augment that BP_RANDOM_WEAPON was supposed to give does not appear.

I've looked at other events that work in a similar way, I've ran it through SMM's validator, I've read FTL-log.txt and modman-log.txt, and I could find nothing wrong.

Code: Select all

<event name ="FUEL_FOR_BLUEPRINT">
   <text>You arrive in the sector and are greeted by a science vessel waiting by the beacon. They hail you, "We find ourselves low on fuel and have a proposition. DEBUG THIS IS FUEL_FOR_BLUEPRINT"</text>
   <ship load="C_CIVILIAN_TRANSPORT" hostile="false"/>
   <choice>
      <text>Accept the offer.</text>
      <event>
         <item_modify>
            <item type="fuel" min="-4" max="-2"/>
         </item_modify>
         <choice>
            <text>Continue...</text>
            <event load="BP_RANDOM_WEAPON"/>
         </choice>
      </event>
   </choice>
   <choice req="AE_SCIENCE" hidden="true">
      <text>(On-board Science Lab) Offer to share data instead.</text>
      <event>
         <text>The scientists are thrilled. You discuss your latest findings and get an insight into their research as well. Their fuel shortage is almost forgotten during the exchange of ideas and they event insist that you take some drone parts with you for free.</text>
         <item_modify>
            <item type="drones" min="1" max ="3"/>
         </item_modify>
      </event>
   </choice>
   <choice>
      <text>Reject their offer.</text>
      <event/>
   </choice>
   <choice>
      <text>Seize their supplies by force.</text>
      <event>
         <text>You are about to commit an act of piracy. This might disturb your crew.</text>
         <choice hidden="true">
            <text>Go through with this and see how the crew reacts.</text>
            <event load="C_PIRACY_RESULTS"/>
         </choice>
         <choice hidden="true">
            <text>Change your mind and leave the civilians alone.</text>
            <event/>
         </choice>
         <choice req="AE_REQUISITION" hidden="true">
            <text>(Requisition License) This operation is legal. We are doing this for the good of the mission and the entire Federation.</text>
            <event>
               <text>The scientist double checks your license. "Is this really necessary? How are we supposed to get out of here without something to trade?" You explain that this is not your problem and proceed to confiscating their drone parts.</text>
               <item_modify>
                  <item type="drones" min="1" max ="3"/>
               </item_modify>
            </event>
         </choice>
         <choice req="ROCK_ARMOR" hidden="true">
            <text>(Rock Ship) You command a vessel of the brutal Rock people. Your crew knew that they were not signing on for a moral joyride here.</text>
            <event load="CE_PIRACY_ATTACK_ROCK"/>
         </choice>
         <choice req="CREW_STIMS" hidden="true">
            <text>(Mantis Ship) You command a vessel of the most vicious creatures in the galaxy. Your crew should expect things like this.</text>
            <event load="CE_PIRACY_ATTACK_MANTIS"/>
         </choice>
         <choice req="SLUG_GEL" hidden="true">
            <text>(Slug Ship) You command a vessel of the sly and treacherous Slugs. Your crew knew this mission wouldn't be that clean.</text>
            <event load="CE_PIRACY_ATTACK_SLUG"/>
         </choice>
      </event>
   </choice>
</event>


Image
Image
Woona
Posts: 27
Joined: Sun Sep 17, 2017 7:28 am
Location: Russia

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby Woona » Sun May 05, 2019 5:12 pm

Kiloku wrote:I need help again.


I think that every <event> with <choice> needs a <text>, too.

Code: Select all

<event name ="FUEL_FOR_BLUEPRINT">
   <text>You arrive in the sector and are greeted by a science vessel waiting by the beacon. They hail you, "We find ourselves low on fuel and have a proposition. DEBUG THIS IS FUEL_FOR_BLUEPRINT"</text>
   <ship load="C_CIVILIAN_TRANSPORT" hostile="false"/>
   <choice>
      <text>Accept the offer.</text>
      <event>
         <text id="INSERT_TEXT_HERE"/>
         <item_modify>
            <item type="fuel" min="-4" max="-2"/>
         </item_modify>
         <choice>
            <text>Continue...</text>
            <event load="BP_RANDOM_WEAPON"/>
         </choice>
      </event>
   </choice>

Who is online

Users browsing this forum: No registered users and 13 guests