Author Topic: Subsystem self-repair  (Read 4589 times)

0 Members and 1 Guest are viewing this topic.

Offline CommanderDJ

  • Software engineer
  • 210
Subsystem self-repair
Hello,
By default, when a subsystem's integrity is low, it repairs itself over time. How can I stop this from happening? For example I want the player's engines to be at 24% without self-repair. Then I want the self-repair to kick in later, once a certain event has come true. Can I do this?
Thanks,
CommanderDJ
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Subsystem self-repair
You can use an every-time conditional on the event that sets the engine subsystem strength.

 

Offline CommanderDJ

  • Software engineer
  • 210
Re: Subsystem self-repair
I see. :) Then how do I turn that off when I want the engines to repair themselves?
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Subsystem self-repair
You can use an every-time conditional on the event that sets the engine subsystem strength.

Wouldn't that prevent the subsystem from actually taking any further damage too?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
Re: Subsystem self-repair
not if it's
every time
  subsystem
  > X
set-subsystem-strength
  X
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Subsystem self-repair
You can use an every-time conditional on the event that sets the engine subsystem strength.

Wouldn't that prevent the subsystem from actually taking any further damage too?

See Hippo.

I see. :) Then how do I turn that off when I want the engines to repair themselves?

Simply add a 'not is-event-true-delay (your event)' to the every-time conditional.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Subsystem self-repair
Is it an option for SCP to code in the ability to turn subsystem repair off in fred and SEXPs to control this behaviour mid mission
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Subsystem self-repair
not if it's
every time
  subsystem
  > X
set-subsystem-strength
  X

Now try to blow up that subsystem. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Subsystem self-repair
Code: [Select]
(set-subsystem-strength
   subsystem
   ( + X 1 )
)

Or something like that would be more logical, would it not?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline ReeNoiP

  • 27
  • I FRED
Re: Subsystem self-repair
Maybe this would work?

everytime
subsystem strength
< x
modify variable
sstrength=subsystem strength

everytime
subsystem strength
< x
set-subsystem-strength
sstrength+1
Uncharted Territory is released. But I still need voice actors

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Re: Subsystem self-repair
You could probably set it for:

Is-subsystem-strength
< 100
sabotage-subsystem
1%

With a huge repeat count and a delay of however long each point of regen is.  Chain it to a When-true SEXP with a chain delay of <x> where X is the time it takes to repair one point.

BUT, that wouldn't exactly work for a mission-wide blanket no-repair thing, which I'm pretty sure you're going for...

 

Offline Snail

  • SC 5
  • 214
  • Posts: ☂
Re: Subsystem self-repair
Uh.

Couldn't you just use a table for this? Or would it spoil the fun?

 

Offline CommanderDJ

  • Software engineer
  • 210
Re: Subsystem self-repair
Thanks guys, I'm just using the not is-event-true-delay for the everytime conditional. And Snail, yes, that would ruin the fun. :D
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline CommanderDJ

  • Software engineer
  • 210
Re: Subsystem self-repair
Hey guys, I wanted to post this in another thread, but I decided it would be a waste of space, so I'll post it here.

I want the player ship to be Alpha 2. I found I cannot rename the player ship, so I created a wing of four fighters, called it alpha, and made alpha 2 the player ship. I want an alpha 4, so I kept him, but I didn't want Alphas 1 and 3, and I wanted the wingman tab thing to show that they were dead (the red circles), so I set their initial hull integrity to 0, disabled built in messages and death screams, and set them to vaporize on death. It's all fine, except when I go to the communications menu, I find there are still menu options for Alpha 1 and 3 in the ships menu, but obviously when i try and give them an order nothing happens. Is there any way to stop Alphas 1 and 3 from showing up in the comm menu?
Thanks.

CommanderDJ
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Subsystem self-repair
create alpha wing with the ships you want in alpha wing, select alpha 2, open the ship editor (not wing editor), click the Set as Player Ship button.

[attachment deleted by ninja]
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Qent

  • 29
Re: Subsystem self-repair
create alpha wing with the ships you want in alpha wing, select alpha 2, open the ship editor (not wing editor), click the Set as Player Ship button.
I created a wing of four fighters, called it alpha, and made alpha 2 the player ship.

You could go to "Player Orders" and uncheck all of those.

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Re: Subsystem self-repair
Quote
I want the player ship to be Alpha 2. I found I cannot rename the player ship, so I created a wing of four fighters, called it alpha, and made alpha 2 the player ship. I want an alpha 4, so I kept him, but I didn't want Alphas 1 and 3, and I wanted the wingman tab thing to show that they were dead (the red circles), so I set their initial hull integrity to 0, disabled built in messages and death screams, and set them to vaporize on death. It's all fine, except when I go to the communications menu, I find there are still menu options for Alpha 1 and 3 in the ships menu, but obviously when i try and give them an order nothing happens. Is there any way to stop Alphas 1 and 3 from showing up in the comm menu?
Thanks.

Instead of setting the hull integrity to zero (which works for me, dunno what to tell you), instead move them faaar away and self-destruct them.  Don't bother vaporizing them, doesn't matter too much, especially if they're out of sight behind the player.

 

Offline CommanderDJ

  • Software engineer
  • 210
Re: Subsystem self-repair
create alpha wing with the ships you want in alpha wing, select alpha 2, open the ship editor (not wing editor), click the Set as Player Ship button.
I created a wing of four fighters, called it alpha, and made alpha 2 the player ship.

You could go to "Player Orders" and uncheck all of those.

This worked. Thank you muchly. I'm still a FREDding n00b, but I thank the community for being so helpful towards new willing FREDders.
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it