I want to use a conditional that checks if a particular unit is alive.
So far, required_entity only checks once - meaning that if you ever build the unit then this will be true.
I tried to create an always_on ability that is given to the unit when it's built so that when it dies that ability is no longer active, but it doesn't seem to function correctly.
Could I use SCAR for this functionality?
Thanks
Living entity conditional requirement check
19 Nov 2016, 18:51 PM
#1

Posts: 80
19 Nov 2016, 21:51 PM
#2


Posts: 756 | Subs: 8
You could. The best way would probably be to check for when that type of unit is built and add a rule to execute on its death that removes the upgrade.
20 Nov 2016, 18:59 PM
#3

Posts: 80
You could. The best way would probably be to check for when that type of unit is built and add a rule to execute on its death that removes the upgrade.
So how would I go about that exactly? I haven't used SCAR yet
20 Nov 2016, 20:24 PM
#4


Posts: 756 | Subs: 8
Well, you would have to learn to program in Lua, as SCAR is an extension of that.
https://www.lua.org/pil/1.html
Here are a list of Relic functions:
http://fortresseuropemod.com/scardoc
Unfortunately, there is no clean way to get which units a player has built, so you will have to use some workarounds. It would be nice if Relic activated the Game Event GE_SquadCalledIn...
https://www.lua.org/pil/1.html
Here are a list of Relic functions:
http://fortresseuropemod.com/scardoc
Unfortunately, there is no clean way to get which units a player has built, so you will have to use some workarounds. It would be nice if Relic activated the Game Event GE_SquadCalledIn...
21 Nov 2016, 03:33 AM
#5

Posts: 80
Well, you would have to learn to program in Lua, as SCAR is an extension of that.
https://www.lua.org/pil/1.html
Here are a list of Relic functions:
http://fortresseuropemod.com/scardoc
Unfortunately, there is no clean way to get which units a player has built, so you will have to use some workarounds. It would be nice if Relic activated the Game Event GE_SquadCalledIn...
I use python in my day job so I can probably pick up LUA, just need to figure out how to use it in the environment.
Thanks for the help links.
PAGES (1)

1 user is browsing this thread:
1 guest
Livestreams
![]() |
![]() |
![]() |
117 | ||
![]() |
![]() |
![]() |
31 | ||
![]() |
![]() |
![]() |
23 | ||
![]() |
![]() |
![]() |
11 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
3 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
34 | ||
![]() |
![]() |
![]() |
23 | ||
![]() |
![]() |
![]() |
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.43965.871+3
- 2.695243.741+2
- 3.447154.744+9
- 4.315119.726+11
- 5.10551.673-3
- 6.675104.866-1
- 7.318169.653+1
- 8.10929.790+10
- 9.19665.751+9
- 10.387311.554+4
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
15

Download
1443
Board Info
324 users are online:
324 guests
0 post in the last 24h
7 posts in the last week
24 posts in the last month
7 posts in the last week
24 posts in the last month
Registered members: 56503
Welcome our newest member, 789pcomio
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, 789pcomio
Most online: 2043 users on 29 Oct 2023, 01:04 AM