Author Topic: A SEXP tree doesn't work, but it should  (Read 4461 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: A SEXP tree doesn't work, but it should
And I also needed to use the + operator just to be able to use the variable. The "Replace Variable" option was greyed out. For reference, here's the tree that works now:


WTF?

I'm going to make my own mission and test this out.


EDIT : Built a test mission and the SEXPs worked exactly as they should have. Directive comes true if you press F (to damage ship B) but nothing happens if you press T (To damage Ship A more). No idea what you're doing wrong, but unless there is more to your event than you're telling me the problem lies somewhere else.

BTW, I did spot a flaw in your mission design. Once you've sorted this problem out both events must include a check that the other one isn't true. Otherwise it's possible for both to come true.

[attachment deleted by admin]
« Last Edit: April 18, 2010, 10:06:51 am by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Re: A SEXP tree doesn't work, but it should
I tested my mission thoroughly and it works perfectly well now. I don't know why the hits-left SEXP doesn't work as it should on my end, but variables do the trick, so I'll leave it as that.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: A SEXP tree doesn't work, but it should
I would strongly advise you back up your mission and make it work without them. Right now something is very wrong with your mission and instead of solving the problem you've hacked on a solution which seems to work.

I know FREDders in the community can build a mission but in general the debugging skills of the community suck. I also know as a non-coder you don't have access to the kind of debugging tools I have but hacks like this are the reason why I ran the last big FRED quiz. It isn't enough to hack a solution on and test to see if it works. If you don't know why your previous solution failed and why this one worked you don't know what might cause this one to fail either. You should never simply change things and test to see if that works unless you use that as more evidence to figure out what was wrong in the first place.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: A SEXP tree doesn't work, but it should
^--- win.