Draphoelix
It's not the wintercold that's killing me
- Reaction score
- 132
GUI
Feign Death not MUI
The Feign Death is very simple. But I didn't want to submit a single spell and I think it match the theme of the hero. It also didn't went pretty well, I wanted to make it have more functions, but since I couldn't remove Locust, this is how it is.
______
Feign Death
Some animals have mastered the skills to fake their own death by stopping every muscles and activity of their body. Schkinky is one of the animals that are able to do this. Lasts 5 secnods.
Stinky Liquid
Whenever Schkinky's life drops below 40% she will automatically release a stinking liquid that lasts as long as she is in danger with low hitpoints. Units affected by this disquisting liquid will suffer damage the longer they stay in it. Units that stays over 5 seconds inside this liquid will faint for 3 seconds. While they are faint they will no longer be able to smell which means they will not suffer damage.
Feign Death not MUI
The Feign Death is very simple. But I didn't want to submit a single spell and I think it match the theme of the hero. It also didn't went pretty well, I wanted to make it have more functions, but since I couldn't remove Locust, this is how it is.
______
Feign Death
Some animals have mastered the skills to fake their own death by stopping every muscles and activity of their body. Schkinky is one of the animals that are able to do this. Lasts 5 secnods.
Code:
Feign
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Feign Death
Actions
Unit - Hide (Triggering unit)
Set BFDLOC = (Position of (Triggering unit))
Unit - Create 1 Schkinky for (Owner of (Triggering unit)) at BFDLOC facing Default building facing degrees
Unit - Kill (Last created unit)
Set BFD = (Triggering unit)
Custom script: call RemoveLocation(udg_BFDLOC)
Code:
Stop Copy
Events
Unit - A unit Stops casting an ability
Conditions
(Ability being cast) Equal to Feign Death
Actions
Unit - Unhide BFD
Selection - Select (Triggering unit)
Stinky Liquid
Whenever Schkinky's life drops below 40% she will automatically release a stinking liquid that lasts as long as she is in danger with low hitpoints. Units affected by this disquisting liquid will suffer damage the longer they stay in it. Units that stays over 5 seconds inside this liquid will faint for 3 seconds. While they are faint they will no longer be able to smell which means they will not suffer damage.
Code:
Learn
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to Stinky Liquid
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ACV Less than 1000
Then - Actions
Set ACV = (ACV + 1)
Else - Actions
Set ACV = 1
Set AUnit[ACV] = (Triggering unit)
Unit - Set the custom value of (Triggering unit) to ACV
Unit Group - Add (Triggering unit) to AGroup
Code:
Fart
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in AGroup and do (Actions)
Loop - Actions
Set ACV2 = (Custom value of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of (Picked unit)) Less than 40.00
Then - Actions
Set ALoc[1] = (Position of (Picked unit))
Unit - Create 1 Disease for (Owner of (Picked unit)) at ALoc[1] facing Default building facing degrees
Unit Group - Add (Last created unit) to AGroup2
Custom script: call RemoveLocation(udg_ALoc[1])
Else - Actions
Unit Group - Remove (Picked unit) from AGroup
Unit Group - Pick every unit in AGroup2 and do (Actions)
Loop - Actions
Set ALoc2 = (Position of (Picked unit))
Set AGroup3 = (Units in (Region centered at ALoc2 with size (300.00, 300.00)) matching (((Unit-type of (Matching unit)) Not equal to Disease) and ((((Matching unit) belongs to an enemy of (Owner of AUnit[ACV2])) Equal to True) and (((Matching unit) has buff Stunned (Pause)
Set AGroup4 = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Not equal to Skink Animal) and (((Matching unit) is in AGroup3) Equal to False)))
Unit Group - Pick every unit in AGroup4 and do (Actions)
Loop - Actions
Unit - Set the custom value of (Picked unit) to 0
Custom script: call DestroyGroup(udg_AGroup4)
Unit Group - Pick every unit in AGroup3 and do (Actions)
Loop - Actions
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Unit - Cause AUnit[ACV2] to damage (Picked unit), dealing (Real((Custom value of (Picked unit)))) damage of attack type Spells and damage type Normal
Set ALoc[2] = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Greater than or equal to 5
Then - Actions
Unit - Create 1 Dummy Unit for (Owner of AUnit[ACV2]) at ALoc[2] facing Default building facing degrees
Unit - Add Stun to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Unit - Add a 0.25 second Generic expiration timer to (Last created unit)
Unit - Set the custom value of (Picked unit) to 0
Unit Group - Remove (Picked unit) from AGroup3
Else - Actions
Custom script: call RemoveLocation(udg_ALoc[2])
Custom script: call RemoveLocation(udg_ALoc2)
Custom script: call DestroyGroup(udg_AGroup3)
Code:
Clean
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Disease
Actions
Unit Group - Remove (Triggering unit) from AGroup2