[WIP] Some Events

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
Blanco
Posts: 2
Joined: Mon Jul 07, 2014 7:21 pm

[WIP] Some Events

Post by Blanco »

Since I`ve heard about the existence of FTL mods I became interested in creating more events to diversify it a bit. It`s ok, maybe even better for a session performance to know all the events and their possible results, but i think at least more variety wouldn`t.

So I begun reading some guides, downloading some tools (Slipstream Mod Manager, Notepad ++, Error Checker), and planning some events. Whenever I`ve had trouble, so far, I`ve tried to look in the original xmls, or modded ones, and in this forum. I noticed where <event/> is needed in one topic, and wondered if there are more cases like that.

I try to mantain the FTL balance and flavor, even though I`ve drawn ideas from some series and movies like Firefly (the cattle transport) and Star Wars (racing one). Ah, I also try to give more blue options to races and ship systems that are not prone no get them in the original, like Humans and Doors.

I`ll post them here, especially to have any possible error I overlooked pointed to me, but suggestions, and feedback too, are appreciated. I have yet to order the options accordingly to the original events, but i`ll do it soon enough.

I have yet to integrate them in the sector_data, for now all I did was what was taught in the Custom Event tutorial to make them appear at the first sector to facilitate testing.

Code: Select all

<!-- --------------------
STRUCTURE SECTORS
 ----------------------->

<!--default to prevent crashes if bad sector names are loaded-->
<sectorDescription name="STANDARD_SPACE" minSector="0" unique="false">
	<nameList>
		<name>Federation Space</name>
	</nameList>
	<trackList>
		<track>civilian</track>
		<track>cosmos</track>
		<track>milkyway</track>
		<track>lostship</track>
	</trackList>
	<startEvent>START_BEACON</startEvent>
	<event name="NEW_LIST" min="8" max="10"/>
<!--
<event name="STORE" min="1" max="2"/>
	<event name="ITEMS" min="1" max="1"/>
	<event name="NEUTRAL_CIVILIAN" min="2" max="4"/>
	<event name="NOTHING" min="1" max="2"/>
	<event name="DISTRESS_BEACON" min="1" max="2"/>
	<event name="HOSTILE_CIVILIAN" min="4" max="6"/>
	<event name="NEBULA" min="0" max="4"/>
	<event name="QUESTS" min="1" max="1"/>
	<event name="HOSTILE1" min="2" max="2"/>
	<event name="HOSTILE_BOARDING" min="0" max="0"/>
-->
</sectorDescription>
Opting out the others as I was testing the new ones, of course.

Code: Select all

<eventList name="NEW_LIST">
	<event load="RACER"/>
	<event load="FANATICS"/>
	<event load="HERD"/>
</eventList>

Code: Select all

<event name="RACER">
	<text>As you recharge your FTL drive, you discover a hidden racing arena located on a small moon of a human colony.</text>
		<choice>
			<text>Stand clear, such operations were always frowned upon by the Federation.</text>
			<event/>
		</choice>
		<choice hidden="true">
			<text>Land your ship and visit the facilities, maybe you could find something or someone willing to aid you in the mission.</text>
			<event load="RACER_LIST" />
		</choice>
		<choice req="human" hidden="true">
			<text>(Human Crew) Have your Human crew-member go undercover.</text>
			<event load="RACER_HUMAN_LIST" />
		</choice>
</event>

<eventList name="RACER_LIST">
	<event>
		<text>Your crew is ill-tolerated on the site, and you soon are asked to leave.</text>
	</event>
	<event>
		<text>As you try without any sucess to estabilish any contacts that could prove helpful, a large noise draws you out of the building. A drunk pilot trying to land has rammed your ship, damaging the hull. Nothing good comes from meddling with this kind of people.</text>
		<damage amount="4"/>
	</event>
	<event>
		<text>Surprisingly, the owner is a stout pro-Federation man and offers to patch your hull up to assist in your journey.</text>
		<damage amount="-9"/>
	</event>
</eventList>

<eventList name="RACER_HUMAN_LIST">
	<event>
			<text>The only thing your crewman managed to secure was a brawl and a black eye. You admonish him and plot your course to the next system.</text>
	</event>
	<event>
		<text>The crewman manages to make a deal with a veteran pilot. As long as you are willing to pay his debts, he will join your crew.</text>
			<choice>
				<text>Pay his debts and welcome him on board.</text>
					<event>
						<item_modify>
							<item type="scrap" min="-34" max="-27"/>
						</item_modify>
						<crewMember pilot="2" amount="1" class="human"></crewMember>
					</event>
			</choice>
			<choice>
				<text>Politely refuse.</text>
				<event/>
			</choice>
	</event>
	<event>
		<text>Apparently, it is common knowledge around here that you can extract some scrap from a nearby deposit without much hassle.</text>
			<choice>
				<text>Extract some scrap.</text>
				<event>
					<autoReward level="MED">scrap_only</autoReward>
				</event>
			</choice>
	</event>
</eventList>

Code: Select all

<event name="FANATICS">
	<text>You approach a remote Planet to find the wrecked remains of a Zoltan ship. There is a message echoing in loop in which a frightened Zoltan screams for help, it seems he was taken by a group of Rockmen.</text>
		<choice>
			<text>Some mysteries are better left unsolved. Carry on.</text>
			<event/>
		</choice>
		<choice hidden="true">
			<text>Land on the planet to look for the missing Zoltan Survivor.</text>
			<event load="FANATICS_2"/>
		</choice>
</event>

<eventList name="FANATICS_2">
	<event>
		<text>You organize a search, but are unable to find either the Zoltan or the Rockmen. You gather some useful materials from the wrecked ship and depart, unwilling to waste any more time.</text>
		<autoReward level="RANDOM">standard</autoReward>
	</event>
	<event>
		<text>You discover a hidden altar, where Rockmen chant non-stop amid the prisioner Zoltan, bound with ropes to a stone table.</text>
			<choice>
				<text>Depart right away. Fanatics are never to be underestimated.</text>
				<event/>
			</choice>
			<choice hidden="true">
				<text>Intervene to rescue the Zoltan.</text>
				<event load="FANATIC_LIST"/>
			</choice>
			<choice hidden="true" req="rock">
				<text>(Rock Crew) Have your Rockman reason with the group.</text>
					<event>
						<text>After some discussion, the Rockmen accept to free the prisoner and let you leave in peace. You wonder what did your Rockman say to convince them so easily. </text>
						<crewMember amount="1" class="energy"/>
					</event>
			</choice>
	</event>
	<event>
		<text>You are surprised as a Zoltan commanding a band of Rockmen to invade the ship! It seems the Zoltan is their new god, and they intend to seize your ship!</text>
		<boarders min="2" max="3" class="rock"/>
	</event>
</eventList>

<eventList name="FANATIC_LIST">
	<event>
		<text>You sucessfuly free the Zoltan, and you run for the ship to avoid the wrath of the fanatics! It seems you stole their sacrifice.</text>
		<crewMember amount="1" class="energy"/>
	</event>
	<event>
		<text>You try to mount a rescue, but the Rockman recover from the surprise quickly!</text>
			<choice hidden="true">
				<text>Retreat!</text>
				<event>
					<text>During the hasty retreat not all crewmembers made it back to the ship..</text>
					<crewMember amount="-1"/>
				</event>
			</choice>
	</event>
</eventList>

Code: Select all

<event name="HERD">
	<text>As you close in on the distress signal, you end up near a Livestock Planet, deeply torn apart by conflict between Rebel and Federation supporters. The distress signal is coming from a ship belonging to a rich landowner, who desperately asks for support in moving his herd to a nearby planet to escape the conflict.</text>
		<choice hidden="true">
			<text>Ignore the request.</text>
				<event>
					<text>Your mission will bring security back to the whole galaxy, you can not stop for every minor request along the way.</text>
				</event>
		</choice>
		<choice hidden="true" req="teleporter">
			<text>(Teleporter) Beam the herd aboard without landing on the surface of the planet</text>
				<event>
					<text>You are handsomely rewarded for your quick work.</text>
					<autoReward level="HIGH">scrap_only</autoReward>
				</event>
		</choice>
		<choice hidden="true" req="slug">
			<text>(Slug Crew) Have your Slug oversee the loading process.</text>
				<event>
					<text>Rebel supporters open fire as you load the animals into the Cargo Bay, but your Slug crewmember soothes the herd and you manage to deliver them without further problems.</text>
					<autoReward level="HIGH">scrap_only</autoReward>
				</event>
		</choice>
		<choice hidden="true">
			<text>Descend on the planet to load the animals into the Cargo Bay.</text>
			<event load="HERD_LIST"/>
		</choice>
</event>

<event name="HERD_STAMPEDE">
	<text>As the herd breaks away, it smashes the doors down and damages the ship.</text>
	<damage amount="3"/>
	<damage amount="1" system="doors"/>
</event>

<event name="HERD_DOORS">
	<text>Your Blast Doors hold and you sucessfully deliver the whole herd to the agreed planet and receive a bountiful reward</text>
	<autoReward level="HIGH">scrap_only</autoReward>
</event>

<eventList name="HERD_PARTIAL_LIST">
	<event>
		<text>You receive only a partial reward as the owner grumbles about his loss.</text>
		<autoReward level="LOW">scrap_only</autoReward>
	</event>
	<event>
		<text>The owner blames you for his loss! You prepare to fight as his ship rises to punish you.</text>
			<ship load="CIVILIAN_SHIP" hostile="true"/>
	</event>
</eventList>

<eventList name="HERD_LIST">
	<event>
		<text>You only manage to load half the herd as rebels mass on the horizon and force you to retreat!.</text>
			<choice hidden="true">
				<text>Take the animals you are carrying to the agreed planet.</text>
				<event load="HERD_PARTIAL_LIST"/>
			</choice>
	</event>
	<event>
		<text>As your crew is finishing the loading of the animals, rebels open fire, causing the animals to move frantically around the Cargo bay...</text>
			<choice hidden="true">
				<text>Have your crew take cover.</text>
				<event load="HERD_STAMPEDE"/>
			</choice>
			<choice hidden="true" req="doors" lvl="2">
				<text>(Blast Doors) Immediately close the doors to prevent the herd from breaking away.</text>
				<event load="HERD_DOORS"/>
			</choice>
	</event>
</eventList>
I've been saving them in sector_data.xml.append and events.xml.append in the ANSI format.
Last edited by Blanco on Thu Jul 10, 2014 5:27 pm, edited 2 times in total.
User avatar
RAD-82
Posts: 795
Joined: Sat Nov 09, 2013 12:16 am

Re: [WIP] Some Events

Post by RAD-82 »

Bug Report: (looking over your code)

1. Last event in eventList RACER_HUMAN_LIST
You have...

Code: Select all

	<event>
		<text>Apparently, it is common knowledge around here that you can extract some scrap from a nearby deposit without much hassle.</text>
			<choice>
				<text>Extract some scrap.</text>
				<autoReward level="MED">scrap_only</autoReward>
			</choice>
	</event>
Should probably be...

Code: Select all

	<event>
		<text>Apparently, it is common knowledge around here that you can extract some scrap from a nearby deposit without much hassle.</text>
		<choice hidden="true">
			<text>Extract some scrap.</text>
			<event>
				<autoReward level="MED">scrap_only</autoReward>
			</event>
		</choice>
	</event>
You left out the event tags inside the choice, which would prevent the player from getting the reward. I added the hidden="true" to the choice because it seemed reasonable to not see the reward before you get it.

2. Typos:
  • FANATICS: misteries -> mysteries.
    FANATICS_2: understimated -> underestimated
    FANATICS_2: leve -> leave
    FANATICS_2: convice -> convince
    FANATIC_LIST: sucessfuly -> successfully
    FANATIC_LIST: </choice>> -> </choice> (That extra > might cause a problem?)
You are surprised as a Zoltan commanding a band of Rockmen to invade the ship!
That doesn't sound grammatically right to me.

3. Typos:
  • HERD: heard -> herd
    HERD_DOORS: sucessfuly -> successfully
In the first event of the eventList HERD_LIST, you have an extra autoReward tag that should be ignored because it isn't in a proper event tag. You should delete it to make sure it doesn't cause problems because it doesn't belong in the choice tag, besides, that reward is in the eventList HERD_PARTIAL_LIST.

Yes, you put the <distressBeacon/> tag in the event and that should mark it on the beacon map.

Code: Select all

<event name="HERD">
   <distressBeacon/>
   {...[i]the rest of your event[/i]...}
</event>
Image
Junkyard has FTL mods, mostly ships and a few other things.
Blanco
Posts: 2
Joined: Mon Jul 07, 2014 7:21 pm

Re: [WIP] Some Events

Post by Blanco »

I should have seen most of these errors, but writing the events can be hard and tiring. And I probably shouldn`t do it while watching the World Cup, hahaha. As you can imagine, i wrote "FANATICS" during the game. Argentina x Bosnia, I believe, but it sucked anyway...

Thanks a lot.

I`ll edit the correct ones on the Original Post for anyone wiling to do any further error proofing.
Post Reply