Generalized effects for the spy escape teleports

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Post Reply
danau
Posts: 15
Joined: Wed Apr 25, 2018 6:13 pm

Generalized effects for the spy escape teleports

Post by danau »

I would like the "spy escape" effects to be customizable by the ruleset. Some benefits of the feature requested here are:
  • Units like "marksman/snipers" can also use an escape-to-nearest-city-or-base effect after attacking
  • The ruleset can decide if spies teleport to the capital, their homecity or the nearest city after completing some action
  • The ruleset can also specify that defeated diplomats have a chance of escaping (to the capital or nearest city)
  • We no longer need "Escape" and "non-escape" versions of the diplomatic actions
Descriptions of the effects I was thinking of:

Code: Select all

Action_Success_Actor_Teleport_Capital_Pct
    The chance (in percent) that a unit teleports to the capital city of its
    owner when it successfully performs an action. Evaluated and done after the
    action is successfully completed.

Action_Success_Actor_Teleport_City_Pct
    The chance (in percent) that a unit teleports to the nearest friendly city
    when it successfully performs an action. Evaluated and done after the action
    is successfully completed.

Action_Success_Actor_Teleport_City_Extra_Or_Transport_Pct
    The chance (in percent) that a unit teleports to the nearest friendly
    transport, base or city when it successfully performs an action. Evaluated
    and done after the action is successfully completed.

Action_Success_Actor_Teleport_City_or_Extra_Pct
    The chance (in percent) that a unit teleports to the nearest friendly base
    or city when it successfully performs an action. Evaluated and done after
    the action is successfully completed.

Action_Success_Actor_Teleport_Home_City_Pct
    The chance (in percent) that a unit teleports to its home city when it
    successfully performs an action. Evaluated and done after the action is
    successfully completed.  


Action_Success_Target_Teleport_Capital_Pct
    The chance (in percent) that a unit teleports to the capital city of its
    owner when someone successfully performs an action on it. Evaluated and
    done after the action is successfully completed. Only supported for actions
    that targets an individual unit. (See doc/README.actions)

Action_Success_Target_Teleport_City_Pct
    The chance (in percent) that a unit teleports to the nearest friendly city
    when someone successfully performs an action on it. Evaluated and done after
    the action is successfully completed. Only supported for actions that
    targets an individual unit. (See doc/README.actions)

Action_Success_Target_Teleport_City_or_Extra_Pct
    The chance (in percent) that a unit teleports to the nearest friendly base
    or city when someone successfully performs an action on it. Evaluated and
    done after the action is successfully completed. Only supported for actions
    that targets an individual unit. (See doc/README.actions)
---
Danau (Peter van der Meer)
Post Reply