- Joined
- Jul 25, 2009
- Messages
- 3,087
What's the easiest, and/or most lightweight way to make a spell 100% MUI?
Using GUI with custom snippet if necessary...
Using GUI with custom snippet if necessary...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Radamantus said:A unit dies events or other kinds of supporting events
Awww why do you have to exploit only the weakness of Hashtable ?Hashtables are really good though you can only have 256 hashtables in a map
It assigns each a special index to each unit, which means each unit can hold each data, separately, simultaneously, that will make it MUI by default.
Say Unit A holds data of Integer value 300, Unit B holds data of Integer value of 500.
When loaded from each unit (Custom Value = Unit), it will give each respective Integer value loaded from the unit.
Unit Gains Ability

Events


Unit - A unit Dies

Conditions


(Unit-type of (Dying unit)) Equal to <the type of the unit u want to be killed to get the ability>

Actions


Set CV = (Custom value of (Killing unit))


Set Duration[CV] = 30.00


Set Ability[CV] = <Your ability>


Unit - Add Ability[CV] to (Killing unit)


Unit Group - Add (Killing unit) to CasterGroup


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Unit Lose Ability <gen> is on) Equal to True



Then - Actions



Else - Actions




Trigger - Turn on Unit Lose Ability <gen>
Unit Lose Ability

Events


Time - Every 0.50 seconds of game time

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(CasterGroup is empty) Equal to True



Then - Actions




Trigger - Turn off (This trigger)



Else - Actions




Unit Group - Pick every unit in CasterGroup and do (Actions)





Loop - Actions






Set CV = (Custom value of (Picked unit))






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








Duration[CV] Greater than 0.00







Then - Actions








Set Duration[CV] = (Duration[CV] - 0.50)







Else - Actions








Unit - Remove Ability[CV] from (Picked unit)








Unit Group - Remove (Picked unit) from CasterGroup
