Author Topic: Setting Bot Strategic Targets  (Read 4358 times)

Drewbacca

  • Major
  • *
  • Posts: 3441
  • What could have been...
Setting Bot Strategic Targets
« on: 05 August 2014, 07:06:47 »
I looked through the bot read me file and the help file, but I do not see how to set a strategic target for a bot. I would imagine I just select the hex, but what if there are multiple maps?

Netzilla

  • Warrant Officer
  • *
  • Posts: 590
    • Facebook
Re: Setting Bot Strategic Targets
« Reply #1 on: 05 August 2014, 07:54:48 »
If you click the Help button on the Add Bot dialog there's a section that goes into more detail on Strategic Targets but the short of it is that you input the hex coordinates of the building.  This isn't helpful on a random map, but if you're using a premade board you can look at it in the Map Editor to get the right hex number. 

If you do want to work with a random map, you can generate the random map in the Map Editor, note down the proper coordinates, and save it and then load that map in the MegaMek lobby for your game.
"Everything starts as someone's daydream." -- Larry Niven

MM Bug & Feature Requests:
https://sourceforge.net/p/megamek/_list/tickets

MHQ Bug & Feature Requests:
https://sourceforge.net/p/mekhq/_list/tickets

Drewbacca

  • Major
  • *
  • Posts: 3441
  • What could have been...
Re: Setting Bot Strategic Targets
« Reply #2 on: 05 August 2014, 08:37:57 »
Thanks, I gave it a try and it worked. Looks like I have a new scenario to go with my map.

pheonixstorm

  • Major
  • *
  • Posts: 5548
Re: Setting Bot Strategic Targets
« Reply #3 on: 05 August 2014, 13:31:30 »
What about setting units as targets?

Netzilla

  • Warrant Officer
  • *
  • Posts: 590
    • Facebook
Re: Setting Bot Strategic Targets
« Reply #4 on: 05 August 2014, 22:22:42 »
From the help doc:

Quote
Strategic Targets - This allows you to provide Princess with a list of hex coordinates or unit ids to move to and attack.  If a building exists in a target hex, then she will attempt to destroy that building. If a unit with the given id is on the enemy team, she will give that target a higher priority.

Quote
Chat Commands
<snip>

Prioritize
princessName: prioritize : unitId
Adds the specified unit to princess's Priority Targets list.
"Everything starts as someone's daydream." -- Larry Niven

MM Bug & Feature Requests:
https://sourceforge.net/p/megamek/_list/tickets

MHQ Bug & Feature Requests:
https://sourceforge.net/p/mekhq/_list/tickets

pheonixstorm

  • Major
  • *
  • Posts: 5548
Re: Setting Bot Strategic Targets
« Reply #5 on: 06 August 2014, 01:04:29 »
I tried the target list but it didn't seem to work. Possible I mistyped something but wanted to make sure I was doing it right.

Netzilla

  • Warrant Officer
  • *
  • Posts: 590
    • Facebook
Re: Setting Bot Strategic Targets
« Reply #6 on: 06 August 2014, 06:24:11 »
It should make her more likely to go after the target unit, but not exclusively.  There's quite a few factors that may outweight it (to hit odds or another target being near death are the two largest).
"Everything starts as someone's daydream." -- Larry Niven

MM Bug & Feature Requests:
https://sourceforge.net/p/megamek/_list/tickets

MHQ Bug & Feature Requests:
https://sourceforge.net/p/mekhq/_list/tickets

Drewbacca

  • Major
  • *
  • Posts: 3441
  • What could have been...
Re: Setting Bot Strategic Targets
« Reply #7 on: 31 August 2014, 17:54:25 »
From the help doc:

Quote
Strategic Targets - This allows you to provide Princess with a list of hex coordinates or unit ids to move to and attack.  If a building exists in a target hex, then she will attempt to destroy that building. If a unit with the given id is on the enemy team, she will give that target a higher priority.

Quote
Chat Commands
<snip>

Prioritize
princessName: prioritize : unitId
Adds the specified unit to princess's Priority Targets list.



So if I wanted it to attack an APC in a unit I would enter the unit type for the APC in Strategic Target?

arlith

  • BattleTech Volunteer
  • Warrant Officer
  • *
  • Posts: 698
Re: Setting Bot Strategic Targets
« Reply #8 on: 31 August 2014, 19:58:26 »
..
Strategic Targets - This allows you to provide Princess with a list of hex coordinates or unit ids to move to and attack.
...
So if I wanted it to attack an APC in a unit I would enter the unit type for the APC in Strategic Target?

When you add a unit to the game, it gets a unique Entity ID.  There's a client setting "Show each unit's unique ID next to its name" that will display the unique ID (note that this will only take effect after MM has been restarted).  I think there's also a / command that will list them (maybe /listEntities, use /help to find it). 

Based on the strategic targets documentation, I'm pretty sure it's looking for the Entity ID.
Member of the MegaMek Team.

Netzilla

  • Warrant Officer
  • *
  • Posts: 590
    • Facebook
Re: Setting Bot Strategic Targets
« Reply #9 on: 31 August 2014, 22:17:44 »
Yes, it's the Entity ID that's needed.
"Everything starts as someone's daydream." -- Larry Niven

MM Bug & Feature Requests:
https://sourceforge.net/p/megamek/_list/tickets

MHQ Bug & Feature Requests:
https://sourceforge.net/p/mekhq/_list/tickets

Drewbacca

  • Major
  • *
  • Posts: 3441
  • What could have been...
Re: Setting Bot Strategic Targets
« Reply #10 on: 01 September 2014, 07:27:01 »
So in the example, Heavy Hover APC (Standard) ID:4

Would I need all of that or just ID:4?

Netzilla

  • Warrant Officer
  • *
  • Posts: 590
    • Facebook
Re: Setting Bot Strategic Targets
« Reply #11 on: 01 September 2014, 07:48:55 »
Just 4.
"Everything starts as someone's daydream." -- Larry Niven

MM Bug & Feature Requests:
https://sourceforge.net/p/megamek/_list/tickets

MHQ Bug & Feature Requests:
https://sourceforge.net/p/mekhq/_list/tickets

Drewbacca

  • Major
  • *
  • Posts: 3441
  • What could have been...
Re: Setting Bot Strategic Targets
« Reply #12 on: 01 September 2014, 13:56:10 »
Thanks.

Rosewberg

  • Recruit
  • *
  • Posts: 2
Re: Setting Bot Strategic Targets
« Reply #13 on: 12 October 2023, 08:23:44 »
So in the example, Heavy Hover APC (Standard) ID:4

Would I need all of that or just ID:4?

Where can I find the ID inside the MegaMek?

dgorsman

  • Captain
  • *
  • Posts: 1984
Re: Setting Bot Strategic Targets
« Reply #14 on: 16 October 2023, 19:52:22 »
The ID is shown in the popup, as well as the unit information window.  The attached image shows ID: 6 (ignore the boxes, this was for something else).
Think about it.  It's what we do.
- The Society

Thunder LRMs: the gift that keeps on giving.  They're the glitter of the BattleTech universe.