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
4 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.34957.860+14
- 3.586215.732+1
- 4.1098613.642+2
- 5.280162.633+8
- 6.305114.728+1
- 7.916405.693-2
- 8.271108.715+22
- 9.721440.621+3
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1231
Board Info
430 users are online:
430 guests
3 posts in the last 24h
6 posts in the last week
38 posts in the last month
6 posts in the last week
38 posts in the last month
Registered members: 49053
Welcome our newest member, Jonathan735
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Jonathan735
Most online: 2043 users on 29 Oct 2023, 01:04 AM