• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

hidden goals?

Messages
57
Country
israel
I want to create goals which will not show up in the goals status when you click ESC. is there any way I can do this?
 
Sure. Just set them to "active=false" and use an objectactivationaction to toggle them. you can also disable them if you want. The only thing you cannot do is set them to pending after they've been resolved.
 
active=false meaning the mission will be completed even if they weren't completed, you cant use a goal only when it is active and if you set it as active it will show up in the goal list.

mybe I'll try to explain what i'm trying to do.

I'm working on a mission in which the pilot needs to give traffic reports. when the mission starts it randomizes traffic jams in various junctions and highways in the vacinity of the starting location. Each time you will play the mission the number of traffic jams and their location will be different.

Now I need to varify that the player will find all of the traffic jams that were randomized at the start of the mission... what I did now is that when the traffic jam is set to active it also sets a goal to active but then I can see where all of the jams are, or the number of jams if I just use generic goal description when I click ESC and thats sort of cheating...

so I need an idea how I can verify that the player flew above all of the areas in which there are traffic jams before the mission is set to completed and yet not using a goal for each area
 
Well, first of all why not use one goal saying "you spotted all traffic jams"?

But if you want to head the way you described, you can use the method I pointed out: Simply activate the goal for each jam as soon as the jam is spotted.
active=false meaning the mission will be completed even if they weren't completed
Don't know what you mean by this, but of course you need to make sure you have at least one pending goal until all goals are reached, because if all visible goals are finished the user gets the "Success" message, which is not what you like.
So create one general goal which is active from the beginning: "Finish the daily grind" oder whatever you want to call it.
As long as this one is pending you can (de)activate or toggle other goals as you like. ;)
 
Well, first of all why not use one goal saying "you spotted all traffic jams"?

But if you want to head the way you described, you can use the method I pointed out: Simply activate the goal for each jam as soon as the jam is spotted.

Don't know what you mean by this, but of course you need to make sure you have at least one pending goal until all goals are reached, because if all visible goals are finished the user gets the "Success" message, which is not what you like.
So create one general goal which is active from the beginning: "Finish the daily grind" oder whatever you want to call it.
As long as this one is pending you can (de)activate or toggle other goals as you like. ;)

ok, lets say I create a single goal like "you've spotted all traffic jams", this is exactly what my question was, how do I make sure that the user flew over all of the areas with the traffic jam without using goal? I'm thinkin something with proximity trigger...

mybe set goal to completed when all of the proximity triggers which are set as active (meaning they came up in the random action) are fired, but how can I do this?
 
Use one goal per traffic jam (multiple goals) plus one goal after returning to base. But then the user can still miss some jams and get the "Success" message.
So, rather use counter triggers.
Then you can, for example, use goals that are just called "traffic jam 1, 2, 3,...".
Use 1 counter trigger for each jam. Every jam gets a prox trigger, which counts all (!) counters. The first counter fires at 1 and activates goal 1, the second counter fires at count 2 and activates goal 2, etc.
If you have 6 jams you need 6 counters, the last of them also activating the prox trigger at your base, so the user can only trigger a successful return if all 6 jams are detected. You can also use another prox trigger that informs the user he shall go back to the city to search for other jams - this trigger can then be deactivated if the success-proxtrigger is activated.

OK? :)
 
yea I see what you mean. we are on the way but not quite there yet... is there a way to set the stop counter value? as I explained, the number of jams varies each time you play the mission because it uses a random action for each jam. so I will have to count how many jams the mission will generate at the start and set the counter triggers stop value accordingly
 
So you want to create a random number of jams and the mission to know when the last of them was spotted? :eek:

I'm pretty sure there's an easier way of creating the mission. Why not make a simple random decision between "3 jams", "5 jams" and "7 jams"? Then you will know how many jams you have and how many triggers you need.
But I think that's a lot of work just for that small fun thing of having random numbers.
 
So you want to create a random number of jams and the mission to know when the last of them was spotted? :eek:

I'm pretty sure there's an easier way of creating the mission. Why not make a simple random decision between "3 jams", "5 jams" and "7 jams"? Then you will know how many jams you have and how many triggers you need.
But I think that's a lot of work just for that small fun thing of having random numbers.

not only the number of jams is random, the start location is also not fixed :tapedshut

so no way of knowing how many jams were randomed?
I think I'll just stick with the goal per jam and set the description to "Find traffic jam" on all of them...
 
Well, there's always a solution, I'm sure Paul would find a cool logic to solve the puzzle, but in the end we're only here to assist, not to program your missions. :D
 
Hi Folks

ido_ -
You need to use permissive triggers.

These are simply a framework of counter triggers,
which you then test against.

It'll work with randoms.
You'd just need to hook up appropriately.



To test for ALL jams visited
basically you create a 'SERIAL STRING' of counter triggers
e.g.
Test_Permissive -> Jam_1 -> Jam_2 -> Jam_3 -> Jam_4 -> Jam_5 -> Result_Action

Initialise ALL triggers as deactivated.

For each jam visited, activate that specific Jam_# counter trigger.

At the end of your mission -
- Activate both the Test_Permissive and Result_Action
- Then fire the Test_Permissive trigger.

It will then cascade a pulse through the 'SERIAL STRING' of counter triggers.

If ALL Jam_# counter triggers have been activated,
the pulse will fire the Result_Action

If ANY Jam_# counter triggers have NOT been activated,
the pulse wil NOT reach the Result_Action.



Hope that makes some sense. :D



I'm a bit tied up with another issue ATM
but will post a sample
sometime over Xmas when I get the cahnce.



HTH
ATB
Paul
 
If I understand your algorithem correctly, in this case I will also have to know how many jams the mission will generate.

well while writing a reply I think I got an idea on how to solve this, I'll check it out and share the results
 
ok... sometimes the answear is just under your nose and you need a direction, thanks guys. this is what I did:

instead of goal per jam I have one goal "find all traffic jams"
the goal is set completed with a counter trigger
currently the maximum number of jams is 4 so I set the stop count to 4 start to 0.

now, at mission startup theres a trigger that fires 4 random actions, one per traffic jam to decide if it'll be activated or not

Timer -> Random1 --> Activate Traffic Jam1+proximity trigger1
--------------------> Count
-------> Random2 --> Activate Traffic Jam2+proximity trigger2
--------------------> Count
-------> Random3 --> Activate Traffic Jam3+proximity trigger3
--------------------> Count
-------> Random4 --> Activate Traffic Jam4+proximity trigger4
--------------------> Count

each jam has a proximity trigger initialized as deactivated and set to active with the traffic jam's objects.
when each of the proximity triggers is fired it uses the count action.

now if I got it right I should get at the end of the mission the value 4 at the counter trigger that will set the goal to completed even if the traffic jam is not drawn in the random action
 
Last edited:
Back
Top