How to get multiple ability requirements to work?
Posts: 12
But the basic abilities are still visible when I don't have the upgrade equipped. If I research the better repairs, the basic ability disappears, but the better repairs doesn't show up if I have just the research requirement. If I add the squad upgrade requirement as well the basic ability doesn't disappear after the research upgrade.
I can get the better salvage ability to properly replace the basic one if the research ability is the only requirement, but not if I also add the squad upgrade requirement.
Using just the squad upgrade requirement doesn't seem to properly replace abilities.
So how does the requirements logic work exactly when handling multiple at once?
Posts: 756 | Subs: 8
Posts: 12
basic repair
advanced repair
basic salvage
thorough salvage
Posts: 756 | Subs: 8
Posts: 12
Posts: 756 | Subs: 8
Posts: 12
Posts: 756 | Subs: 8
Posts: 12
Posts: 756 | Subs: 8
Posts: 756 | Subs: 8
should have owner_type changed to "player".
Any time you are checking for a player upgrade, owner_type has to be set to "player", otherwise it will be applied to the upgrading Entity/Squad (self).
So, to answer your original question: your requirements are fine, but they were never being met because the building was receiving an entity upgrade and not a player upgrade.
Posts: 12
Posts: 756 | Subs: 8
Posts: 12
I can't believe the problem was something so stupid.
Posts: 756 | Subs: 8
Livestreams
7 | |||||
210 | |||||
36 | |||||
24 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.589215.733+4
- 4.1101614.642+2
- 5.305114.728+1
- 6.916405.693-2
- 7.272108.716+23
- 8.721440.621+3
- 9.1041674.607-2
- 10.17146.788+1
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
8 posts in the last week
38 posts in the last month
Welcome our newest member, debethiphop
Most online: 2043 users on 29 Oct 2023, 01:04 AM