Powers and alpha versus numeric keys

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Why does putting in "G" in the following power show up as "7" in the Invoke screen in game? I'd like to have alpha keys as well as number keys available for powers. Putting the key as "Z" seems to show up as "R" in game as well...

Code: Select all

<Power UNID="&pwEscapePod;"
			name=		"Escape Pod"
			attributes=	"RPC!"
			key=		"G"
			>

		<OnShow>
			(domShowPower 1)
		</OnShow>

		<OnDestroyCheck>
			(if (ObjGetData gPlayership "EscapePod")
				(block Nil

					(objJumpTo gSource (sysVectorPolarOffset gSource (shpGetDirection gSource) 500))
					(objSendMessage gSource Nil "Escape pod deployed.")
					(ObjSetData gSource "EscapePod" Nil)
					(block (newShip oldship)
						(setq oldship gSource)
						;(setq newShip (sysCreateShip &scEscapeEarthzone; (ObjGetPos gPlayership) &svPlayer;))
						(setq newShip (sysCreateShip &scMayfly; (ObjGetPos gSource) &svPlayer;))
						(plyChangeShip gPlayer newShip)
						(shpCancelOrders oldShip)
						(shpOrder oldShip 'hold)
						)
					; Avoid destruction
					Nil
					)

				; Destruction proceeds
				True
				)
		</OnDestroyCheck>

		<Invoke>
			(block Nil
				(objSendMessage gSource Nil "You magically spawn something important!")
				(setq newShip (sysCreateShip &scMayfly; (ObjGetPos gSource) &svPlayer;))
				(ObjSetData gPlayership "EscapePod" True)
				)
		</Invoke>
	</Power>
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
TVR
Militia Commander
Militia Commander
Posts: 334
Joined: Sat Sep 08, 2012 3:26 am

Remember how Domina Powers used to be invoked with letters, eg I -> A was Sustain?

It seems George rebound A-I to the numbers 1-9 in engine code, shifting everything 9 letters up the alphabet automatically.
Fiction is reality, simplified for mass consumption.
PGP: 0x940707ED, 5DB8 4CB4 1EF5 E987 18A0 CD99 3554 3C13 9407 07ED
Bitcoin: 1LLDr7pnZDjXVT5mMDrkqRKkAPByPCQiXQ
Post Reply