Inflict damage on a unit outside of combat
-
Is this possible?
I tried this but it doesn't seem to work (doesn't throw an error either):<option name="repairsUnits" value="-1:Knight"/>The above was added to a "pit" unit that acts as infrastructure and is supposed to damage a unit for 1 point...
-
@Michael-Hoover Try to see if -2 gives an error or not. Often -1 is used to mean infinite in options that do not accept negative values (horrible program hack).
I support the idea that this option should damage units if set negative.
-
@Cernel -2 doesn't throw an error either...
Guess I'll go make a feature request! -
This might be an issue to report, then. I tend to think something should either do something or give an error, if set to a value that cannot possibly mean doing nothing (which, in this case, would be 0).
-
When a unit checks for repair facilities, it always selects the one where it can get the highest amount of repair, which is technically 0, in this case.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login