Is there a way to make a unit/ability/upgrade available only to human players or only to AI players in the Attribute Editor?
Distinguish human from AI in Attribute Editor?
21 Sep 2020, 21:44 PM
#1
Posts: 139
22 Sep 2020, 15:12 PM
#2
Posts: 817 | Subs: 5
A workaround which I use:
Create an empty upgrade with ui_position: -1, 0 costs, no hotkey and owner is player. That makes the upgrade invisible for human player while the AI can still unlock it. Then add this upgrade to all HQ's and add it in ai_economy/upgrades with an utility of 1000.
Once that works you can use it for everything. Units can require the player_upgrade to lock and hide it for humans or require to not have the upgrade to lock it for the AI.
Create an empty upgrade with ui_position: -1, 0 costs, no hotkey and owner is player. That makes the upgrade invisible for human player while the AI can still unlock it. Then add this upgrade to all HQ's and add it in ai_economy/upgrades with an utility of 1000.
Once that works you can use it for everything. Units can require the player_upgrade to lock and hide it for humans or require to not have the upgrade to lock it for the AI.
23 Sep 2020, 01:05 AM
#3
Posts: 139
Clever.
Now that you've called my attention to ai_economy, I may be able to fix most of the problems without detecting the AI directly.
Thanks.
Now that you've called my attention to ai_economy, I may be able to fix most of the problems without detecting the AI directly.
Thanks.
PAGES (1)
0 user is browsing this thread:
Livestreams
30 | |||||
17 | |||||
9 | |||||
6 | |||||
2 | |||||
1 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.35157.860+16
- 4.599234.719+7
- 5.934410.695-1
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
11
Download
1259
Board Info
540 users are online:
540 guests
0 post in the last 24h
12 posts in the last week
25 posts in the last month
12 posts in the last week
25 posts in the last month
Registered members: 49851
Welcome our newest member, Eovaldis
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Eovaldis
Most online: 2043 users on 29 Oct 2023, 01:04 AM