- Joined
- Sep 10, 2022
- Messages
- 101
Hi, I have another stupid question. I have an ability that must target all ground units, but it does not work on turtles (I don't know why, I have ground type classification check, but maybe turtles are not ground units because they have movement type "amphibious").
So I decided to add an additional check, that compares target unit type movement. The problem is that I do not know what integer field corresponds to "amphibious", "foot" etc...
I assumed that 0 corresponds to None, 1 to Foot, etc., so amphibious is 6. Did not work.
Then I assumed that numeration starts with 1, so None is, and amphibious is 7. Did not work. (Then I found out in a forum that numeration starts with zero).
I checked with hydras targets - it is all the same. So the checks do not work on all amphibious. At the same time, it works well for trolls, ogres etc..
The conditions:
What should I do?
So I decided to add an additional check, that compares target unit type movement. The problem is that I do not know what integer field corresponds to "amphibious", "foot" etc...
I assumed that 0 corresponds to None, 1 to Foot, etc., so amphibious is 6. Did not work.
Then I assumed that numeration starts with 1, so None is, and amphibious is 7. Did not work. (Then I found out in a forum that numeration starts with zero).
I checked with hydras targets - it is all the same. So the checks do not work on all amphibious. At the same time, it works well for trolls, ogres etc..
The conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(strike_target is invulnerable) Equal to Нет
-
(strike_target is alive) Equal to Да
-
(strike_target belongs to an enemy of strike_cause_player.) Equal to Да
-
Or - Any (Conditions) are true
-
Conditions
-
(strike_target is A ground unit) Equal to Да
-
(Unit: strike_target's Integer Field: Type ('umvt')) Equal to 1
-
(Unit: strike_target's Integer Field: Type ('umvt')) Equal to 2
-
(Unit: strike_target's Integer Field: Type ('umvt')) Equal to 5
-
(Unit: strike_target's Integer Field: Type ('umvt')) Equal to 6
-
-
-
unit_mana Greater than 0.00
-
-
What should I do?