Obj:uSetRequired

From NexusWiki
Revision as of 01:02, 17 June 2009 by Arparso (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

obj:uSetRequired (required);

This marks obj as "required", meaning the player won't be able to remove or replace this device on the fleet screen. This can be used to force the player to equip a certain device, that is needed to complete the mission. required=1, device can't be removed; required=0, device can be removed

Example, which allows the player to change all devices onboard the Stiletto:

uSelectNR(1, Stiletto, S.uDevice);
ExecList(1,
	S.this:uSetRequired(0);
);

Campaign script commands


Equipment and stock
obj:uInset - obj:uInstallDevice - obj:uRemoveDevice - obj:uSetRequired - obj:uSetResourcePoints - uAddDevicesToStock - uClearResourceStock - uFleetScreenReadOnly - uRepairPlayersFleet - uShowFleetScreen
Mission progression
uEnterMission - uEnterMissionQuick - uSetNextMission
Miscellaneous
obj:uCopyReproducableDevTypes - obj:uSetParent - uDifficultyLevel - uGet - uGetNPC - uGetPlayersFleet - uGui_EnableCommand - uPlayBink - uPlayBriefing - uSelectNR - uSetDetectionLevel - uSetStoryDate


- view all commands -