Zaraf
New Member
- Reaction score
- 22
Log Swap
MUI: Yes.
Leakless: Yes
Lagless: Yes.
Jass/GUI: GUI
Spell Description: Teleports the pseudo ninja a short distance away, while leaving a log in his wake. The log then entices all enemies around it to attack it. Enemy AI controlled heroes, however, are not fooled by the clever ploy, and continue to chase after pseudo ninja. The log takes only 1 damager per hit, regardless of how strong the attacker is. After either 10 seconds, or losing all its HP (whichever comes first), the log vanishes.
The GUI:
Screenshot:
The screenshot doesn't do it justice....you gotta try it out It's a fun little spell. Also, it's 10 levels because I made this originally for my map. But that's something that can easily be changed.
This is my first spell submission, so please be gentle
EDIT: Fixed MUI problem by removing the turn on/turn off triggers. Fixed leaks (I hope it's all of them.)
MUI: Yes.
Leakless: Yes
Lagless: Yes.
Jass/GUI: GUI
Spell Description: Teleports the pseudo ninja a short distance away, while leaving a log in his wake. The log then entices all enemies around it to attack it. Enemy AI controlled heroes, however, are not fooled by the clever ploy, and continue to chase after pseudo ninja. The log takes only 1 damager per hit, regardless of how strong the attacker is. After either 10 seconds, or losing all its HP (whichever comes first), the log vanishes.
The GUI:
Trigger:
- Log Swap Options
- Events
- Map initialization
- Conditions
- Actions
- -------- This sets the base range that will provoke creeps to attack the log --------
- Set RangeBase = 400.00
- -------- This sets the amount of range that will be multiplied by the level of the skill to increase the range of provoke per level --------
- Set RangeMultiplier = 100.00
- -------- This sets the multiplier per level of how much HP the log will have --------
- Set LogHPMultiplier = 3.00
- -------- This sets the number of seconds the log will last before automatically dying --------
- Set LogExpirationTimer = 10.00
- Events
Trigger:
- Log Swap
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to (==) Log Swap
- Actions
- -------- The log is created in the spot that the caster was before teleporting. --------
- Set tempPoint = (Position of (Casting unit))
- Unit - Create 1 Log for (Owner of (Casting unit)) at tempPoint facing (Random angle) degrees
- Custom script: call RemoveLocation (udg_tempPoint)
- Set Log2 = (Last created unit)
- -------- Causes the log to die after a given amount of time automatically --------
- Unit - Add a LogExpirationTimer second Generic expiration timer to Log2
- -------- Sets the amount of HP that the log has --------
- Unit - Set life of Log2 to (LogHPMultiplier x (Real((Level of Log Swap for (Casting unit)))))
- -------- The log provokes all enemies within the specified range to attack the log --------
- Set tempPoint = (Position of Log2)
- Custom script: set bj_wantDestroyGroup = true
- Unit Group - Pick every unit in (Units within (RangeBase + ((Real((Level of Log Swap for (Casting unit)))) x RangeMultiplier)) of (Position of Log2) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to (==) True)) and do (Actions)
- Loop - Actions
- -------- However, Heroes are not fooled by the log, thus they ignore the log and head straight for the caster --------
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked unit) is A Hero) Equal to (==) False
- Then - Actions
- Unit - Order (Picked unit) to Attack Log[(Player number of (Owner of (Casting unit)))]
- Else - Actions
- Unit - Order (Picked unit) to Attack (Casting unit)
- If - Conditions
- Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
- -------- However, Heroes are not fooled by the log, thus they ignore the log and head straight for the caster --------
- Loop - Actions
- Custom script: call RemoveLocation (udg_tempPoint)
- Events
Trigger:
- Log Swap Log Dies
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to (==) Log
- Actions
- Wait 0.30 seconds
- Set tempPoint = (Position of (Dying unit))
- Special Effect - Create a special effect at tempPoint using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
- Special Effect - Destroy (Last created special effect)
- Sound - Play ToonExplosion <gen> at 100.00% volume, located at tempPoint with Z offset 0.00
- Custom script: call RemoveLocation (udg_tempPoint)
- Events
Screenshot:
This is my first spell submission, so please be gentle
EDIT: Fixed MUI problem by removing the turn on/turn off triggers. Fixed leaks (I hope it's all of them.)