| Author |
Different problems with Mission Editor and doctrine Goals |
Madcowz
Joined: Feb 28, 2002 Posts: 574 From: Cambridge (UK)
| Posted: 2002-04-23 19:44  
I can't seem to get goals triggered using the doctrine language.
Have enabled FULL OPTIONS in the ini file and set up a small test mission with an approach goal hanger
attached to a building and this works fine. It displays a report text and plays a sound file, lovely.
What's nipping my head just now are doctrine goals, I just can't get any to work.
I have attached another goal to the same building and set it to trigger when hanger goal AND seal team launched + 2 mins. It won't work, then tried it attached to the sub, as a standalone goal, an approach, a destination goal, set it to all, and then just the specific sub, then tried it attached to the seal team etc etc etc.
Since this didn't work I stripped it back until it was a basic if hanger goal completes, then show report text and this also failed.
The doctrine test always works and I can't see any problems, I have also checked other missions and it all seems in order.
There must be something really simple I'm missing, can someone help before I run away across the fields.
Thanks,
Madcowz
_________________
www.Comsa.co.uk
[ This Message was edited by: Madcowz on 2002-04-24 16:47 ]
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-04-23 23:02  
Hi H
Difficult to know what you really have in mind, or how you have set this up exactly ...... but it almost 'seems' like your Goals are looping, because they are waiting for themselves to complete. Does that make sense??
The time since goal triggered is causing a problem .... if I understand what you are saying correctly. It is waiting for a specific goal to complete ..... which it can't do ..... because it is part of the same goal.
... if hanger goal completes, then show report text ... If this is an attached Approach Goal, it can't work, because it is checking for the successful completion of itself.
This is what you could do:-
1. Set up the 'attached' Approach Goal for the Hangar, but don't use Doctrine Language for it. Call it 'Approach Hangar' for example
2. Set up an 'unattached' Automatic Goal. Use the Doctrine language .... and set it up like this.
IF 'Completed Goal'
'Approach Hangar' AND
'Launched Seals' AND
'Time Since Goal Triggered'
'Approach Hangar' > 00:00:02 (2 mins)
THEN
I'm assuming that your Sub is approaching the Hangar .... and, obviously the Approach radius is big enough, for this to Goal to trigger.
Now, although I've used the 'Approach Hangar' for the Time Trigger, I'm guessing it's actually the deployment of the Seals, and 2 mins since that took place, that you want the Goal to complete.
So, you would have to set up another 'unattached' Automatic Goal that would just check that the Seals had been deployed. Call it 'Seals Away' e.g.
IF 'Launched Seals'
THEN
So, then you would change the Time Trigger of your 'Main Goal' to:-
IF 'Time Since Goal Triggered'
'Seals Away' > 00:00:02
THEN
So, you would end up with 3 Goals. 1 for the 'Approach', 1 for the 'Seals' and the last one being the successful completion of these 2 Goals.
Of course, you could take a Short-Cut, and have the 'Hangar Approach Goal' being triggered by the Seals,...and not the Sub. Also, there would be no need for Doctrine Language.
You could make the Radius a lot smaller, thereby negating the need for the Time Trigger, because the Seals are already close to their objective.
You could also set it up so that there were 2 seperate 'Approach Goals' .... 1 for the Sub, with perhaps an appropriate 'Report' to Deploy the Seals, ... and the 2nd Approach Goal would be for the Seals.
You could have a 'Timed' Automatic Goal, using Doctrine Language, to check for the successful completion of the 2 Approach Goals within a certain Time Period etc.
Anyway, I hope some of this answers your questions.
If not ..... well, maybe running across the fields isn't such a bad idea .... plus, it's good for you.
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win
[ This Message was edited by: Thomasew on 2002-04-23 23:20 ]
 
|
Madcowz
Joined: Feb 28, 2002 Posts: 574 From: Cambridge (UK)
| Posted: 2002-04-24 13:46  
Thanks Tom, that was it. The goals seemed to be awaiting their own completion.
Now the mission is starting to take shape.
The fields can wait, this Madcow is doing a mission,
thanks again for your help.
_________________
Comsa
'When the hunter comes, the tiger runs with the deer'
 
|
Madcowz
Joined: Feb 28, 2002 Posts: 574 From: Cambridge (UK)
| Posted: 2002-04-24 16:46  
Tom, I was still having a problem with TimeSinceGoalTriggered, which I fixed while writing this post to you, so thanks for that subconcious answer but I include my methods here:
There are three goals.
1 Attached Approach goal which triggers a wav and some text
2) A kill goal attached to another item
3) A Global Automatic Goal to add
I have the approach goal attached to a dock (this works - with no doctrine). I have the kill goal attached to a ship (this works - with no doctrine) and I have another global Automatic Goal which is set to:
If TimeSinceGoalTriggered: (kill goal) > 00:00:02 then: goal completes
This would not work at all.
What I did to fix was, was create a goal for the If TimeSinceGoalTriggered: (kill goal) > 00:00:02 then: goal completes
And then another one for if that goal completes then play sample and add new ships. So it works,
But I need:
1 Attached Approach goal which triggers a wav and some text
2) A kill goal attached to another item
3) A Global Automatic Goal to add 2 mins to the kill goal
4) A Global Automatic Goal to trigger after the 2 mins goal is complete
Goaltastic!! seems a lot of goals just to add 2 mins to another goal. Is this the way to do it, why can't a goal just satisfy with if TimeSince goal AND 2 mins then complete?? Or am I doing it wrong?
Thanks
_________________
Comsa
'When the hunter comes, the tiger runs with the deer'
 
|
Thomasew
Joined: Feb 28, 2002 Posts: 1898 From: Bluewater Bay, South Africa
| Posted: 2002-04-25 14:25  
Hi H
1 Attached Approach goal which triggers a wav and some text
2) A kill goal attached to another item
3) A Global Automatic Goal to add 2 mins to the kill goal
4) A Global Automatic Goal to trigger after the 2 mins goal is complete
Why do you need no. 4. on this list? Number 3 should suffice, and could be used to generate the activation of the New Ships.
Unfortunately, as you discovered, putting the timer in the same goal, as the the one it's doing the timing on, will cause a loop .... because it is waiting for the goal to 'Complete' ... and it can't complete, if a condition within it has not been met. i.e. the Timer waiting for the 'Goal' to 'Complete'. If ya know what I mean?
Cheers
Tom
_________________
He Who Will Not Risk Cannot Win
[ This Message was edited by: Thomasew on 2002-04-25 14:27 ]
 
|
|