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
25 | |||||
6 | |||||
5 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.940410.696+6
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
10 posts in the last week
28 posts in the last month
Welcome our newest member, yresearcher
Most online: 2043 users on 29 Oct 2023, 01:04 AM