[gui/mui] Cero

User avatar
ZODD
Administrator
Administrator
Posts: 3662
Joined: Sat Sep 15, 2018 2:16 pm
Reputation: 3644
Location: NYC,New York
Website: http://chaosrealm.co
Twitch: https://www.twitch.tv/z0ddz
Contact:
United States of America

[gui/mui] Cero

#1

Post by ZODD » Mon Oct 29, 2018 8:15 pm

By Banditger
Description:
Shoots a cero which deals damage on enemies on its path forward.
Model by: Pyritie

Screenshot to come soon

Code: Select all

[gui]Events
Map initialization
ccast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Cero red 
Actions
-------- u can customize this --------
Set clength = 20
Set cdmg = 100.00
Set csize = 500.00
Set caoe = 200.00
Set cred = 255.00
Set cblue = 0.00
Set cgreen = 0.00
-------- do not change this --------
Set ccaster = (Triggering unit)
Set cleak = (Position of (Triggering unit))
Unit - Create 1 dummy for (Owner of (Triggering unit)) at cleak facing (Facing of (Triggering unit)) degrees
Set cdummy = (Last created unit)
Custom script: call RemoveLocation(udg_cleak)
Hashtable - Save Handle Ofcdummy as 0 of (Key (Triggering unit)) in chash
Hashtable - Save clength as 1 of (Key (Triggering unit)) in chash
Hashtable - Save 0 as 2 of (Key (Triggering unit)) in chash
Hashtable - Save cdmg as 3 of (Key (Triggering unit)) in chash
Hashtable - Save caoe as 4 of (Key (Triggering unit)) in chash
Hashtable - Save cred as 5 of (Key (Triggering unit)) in chash
Hashtable - Save cgreen as 6 of (Key (Triggering unit)) in chash
Hashtable - Save cblue as 7 of (Key (Triggering unit)) in chash
Hashtable - Save csize as 8 of (Key (Triggering unit)) in chash
Unit Group - Add ccaster to cunits
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ccount Equal to clength
Then - Actions
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in chash
Unit Group - Remove (Picked unit) from cunits
Else - Actions
Set ccount = (ccount + 1)
Hashtable - Save ccount as 2 of (Key (Picked unit)) in chash
Set cleak = (Position of cdummy)
Set cleak2 = (cleak offset by (100.00 + (75.00 x (Real(ccount)))) towards (Facing of cdummy) degrees)
Unit - Create 1 ceffect for (Owner of ccaster) at cleak2 facing (Facing of cdummy) degrees
Unit - Move (Last created unit) instantly to cleak2
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Animation - Change (Last created unit)'s vertex coloring to (cred%, cgreen%, cblue%) with 0.00% transparency
Animation - Change (Last created unit)'s size to (csize%, csize%, csize%) of its original size
Set cdmgu = (Units within caoe of cleak2 matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of ccaster)) Equal to True)))
Unit Group - Pick every unit in cdmgu and do (Actions)
Loop - Actions
Unit - Cause ccaster to damage (Picked unit), dealing cdmg damage of attack type Spells and damage type Normal
Custom script: call DestroyGroup(udg_cdmgu)
Custom script: call RemoveLocation(udg_cleak2)
Custom script: call RemoveLocation(udg_cleak)

[/gui]
You do not have the required permissions to view the files attached to this post.
Image

Return to “Target Ground”

×