Author Topic: subsystem-destroyed and directives  (Read 2056 times)

0 Members and 1 Guest are viewing this topic.

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
subsystem-destroyed and directives
I've got a goal where Alpha 1 needs to destroy a bunch of subsystems (turreNts) on some ship. There are 11 of them, and I'd like to have the countdown thingy that says how many still have to be destroyed in the directive. I've tried three approaches to getting this to work-

First (and probably most obvious), I tied the directive directly to the destruction of the turrets using a crapload of subsystem-destroyed-delay SEXPs. The directive worked correctly, but there was no countdown number.

Second, I used 11 proxy ships- hostile GTF Pegasus fighters with play-dead orders. They had departure cues tied to each of the subsystems, and the directive now used has-departed-delay with a list of the ships. Apparently, that doesn't produce a countdown number either.

Third, I used a list of arguments, and the same proxy ships were renamed so their names were the turret names (The ships were named Turret35, Turret42, etc). I thought I could just use arguments to self-destruct <argument> when is-subsystem-destroyed-delay( Hyperion, <argument>). I then tied the directive to the destruction of the ships. This produced a countdown number... that stayed at 10. Yes, there are 11 turrets, not 10. I dunno. You know.

Anyway, short of clogging up my events list with 11 individual events to self-destruct each of the fighters, is there a good way of doing this?

</noob>

[EDIT]: Disregard. I forgot the repeat count. I'm a noob.
« Last Edit: April 02, 2010, 11:01:51 pm by Shivan Hunter »

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: subsystem-destroyed and directives
Did you forget to invalidate argument?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: subsystem-destroyed and directives
Had a quick conversation with Shivan Hunter on IRC.

1) Sounds like the 3rd attempt simply missed having a repeat count
2) It would be nice if we could specify a variable to be used in Directives. I'll look into this later.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: subsystem-destroyed and directives
How did :v: do it with the Sathanas turrets?

The number stays constant when you do self-destruct because self-destruct doesn't trigger is-destroyed-delay for whatever reason (as far as I recall, at least).
(´・ω・`)
=============================================================

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: subsystem-destroyed and directives
They didn't.

Yes, it does. You'll notice that it does work once; just not for the rest of the turreNts.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: subsystem-destroyed and directives
Your self-destructing proxy ship technique should work fine assuming you remembered to set some repeats.

  

Offline Jeff Vader

  • The Back of the Hero!
  • 212
  • Bwahaha
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []