Building a station

Freeform discussion about anything related to modding Transcendence.
User avatar
Xephyr
Militia Captain
Militia Captain
Posts: 855
Joined: Fri Dec 14, 2007 1:52 am
Location: Orion Arm, Milky Way
Contact:

Thu Dec 15, 2016 3:55 pm

Another issue I see is that

Code: Select all

plyMessage gPlayer "Not enough items or cash!"
will message the player outside of the dockscreen.

Instead, you should use

Code: Select all

(scrSetDescTranslate gScreen 'languageID)
, and in the same type define a language element as such:

Code: Select all

<Language>
		
	<Text id="languageID">
		(cat					
			"Not enough items or cash!"
			)
	</Text>	
			
</Language>
This will display your message directly inside the dockscreen. Note you can substitute "languageID" with anything you like.
Project Renegade (Beta) : "The Poor Man's Corporate Command!"
Real programmers count from 0. And sometimes I do, too.

NMS
Militia Captain
Militia Captain
Posts: 551
Joined: Tue Mar 05, 2013 8:26 am

Thu Dec 15, 2016 9:05 pm

Also, everything inside the outer (block...) should be inside an (if ...). Without that, both the yes and the no result will happen, regardless of whether the condition is met.

Post Reply