Author Topic: Need help with objective error  (Read 3309 times)

0 Members and 1 Guest are viewing this topic.

Offline mr.WHO

  • 29
Need help with objective error
Hello, I have an objective:

"ship must jump out and his must be hull above 25%"  - success.
"ship hull below 25%" - fail.


Here is my script

And:
1) has departed delay
2) >  hits left (designated ship)  (25)

my problem:
No matter how much HP this ship has left during jump out - it alway say that objective fail after it's jump. also it doesn't react when hull drop below 25% (it doesn't say "objective fail" till ship jump out.

I tried this:
And:
1) has departed delay
2) NOT <  hits left (designated ship)  (25)

Problem is similar, go back to "my problem" phrase and switch word "fail"  with word "success", so no matter how much hull this ship has it say that objective is succes after jump out :(
Help.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Need help with objective error
Maybe you should look at PI.
They have a mission like that where you have to keep ships over a certain %.
(´・ω・`)
=============================================================

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Need help with objective error
Try something like this. 

Loose
when
- <
---hits-left
--- <ship>
---25
--do nothing

Then have the debrief based on your RTB event and not loose. 

My guess is since the ship has departed it hitpoints will always be 0.   
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline mr.WHO

  • 29
Re: Need help with objective error
Try something like this. 

Loose
when
- <
---hits-left
--- <ship>
---25
--do nothing

Then have the debrief based on your RTB event and not loose. 

My guess is since the ship has departed it hitpoints will always be 0.   


I can't do that because I can't set Fail condition in FRED "objective menu" only Success condition, so if I do something like that:

Success
when
- >
---hits-left
--- <ship>
---25
--do nothing

The objective will be cound as success as soon as this ship arrive (coz it's hull will be 100%), that's why I put "has-departed" part.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Need help with objective error
OK then set the objective to this

When
--and
----has-departed-delay
----<ship>
----not
-----is-event-true
-----loose

If that doesn't work then I need some more info.  Is the ship there at mission start?  Does the ship warp before the player, with the player, or is the player?
« Last Edit: February 28, 2009, 03:07:40 pm by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline mr.WHO

  • 29
Re: Need help with objective error
It works!!! Thanks.

Only one more problem to go - it works, but directive won't appear, till it will be true or false :(  Any idea why?

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Need help with objective error
Depends on the directive and how you have it set up.  Usual cause is you have something in the directive that shouldn't be in there and should be in an event of it's own with the directive chained to it.  But that's just one of many possibilities. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline mr.WHO

  • 29
Re: Need help with objective error
I put this as directive:

When
--and
----has-departed-delay
----<ship>
----not
-----is-event-true
-----loose

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Need help with objective error
Add the optional argument to is-event-true-delay. It controls whether the event-true determines when to show a directive or if it is complete. The default is that it controls when to show a directive.

BTW, this is a directive error not an objective one. Objectives = goals in FRED and it gets confusing if people use the terms interchangeably.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline mr.WHO

  • 29
Re: Need help with objective error
Add the optional argument to is-event-true-delay. It controls whether the event-true determines when to show a directive or if it is complete. The default is that it controls when to show a directive.

Can you write it in such from:
When
--and
----has-departed-delay
----<ship>
----ect.

Coz I don't uderstand what you wrote :nervous:


Edit:
I know the diffrence between directive and goal, I just had an error in both of them :)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Need help with objective error
When
--and
----has-departed-delay
----<ship>
----not
-----is-event-true-delay
------loose
------0
------true

I'm fairly sure it's true. It might be false at the end. Don't have FRED open to check. Whichever isn't the default. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline mr.WHO

  • 29
Re: Need help with objective error
It works, thank you.

Only one more mission to go and I'll be able to show you a demo of my project :D

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Need help with objective error
Good catch I was thinking goals when he said objective.  Hence my original just put it in the debrief solution. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline mr.WHO

  • 29
Re: Need help with objective error
One more thing - how to disallow (or even better hide) loadout option for specific wing at loadout menu?

  

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Need help with objective error
Disallow is the lock option in the ship editor.  Not show is just don't have it named as one of the default wings that show (Alpha,Beta, Gamma, Delta, Epsilon unless you have changed the defaults)
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras