- Joined
- Dec 8, 2023
- Messages
- 10
Hello, friends!
I made a skill in which when hero attacks, he has a chance to hex the target. it works but sometimes my units randomly gets hexed. is this
THIS IS CONFIG
I made a skill in which when hero attacks, he has a chance to hex the target. it works but sometimes my units randomly gets hexed. is this
THIS IS CONFIG
-
Wukongs Mischief config
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) slot status) Equal to Is playing
-
-
Then - Actions
-
Unit - Create 1 illusion caster wukong for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees
-
Set WukongsMischiefcasterunit[(Player number of (Picked player))] = (Last created unit)
-
Animation - Change WukongsMischiefcasterunit[(Player number of (Picked player))]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-
Hero - Create Wukong's Staff of Illusions wukong's mischief and give it to WukongsMischiefcasterunit[(Player number of (Picked player))]
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
Wukongs Mischief hex effect
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Set WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] = (Random integer number between 1 and 100)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Monkey King
-
(Level of Wukong's Mischief - Hex monkey king for (Attacking unit)) Equal to 1
-
WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] Less than or equal to 5
-
-
-
-
Then - Actions
-
Unit - Order WukongsMischiefcasterunit[(Player number of (Owner of (Attacking unit)))] to Orc Shadow Hunter - Hex (Attacked unit)
-
Set WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] = 0
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Monkey King
-
(Level of Wukong's Mischief - Hex monkey king for (Attacking unit)) Equal to 2
-
WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] Less than or equal to 10
-
-
-
-
Then - Actions
-
Unit - Order WukongsMischiefcasterunit[(Player number of (Owner of (Attacking unit)))] to Orc Shadow Hunter - Hex (Attacked unit)
-
Set WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] = 0
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Attacking unit)) Equal to Monkey King
-
(Level of Wukong's Mischief - Hex monkey king for (Attacking unit)) Equal to 3
-
WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] Less than or equal to 15
-
-
-
-
Then - Actions
-
Unit - Order WukongsMischiefcasterunit[(Player number of (Owner of (Attacking unit)))] to Orc Shadow Hunter - Hex (Attacked unit)
-
Set WukongsMischiefhexinteger[(Player number of (Owner of (Attacking unit)))] = 0
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
-
Last edited by a moderator: