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
19 | |||||
14 | |||||
4 | |||||
3 | |||||
18 | |||||
14 | |||||
4 | |||||
4 | |||||
2 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.943411.696-1
- 4.715.934+12
- 5.35659.858+2
- 6.274144.656+1
- 7.278108.720+29
- 8.307114.729+3
- 9.601237.717-2
- 10.10629.785+7
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
12
Download
1267
Board Info
284 users are online:
284 guests
2 posts in the last 24h
9 posts in the last week
33 posts in the last month
9 posts in the last week
33 posts in the last month
Registered members: 50147
Welcome our newest member, hayaldv27
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, hayaldv27
Most online: 2043 users on 29 Oct 2023, 01:04 AM