Stun Snippet Lite v1.0

Stun Snippet Lite
IMPORT GUIDE :
1. Enable "Tick the Automatically create unknown variables ..." located at File>Preference>General
2. Copy the StunSnippetLite Folder in the Trigger Editor
3. Configure the StunSnippetLiteConfig trigger according to the comments provided
4. Follow the information section for more details
SNIPPET INFORMATION :
A realization that I found after releasing several spells since releasing the original version of Stun Snippet and a version designed for the new TSELL is that they have too many requirements if you only need stunning and nothing else, as proven by how insane smite spell in this pack's requirements. As such, I write this with ZERO additional requirement and can be easily plugged in by just copying the folder without installing requirement, hence the term 'Lite' in this version of the Stun Snippet.

Additionally, by not relying on TSE/TELL, it reduces overhead from TriggerEvaluate that TSE/TELL uses internally in return for that system's ease of use. However, the system still takes benefit from all positive aspects that is given by Linked List as an internal implementation. This means that Stun Snippet Lite should be slightly faster (eh, GUI is still slow) than both the original and TSELL versions.
======
A stun snippet I wrote for the ease of creating stuns with the new BlzUnitPauseEx native. This system easily stuns a unit over a set duration with specific SFX so people can make variations of their stun (freeze, shocked, etc) with ease.

In order to stun a unit, set the following variables:
  • Actions
    • -------- Unit that will get stunned --------
    • Set StunSnippetLite__StunnedUnit = No unit
    • -------- Stun duration --------
    • Set StunSnippetLite__Duration = 0.00
    • -------- Effect shown, if <empty string> will fall back to default --------
    • Set StunSnippetLite__SFX = <Empty String>
    • -------- Attach point for the effect shown, if <empty string> will fall back to default --------
    • Set StunSnippetLite__AttachPoint = <Empty String>
    • -------- Register the stun effect --------
    • Trigger - Run StunSnippetLite_TRegister (checking conditions)
Since this is meant as a snippet for quick stunning, I do not provide additional utilities like Stun Engine or Stun System. The only addition I provided as of current is the SFX control, which is something that I personally need for spell making.
MEDIA SHOWCASE :
This is the Linked List version used as video, but they're basically doing the same thing so I don't think it's an issue.
CHANGELOG :
Version 1.0: Released

CREDIT :
Contents

Stun Snippet Lite v1.0 (Map)

Reviews
Rheiko
Looks fine to me. You could also just use: Set StunSnippetLite_Prev[0] = StunSnippetLite_Index instead of using IndexLast. One less variable to create in variable manager. But the current way is okay, too. Doesn't really make any difference. The...
Note for Reviewers: Please check this resources carefully because I might f up doing Linked List (again) from scratch since I am accustomed to using TELL. I tried to see if there's issues but I have yet to find any from my tests so I think I got it correctly, but I might be missing something. Also, this one doesn't use MyPad's PauseUnitEx to fit the zero requirement goal.

Thank you!
-Daffa
 
  • set.gif
    Set StunSnippetLite_Prev[0] = StunSnippetLite_Index
instead of using IndexLast. One less variable to create in variable manager.
Which part this is for? I'm sort of dumbo dumbo with Linked List from time to time

The system works as intended,
Approved
Thank you :D
 

Rheiko

Spell Reviewer
Level 26
Joined
Aug 27, 2013
Messages
4,214
Which part this is for? I'm sort of dumbo dumbo with Linked List from time to time
It could replace StunSnippetLite_IndexLast since StunSnippetLite_Prev[0] will never be used :p
You can save yourself from creating extra variable. But it's fine really, your way makes it more readable as well which is good.
 
Top