scrSetDesc problem or (cat str int str) help

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

This code does just about everything I want it to do...except the pane description remains "Error (MissionSuccess)"

Code: Select all

	<MissionSuccess
		desc="Error (MissionSuccess)...">
			<Actions>
			<Action name="Continue" default="1" cancel="1" key="C">
				(block Nil
					(objSetData gSource "MissionStatus" Nil)
					(if (eq (objGetData gSource "TransportReachedDest") "true")
						(block Nil
							(setq gPirateStationXP (multiply (add gPirateStationXP 15) (add gPirateStationRank 1)))
							(plyCredit gPlayer (multiply (add gPirateStationRank 1) 1200))
							(scrSetDesc gScreen (cat "\"Well Done. " (multiply (add gPirateStationRank 1) 500) " credits have been transfered to your account.\""))
						)
					)
					(if (eq (objGetData gSource "TransportReachedDest") "false")
						(block Nil
							(setq gPirateStationXP (add gPirateStationXP (multiply 6 (add gPirateStationRank 1))))
							(plyCredit gPlayer (multiply (add gPirateStationRank 1) 500))
							(scrSetDesc gScreen (cat "\"Get the freighter *before* it delievers its cargo next time. Since you didn't fully complete the job " (multiply (add gPirateStationRank 1) 500) "credits  have been transfered to your account.\""))
						)
					)
					(objSetData gSource "TransportReachedDest" "false")
					(scrShowPane gScreen "Default")
				)
			</Action>
		</Actions>
	</MissionSuccess>
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

If you want to set the pane description you should do it inside an <Initialize> tag.

The code in the <Action> element is only executed when the user clicks on the action.
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

Of course, lol, thanks George!
Post Reply