Spawning an NPC

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 802
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

I want an NPC to spawn at a predefined system. How can I do that? Also, if I want another NPC to spawn after a said station is destroyed, how can that be done?

Last, if I want yet another NPC to spawn after a game event, like meeting the Antarctica, how can I do that too?
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

okzzzzzzzz, not hard, just some simple copy paste there :

if you are using a a station and want the npc to show up after say: you exit the dockscreen :

Code: Select all

<Action name="UnDock" cancel="1" key="U">
					(block (ship)
					
					(setq ship
					(sysCreateShip &scShip; 
					(objGetNearestStargate gSource)
					&sv(What-ever);)
					)
					(shpOrder(What-ever) )
					
					(scrExitDock gScreen) 
					)
					</Action>


In the Antarctica.xml there is a bit of Easter using the status of the ship itself to determine the next step for Decker :

Code: Select all

	
										; No mission if the player has met the Antarctica
										(and (not missionStatus)
												(not antarcticaStatus)
												(or (eq (typGetGlobalData &scCSCAntarctica; "status") "underAttack")
													(eq (typGetGlobalData &scCSCAntarctica; "status") "friend")
													)
												)
											(scrShowPane gScreen "PlayerMetAntarctica")



However, your station controlling your ship to arrive after the player meets the ship could be looking for the same status in order to decide if it will release the ship.
( I say station because it would just be easier to have a Virtual Station monitoring and controlling the ship if you want to release "that ship" after an event or status

Such as : if you want a escort ship to show up as a reward for killing Arco Vaughn : you lock onto his status and once he is dead your station can send a ship out from the gate ( or a rock if you like ) to meet up with the player AND not once over-write a station to accomplish the event..
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 802
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Its working :D
Post Reply