First off, yes, I know exactly how old this thread is. I'm posting this here for ease of understanding.
orcaloverbri9, on Aug 26 2004, 08:36 PM, said:
Hmm...I made a quick-ish plug-in to test it, and the results aren't wonderful. I didn't bother with the 0x0, it's using the Shuttle sprite. The ships are there, but the planets just won't fire. I even made one hostile and it didn't fire. I'll look more into this. Is it because of the "fire when provoked" flag?
EDIT: Well, I can see them not firing at me because I had a normal ship, but it doesn't explain them not firing at the enemy ship...
View Post
It does work fairly well, when you get the planets to actually shoot.
My (nearly) complete guide to when spobs shoot:
A spob will fire its weapon at the closest target ship (see below), no matter what type (ship/planet) of weapon the spob has.
If the "fires when provoked" flag is not set,
A spob will fire at the player if either of the following conditions are true:
- The player is disliked by the system's govt ( not the spob's!), or
- The player's ship has an inherent combat government that is an enemy of the spob (isn't this fun , class? ).
A spob will only fire at an AI ship if the ship's dude's govt is an enemy of the spob (the attitude of the system has no effect).
A spob will never fire its weapon at another spob, even if the weapon is planet-type.
As far as I can tell from accidental testing, the "fires when provoked" flag should actually be called the "fires only when provoked". I think that it limits the spob to only firing when it (or possibly a ship of its govt) is shot at.
----------------------------------------------------------------------
With this, it's possible to get a spob to shoot at a ship.
For my test, I created two govts who mutually hated each other. The target planet/ship combo was govt 128, the firing planet was govt 129, and the system was neutral.
Both of the planets were armed with a planet-destroying weapon (with large blast area), while the ship was unarmed.
Eugene Chin's comment about the weapon's needing a high value in the ProxSafety field is still valid, however. If a planet is armed with a planet-destroying weapon, it will shoot itself if it can be destroyed :blink: .
Once all that was taken care of, I loaded the game, and watched planet 129 blow planet/ship 128 to smithereens (I love bööm 131!). It works fine.
Eugene Chin, on Aug 26 2004, 07:25 PM, said:
What about getting the ship to open fire? Ships told by mďsn's to destroy enemy spöbs try to get in close before firing their weapon, even if it has a long range. Will the planet-ship automatically fire it's gun at the planet?
View Post
I wouldn't bother. It's easier to give the weapons to the spobs, and just have the ships there as targets.