Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build menu is entered on behalf of another unit #5

Open
WaterKnight opened this issue Nov 3, 2023 · 0 comments
Open

Build menu is entered on behalf of another unit #5

WaterKnight opened this issue Nov 3, 2023 · 0 comments
Labels
ingame issue ingame feature does not behave as expected low severity

Comments

@WaterKnight
Copy link
Contributor

External URLs

https://us.forums.blizzard.com/en/warcraft3/t/build-menu-is-entered-on-behalf-of-another-unit/29145

Description

Making a unit enter the build menu via a scripted order makes other units that are currently selected enter their build menu.

There are native functions with which you can give a unit orders:
IssueImmediateOrder(unit, orderstring), IssueImmediateOrderById(unit, orderid), …

There are a couple of orders you can give a unit in order to enter the build menu:
851994 (build), 851995 (humanbuild), 851996 (orcbuild), 851997 (nightelfbuild), 851998 (undeadbuild), 852467 (nagabuild)

In the cases described below, 851994 (build) is used exemplarily.

Expected

Case 1:
Unit A receives the order, but nothing changes for unit B.

Case 2:
Unit A receives the order, but nothing changes for unit B.

Actual

Case 1:
Unit A receives the order.
The command card of the selected unit B changes to its build menu.

Case 2:
Unit A receives the order.
The command card of the selected unit B changes to its build menu (presumably).
Since it has no structures to build, there are no structure buttons and the cancel button is missing too, leaving its command card completely black.

Reproduction steps

Case 1:
Place a unit A that can build structures on the map.
Place a unit B that can build structures on the map.
Select unit B (can be normal user select).
Call IssueImmediateOrderById(unit A, 851994).

Case 2:
Place a unit A that can build structures on the map.
Place a unit B that cannot build any structures on the map.
Select unit B (can be normal user select).
Call IssueImmediateOrderById(unit A, 851994).

Screenshots

No response

Game Versions

1.33.0 (1.33.0.18931, 1.33.0.19010, 1.33.0.19019, 1.33.0.19089, 1.33.0.19308)

@WaterKnight WaterKnight added ingame issue ingame feature does not behave as expected low severity labels Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingame issue ingame feature does not behave as expected low severity
Projects
None yet
Development

No branches or pull requests

1 participant