To prevent spam, I want to limit the number of instances of a certain thing that a squad can build. (For example, the number of traps.)
If I want to limit it to, say, four instances per squad, I could make a repeatable upgrade or slot item to control it, grant the squad four when it is created, make the construction depend on the squad having it, and then consume one for each build.
I think it would be easy if implemented as an ability, but due to limited menu space I need to make it a construction task. However, I haven't been able to figure out how make the squad use one for construction.
It seems like in_construction_actions should work, but the squad can build other things and I haven't been able to make in_construction_actions depend on what is being built.
Any ideas?
limit a squad's builds
9 May 2023, 09:17 AM
#1
Posts: 139
9 May 2023, 15:45 PM
#2
Posts: 817 | Subs: 5
The biggest problem with construction items is that they cannot check upgrades or slot items of the engineer. Only global upgrades can be validated.
I think the best solution is to use a global limit per defense with required_cap in ebps/requirements.
I think the best solution is to use a global limit per defense with required_cap in ebps/requirements.
12 May 2023, 06:34 AM
#3
Posts: 139
The biggest problem with construction items is that they cannot check upgrades or slot items of the engineer. Only global upgrades can be validated.
I think the best solution is to use a global limit per defense with required_cap in ebps/requirements.
Thanks, SneakEye
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
30 | |||||
13 | |||||
10 | |||||
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
644 users are online:
644 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