Nexus Modding > Scripting

Machine on all missions

<< < (2/2)

Lord_Valarian:
Check this section of code from "episode_1.rules":


--- Code: ---RULE event EpisodeStart
condition ActEpisode=1
:action

//uSetDifficultyLevel(2);

// Player fleet feltoltese
Stiletto := uGet("ship_Stiletto");
Stiletto:uSetParent(uGetPlayersFleet());
uGetNPC(#NPC_Player):uSetParent(C.Stiletto);
uGetNPC(#NPC_Dispatcher):uSetParent(C.Stiletto);

// Lathatosag
uGet("stat_OSEC"):uSetDetectionLevel(#UDET_DETAILED);
uGet("stat_OrbInv"):uSetDetectionLevel(#UDET_DETAILED);
uGet("stat_ISA"):uSetDetectionLevel(#UDET_DETAILED);
uGet("stat_Michelangelo"):uSetDetectionLevel(#UDET_DETAILED);
uGetPlayersFleet():uSetDetectionLevel(#UDET_DETAILED);

uGet("stat_Sukenja"):uSetDetectionLevel(#UDET_NONE);
uGet("nav_Jupiter1"):uSetDetectionLevel(#UDET_NONE);
uGet("nav_Jupiter2"):uSetDetectionLevel(#UDET_NONE);
uGet("astfld_Jupiter_3"):uSetDetectionLevel(#UDET_NONE);
uGet("ASTFLD_PLUTO"):uSetDetectionLevel(#UDET_NONE);
uGet("gate_Sol_Alpha"):uSetDetectionLevel(#UDET_NONE);
uGet("gate_Entity_Sol"):uSetDetectionLevel(#UDET_NONE);
uGet("GATE_NEXUS_0"):uSetDetectionLevel(#UDET_NONE);
uGet("GATE_NEXUS_1"):uSetDetectionLevel(#UDET_NONE);
uGet("GATE_NEXUS_2"):uSetDetectionLevel(#UDET_NONE);
uGet("GATE_NEXUS_3"):uSetDetectionLevel(#UDET_NONE);
uGet("nav_noah"):uSetDetectionLevel(#UDET_NONE);

uGet("Mechanoid_Entity_E2"):uSetDetectionLevel(#UDET_NONE);
uGet("Mechanoid_Entity_E2F"):uSetDetectionLevel(#UDET_NONE);
:end
END

--- End code ---

If I add it to this section of code, it should work. I think it could done on all missions at once. Look at "common.rules".  It could be the key to adding a machine to all missions I'll try them later and see what happens.

EDIT:  My ideas didn't work. The method mentioned works fine.




Navigation

[0] Message Index

[*] Previous page

Go to full version