- Joined
- Sep 9, 2015
- Messages
- 56
So I have been categorizing units so that if a specific special unit attacks them it deals damage bonus. For example if a pikeman attacks a "cavalry" unit, it deals +7 damage.
Nothing works and happens.
-
Unit Categorization 01
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set A_Chal_UCag_Cavalry[1] = Troll Battlerider
-
Set A_Chal_UCag_Cavalry[2] = Blood Elf Pathfinder
-
Set A_Chal_UCag_Cavalry[3] = Town Scout
-
Set A_Chal_UCag_Cavalry[4] = Knight (Chalaguine)
-
Set A_Chal_UCag_Cavalry[5] = Knightess
-
Set A_Chal_UCag_Cavalry[6] = Elite Knight (Chalaguine - Tier 1)
-
Set A_Chal_UCag_Cavalry[7] = Elite Bashknight (Chalaguine)
-
Set A_Chal_UCag_Cavalry[8] = Grand Marshall (On Horse)
-
Set A_Chal_UCag_Cavalry[9] = Elite Knight (Chalaguine - Tier 2)
-
-------- ----------------------------TO BE UPDATED-------------------------- --------
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set A_Chal_UCag_Siege[1] = War Catapult
-
Set A_Chal_UCag_Siege[2] = Blood Elf Arcane Golem
-
Set A_Chal_UCag_Siege[3] = Blood Elf Ballista
-
Set A_Chal_UCag_Siege[4] = Armored Ogre
-
Set A_Chal_UCag_Siege[5] = Ballista
-
Set A_Chal_UCag_Siege[6] = Battering Ram
-
Set A_Chal_UCag_Siege[7] = Catapult
-
Set A_Chal_UCag_Siege[8] = Ballistic Catapult
-
Set A_Chal_UCag_Siege[9] = Wheeled Cannon
-
Set A_Chal_UCag_Siege[10] = Mangonel
-
Set A_Chal_UCag_Siege[11] = Trebuchet
-
-------- ----------------------------TO BE UPDATED-------------------------- --------
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Then - Actions
-
Set A_Chal_UCag_Flyer[1] = Siege Balloon
-
Set A_Chal_UCag_Flyer[2] = Staunch Jet N100 Series
-
Set A_Chal_UCag_Flyer[3] = Blood Elf Dragonhawk
-
Set A_Chal_UCag_Flyer[4] = Blood Elf Dragonhawk Windrider
-
Set A_Chal_UCag_Flyer[5] = Srcygon
-
-------- ----------------------------TO BE UPDATED-------------------------- --------
-
-
Else - Actions
-
-
-
-
Chal Tic Tac Toe
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
-------- ---> For Chalaguine Pikeman <--- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Attacking unit)) Equal to Pikeman (Chalaguine)
-
-
Then - Actions
-
For each (Integer A) from 1 to 100, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Attacked unit)) Equal to A_Chal_UCag_Cavalry[(Integer A)]
-
-
Then - Actions
-
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing 7.00 damage of attack type Normal and damage type Enhanced
-
-
Else - Actions
-
-
-
-
-
Else - Actions
-
-
-
Nothing works and happens.
Last edited: