Author Topic: Damage over time  (Read 2364 times)

0 Members and 1 Guest are viewing this topic.

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Is it possible to set a ship to receive damage at a constant rate?  For this campaign idea I have, a ship is flying in a very new/very hot nebula, and the shields are protecting it from damage.  Is there a way to have a ship steadily take damage once its shields go down?

I have the start of it, but I don't know what SEXP I can use for it

when
----shield-quad-low
     ----<ship>
     ----0
----?  (basically, how do I make it take damage)

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
set-ship-subsystem-strength
--hull
--hull -1


To lazy to type the whole thing right now but basically that in a repeating event. 
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

 
Consider also adding a looping sound effect(scorching sound) at the players x, y, z every time the player takes the damage to make the effect even more awesome and not disorienting.  :cool:

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
set-ship-subsystem-strength
--hull
--hull -1

To lazy to type the whole thing right now but basically that in a repeating event. 

Would that also work for shields? I never tried to do anything like that, but I doubt so.
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 Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
set-ship-subsystem-strength
--hull
--hull -1


To lazy to type the whole thing right now but basically that in a repeating event. 

Why? Isn't sabotage-subsystem so logical to use?
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Sabotage-subsystem would probably be the better choice in this situation as it removes the need to get the current subsystem strength.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
If the shields come back up, will the damage stop?  That could be a major problem if your shields go down, but when they go back up, you still take damage.  As for the sound, I don't really know how to make that work (major noob here), so I just have your wingman yell at you to watch out for it.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
If you're using shield-quad-low it should go back up as soon as it isn't. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Scotty

  • 1.21 gigawatts!
  • 211
  • Guns, guns, guns.
Thanks.  On a related note, is the 'range' box in the background editor under nebula the sensor range?  I didn't want to have shivans jumping into such an isolated space (how would they know), so they come in under power or sit there stealthed until x-event has happened.  Also, is ship-invisible the same as ship-stealthy? 

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Yep, that's what it does IIRC. It's been a while since I last used the range option.

As for ship-invisible that makes the ship appear as the flickering dot on radar and makes it impossible to target. It only affects the player. Ship-stealthy on the other hand also makes it impossible to target the ship and makes it not appear on radar at all. It affects ships other than the player too.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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