Autons

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Fatboy
Militia Lieutenant
Militia Lieutenant
Posts: 247
Joined: Fri Feb 22, 2008 1:52 am
Location: California

how do I make auton addons for the game?
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

how to add more autons?


first, you will need a ship you want your new auton to be, ANY ship can be an auton, but the <Communications> tag must be there for you to order it around with the "c" menu.


now you need an item to create your new ship as an auton, the autosentinel is listed below, inside the invoke you will find scAutoSentinel, the unid of the ship that will become an auton, change this to match your new ship

remember to make the unids different from those already in the game or you will overright things.

Code: Select all

<!-- Auton, AutoSentinel -->

<ItemType UNID="&itAutoSentinel;"
		name=				"AutoSentinel&#xae;"
		level=				"3"
		value=				"490"
		mass=				"1000"
		frequency=			"common"
		unknownType=		"&itUnknownAuton;"
		modifiers=			"Auton; MinorItem"

		description=		"For around 500 credits, OmniDefense Systems' AutoSentinel keeps you and your loved ones safe from harm. NOTE: For professional security needs, order the 1M battle auton."

		pluralName=			"AutoSentinel&#xae;; AutoSentinels&#xae;"
		>

	<Image imageID="&rsItems1;" imageX="96" imageY="288" imageWidth="96" imageHeight="96"/>

	<Invoke key="A">
		(block (auton)
			; Create the auton
			(setq auton
				(sysCreateShip 
					&scAutoSentinel;
					(objGetPos gSource)
					&svFriendlyAuton;
					"auton"
					)
				)

			; Escort ship
			(shpOrderEscort auton gSource)

			; Identify the item
			(itmSetKnown gItem)

			; Welcome message
			(objSendMessage gSource Nil "AutoSentinel&#xae; v2.01 online")

			; Remove the item from the player's list
			(objRemoveItem gSource gItem 1)
			)
	</Invoke>

</ItemType>
EDIT: if you want them to act like wingmen changge "auton" to "fleet", they will have 3 formations, break and attack, attack in formation, but will not be able to stay behind and do not obey the "c" menu, use "q" instead.
Post Reply