Menbailee
Registered:1455655763 Posts: 48
Posted 1471557783
Reply with quote
#1
I'm not sure how exactly the surrenderchance property works. It runs on a scale of 0 to 100, and clearly the higher the number, the more readily an enemy will surrender. But what are the conditions exactly? I'm designing a mission that demands surrender and not destruction for an array of ships. I want each ship to respond to surrender when pressed, say if its shields are about 0, but not to surrender on a whim before that. I could make a trigger for a surrender when the shields go down, but I want the players to need to use the Demand Surrender command through Comms. Where should I set surrenderchance?
Fish Evans
Registered:1381528881 Posts: 383
Posted 1471866996
Reply with quote
#2
what you need to do is to set surrender chance to 0 until your script detects that the shields are down and then switch it to 100% ships will only surrender if they are at less then about half shields and with in aproximatly 8-5000 units of distance of the ship demanding the surrender. the surrender chance is litrualy "what percentage chance does this ship have of surrendering to the enemy when the surrender conditions are met?" it defualts to about 30%.
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1471900929
Reply with quote
#3
I suspect there is more involved, as I believe even with a surrenderchance of 100, an undamaged enemy will not surrender every time. But in general, yes, with a surrenderchance of 100 is it easy to make an enemy surrender, and with a surrenderchance of 0 it is almost impossible. The captain specials "brave" (for 0) and "cowardly" (for 100) will do the same thing. I think setting surrenderchance will update the captain's intel, but I wouldn't swear to it.
Mike Substelny
Administrator
Registered:1375273622 Posts: 2,990
Posted 1471975984
Reply with quote
#4
I believe the players can demand surrender from each ship only twice: once when shields are damaged and once when shields go down. Both times the probability will be consulted. If both fail then the ship will never surrender. When a surrender fails there is also a random chance that the "Surrender? Never!" response will be triggered. Once that happens that ship will never surrender. I believe this is not available to mission scripts and it isn't the players' fault when it happens. So if you are writing a mission script in which the player victor depends on one or more enemy ships surrendering, then you need to do some fancy scripting. Just in case an enemy has been randomly triggered into the "I will never surrender" state I suggest occasionally re-spawning enemy ships that have not been destroyed or surrendered. That should reset the "I will never surrender" bit and give the players another chance. They may need to beat the daylights out of the same ship several times, but it will eventually surrender. Does this make sense?
__________________"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight." - Winston Churchill
Menbailee
Registered:1455655763 Posts: 48
Posted 1472493474
Reply with quote
#5
Thank you, Mike, and yes that makes sense! It certainly does seem overcomplicated for reaching that goal, to the extent that maybe it becomes preferable to hard-script surrenders in a different way.