<div dir="ltr"><div>Related: one or two people asked me to separate "Untargetable by hero team" and "Win battle even if left alive" because they wanted enemies you couldn't attack directly. My idea for doing so is to add an entirely new on-disk bit "Untargetable by hero team" and in loadattackdata turn on "Untargetable by heroes" and "Win battle even if left alive" if "Untargetable by hero team & win if left alive" is on, avoiding a fixbit. The UDT would not contain the latter bit.<br></div><div><br></div><div><div></div><div>This means that it would be an option to change the Untargetable bits back to meaning Heroes/Enemies rather than Hero team/Enemy team, if that's preferable.<br></div></div><div><br></div><div>But I think Defector should still always act like "Win if left alive" because it's set at battle-time, not just in the editor.</div><div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 6 Feb 2022 at 13:27, Ralph Versteegen <<a href="mailto:teeemcee@gmail.com">teeemcee@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>That's nice to have; I suppose it should be an option in the hero battle menu editor although we could have a pref bit to automatically append that option when there are no possible actions (which would only be when it hasn't been manually added). The question is whether it should be on by default. Probably yes?<br></div><div><br></div><div>One problem is that due to all the bugs in attack cost checking code it might not be simple to figure out whether an attack or item can actually be used.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 6 Feb 2022 at 09:47, James Paige <<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Right now this is only for player controlled enemies, but we might want to enable this for heroes too, particularly in turn-based mode where the risk of getting stuck is most significant. Before that happens, we would probably need to figure out how to make does_battle_menu_have_targets() support spell lists and the item menu<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 5, 2022 at 3:40 PM <<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">james<br>
2022-02-05 12:40:39 -0800 (Sat, 05 Feb 2022)<br>
294<br>
Add a "Skip Turn" menu item if an enemy under player control has no valid targets<br>
thus preventing them from getting the battle stuck (especially in turn-based mode)<br>
(This is a common occurrence when an enemy has both "Controlled" and "Turncoat" but not "Defector" or "Win battle even if alive")<br>
---<br>
U   wip/<a href="http://battle_udts.bi" rel="noreferrer" target="_blank">battle_udts.bi</a><br>
U   wip/bmod.rbas<br>
<br>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
_______________________________________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org</a><br>
</blockquote></div>
</blockquote></div>