Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: FlamingCobra on October 05, 2011, 05:53:12 pm
-
How do I.........
either
a) preassign a loadout for alpha wing but only if the difficulty level is insane
or
b) set up a SEXP similar to what I have described (but could not find) below
when
|- skill-level-at-least
| |- insane
|- force-weapon
|- Alpha
|- TAG-C
|- sbank1
-
Is there no skill level condition?
-
yes but I can't figure out how to force a player to use a weapon.....
-
set-primary-weapon
under Change -> Subsystems & Cargo
-
Two ways, easy or hard.
1) Easy : Do what you were told above, reset the weapon as soon as the mission starts using is-skill-level-at-least and set-primary/secondary-weapon SEXPs. This is basically what you wanted for b).
The problem with this is that the loadout screen won't work properly, you'll have to either turn loadout off or live with the fact that the player can assign himself a different weapon from the one he ends up with in the mission.
2) Hard : Use variables in team loadout. In this way you set persistent variables in the preceding mission to hold the number or type of weapons you want available. This is basically what you wanted to do in a).
For instance you could set a variable to "Maxim" by default but to "Prometheus" if the skill level is insane. Then you set the loadout of the actual mission to only include the types of weapon mentioned by the variables. The problem with this method is that you can get past it by changing your skill level in the preceeding mission to hard and then playing it on insane. Similarly, if you find the mission too hard on insane and step down to hard, you're stuck with the insane level weaponry. There are ways to mitigate that somewhat though.
Short answer, it depends on how anal you want to be about this. If you haven't understood the hard one at all, do the easy one. :p
-
Oh,well I did not know that SEXP existed. I was making that mission at school with FRED2 Retail. I guess I'll just have to sacrifice more space on my USB and put FRED2 open on there.
ALSO
When I transferred the fred2 retail file to my home pc and opened it in fred2 open, every ship model appeared as pitch black unless i moved the camera to within like...... two feet from it. why is this?
-
never mind. It's because there's a nebula.