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
21 | |||||
7 | |||||
2 | |||||
2 | |||||
1 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.1109614.644+10
- 4.608220.734+2
- 5.276108.719+27
- 6.306114.729+2
- 7.916405.693-2
- 8.722440.621+4
- 9.261137.656+2
- 10.1041674.607-2
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
8 posts in the last week
34 posts in the last month
Welcome our newest member, Orji
Most online: 2043 users on 29 Oct 2023, 01:04 AM