Login

russian armor

Distinguish human from AI in Attribute Editor?

21 Sep 2020, 21:44 PM
#1
avatar of trigg

Posts: 139

Is there a way to make a unit/ability/upgrade available only to human players or only to AI players in the Attribute Editor?
22 Sep 2020, 15:12 PM
#2
avatar of SneakEye
Senior Modmaker Badge

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.
23 Sep 2020, 01:05 AM
#3
avatar of trigg

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.
0 user is browsing this thread:

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

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
Registered members: 49851
Welcome our newest member, Eovaldis
Most online: 2043 users on 29 Oct 2023, 01:04 AM