Giving the player items

Freeform discussion about anything related to modding Transcendence.
Post Reply
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

I want to give the player ~5 longbow missiles in a dockscreen pane called "GetMissiles", but have no idea how that would be done.

Code: Select all

	<GetMissiles
		desc=	"One of the Pirates nods his head slightly.">
		<Actions>
			<Action name="Leave" imageID="&rsItemListScreen;" imageIndex="0" cancel="1" key="L">
				(block Nil
					(itmCreate itLongbowMissile; 5)
					(scrShowScreen gScreen "Main")
				)					
			</Action>
		</Actions>		
	</GetMissiles>
Right now this only creates missiles and doesn't actually give them to the player. How can I do this? (btw, there is no such thing as &itLongbowMissile; just am too lazy to actually look it up right now :P) The station has other items in it, so (scrShowScreen gScreen "&dsLoot;") won't work.
Bobby
Militia Captain
Militia Captain
Posts: 675
Joined: Wed Jul 25, 2007 7:39 pm

Code: Select all

(objAddItem gPlayerShip (itmCreate &itGemOfSacrifice; 1))
adds 1 gem of sacrifiece to the player
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

THANKS!
Post Reply