JSpaced
Registered:1376049197 Posts: 116
Posted 1458602557
Reply with quote
#1
Hi guys, I'm writing a mission script and I want the final chapter for the player ship to take a pounding, then, when it's down to 30-40% overall damage, a timely rescue arrives. I know about the condition: systemdamage, but is there a way to track overall damage? J
__________________"Universal law is for lackeys. Context is for kings."
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1458606162
Reply with quote
#2
Not really, but you can read system damage indirectly. For instance, if you are flying a Light Cruiser and currentRealSpeed is 0.3 when throttle is 1.0, then you know either the Impulse system has taken 50% damage, or the Engineer has set power level to 50%. Likewise, if you set shieldStateFront to 80 and it immediately drops back to 40, you know Front Shields have taken 50% damage. (You could store the old shield strength, test it for a cycle, and then put it back) I keep hoping Thom will make the properties systemDamageX read only for player ships, and copy the value from the set_player_grid_damage values. For now they are valid only for enemy ships. But it's been that way since about Artemis 1.5.
Arrew
Registered:1393602597 Posts: 2,750
Posted 1458607774
Reply with quote
#3
Just a plot note. Remember the crew are the real heroes and be wary of deus ex machina style endings.
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1458652125
Reply with quote
#4
Of course you can force the player ship to be crippled if you like. As soon as shields are down to zero use set_player_grid_damage to start breaking key systems like Warp Drive. Then have the rescue show up.Quote:
Originally Posted by Arrew Just a plot note. Remember the crew are the real heroes and be wary of deus ex machina style endings.
Arrew is absolutely right. One of the principles of good storytelling is that the players must do something to earn the rescue.
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1458678033
Reply with quote
#5
Quote:
Originally Posted by Mike Substelny Arrew is absolutely right. One of the principles of good storytelling is that the players must do something to earn the rescue.
And best way to build suspense is to have the players start taking damage as soon as they start to do what they need to do to earn the rescue. The question them becomes, "Will the players stick to their guns in the face of certain destruction, or will they chicken out at the last minute". I used that principle a lot in my D&D games. There was some Plot Device or MacGuffin that could defeat the big bad at the end of the game, but the players had to figure out HOW to defeat him. Or perform a sequence of events in the right order, which would activate the MacGuffin without them understanding what it would do until after the fact. It's a Deus Ex Machina, but one that they had to make the right moral choice to activate.
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1458736650
Reply with quote
#6
Good point, Ryleyra. Instead of damage consider using energy level to trigger the timely rescue. Your script can read the players' energy level directly and react to it. Energy has a second benefit since the rescue ship can simply supply the players with energy (and possibly replenish Damage Control Teams) instead of doing the fighting for them. Once they are recharged and repaired the players still need to fight their way out and defeat their enemies. Your script can have the rescue ship "taunt" the enemies away from the players. Just have the rescue ship sent a message and change the enemy brain stacks so that they ignore the players and go after the rescue ship for a few minutes. After that restore the brain stacks and let the climactic battle begin!
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1458745708
Reply with quote
#7
Quote:
Originally Posted by Mike Substelny Your script can have the rescue ship "taunt" the enemies away from the players. Just have the rescue ship sent a message and change the enemy brain stacks so that they ignore the players and go after the rescue ship for a few minutes. After that restore the brain stacks and let the climactic battle begin!
... as in the final battle from Star Trek: The Undiscovered Country. The Excelsior draws the Bird of Prey off, but it's the Enterprise that has the Villain-Beating Artifact. (The torpedo that sees through his cloak) I love this. We usually discuss the mechanics of scripting, not the job of crafting plot and suspense.