GoGo-Boy
You can change this now in User CP
- Reaction score
- 40
I've just read that the global variables of GUI got their problems with MUI. Therefore I wanted to make my item-spell MUI (in GUI), but something seems to be wrong with my custom scripts..
The marked 4 lines don't work somehow... please tell me what I'm doing wrong there^^
Code:
Braking Endurance
Ereignisse
Einheit - A unit Benutzt einen Gegenstand
Bedingungen
(Item-type of (Item being manipulated)) Gleich Breaking Endurance
Aktionen
Custom script: local real udg_EnduranceUnitHP1
Set EnduranceUnitHP1 = (Leben of (Hero manipulating item))
Wait 5.00 seconds
[U][I][B]Custom script: local real udg_EnduranceUnitHP2
Custom script: local real udg_EnduranceDamage
Custom script: local group udg_EnduranceDamaged1
Custom script: local group udg_EnduranceDamaged2[/B][/I][/U]
Set EnduranceUnitHP2 = (Leben of (Hero manipulating item))
Set EnduranceDamage = (EnduranceUnitHP1 - EnduranceUnitHP2)
Set EnduranceDamaged = (Units within 400.00 of (Position of (Hero manipulating item)) matching ((((Matching unit) is Ein Gebäude) Gleich True) and (((Owner of (Matching unit)) is an enemy of (Owner of (Hero manipulating item))) Gleich True)))
Set EnduranceDamaged_2 = (Units within 800.00 of (Position of (Hero manipulating item)) matching ((((Matching unit) is Ein Gebäude) Gleich True) and (((Owner of (Matching unit)) is an enemy of (Owner of (Hero manipulating item))) Gleich True)))
Einheitengruppe - Pick every unit in (Units within 400.00 of (Position of (Hero manipulating item)) matching ((((Matching unit) is Ein Gebäude) Gleich True) and (((Owner of (Matching unit)) is an enemy of (Owner of (Hero manipulating item))) Gleich True))) and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Remove (Picked unit) from EnduranceDamaged_2
Einheitengruppe - Pick every unit in EnduranceDamaged and do (Einheit - Cause (Hero manipulating item) to damage (Picked unit), dealing EnduranceDamage damage of attack type Chaos and damage type Normal)
Einheitengruppe - Pick every unit in EnduranceDamaged_2 and do (Einheit - Cause (Hero manipulating item) to damage (Picked unit), dealing (EnduranceDamage / 2.00) damage of attack type Chaos and damage type Normal)
Spezialeffekt - Create a special effect attached to the origin of (Hero manipulating item) using Objects\Spawnmodels\NightElf\NECancelDeath\NECancelDeath.mdl
Spezialeffekt - Destroy (Last created special effect)
Einheitengruppe - Pick every unit in EnduranceDamaged and do (Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\GlaiveMissile\GlaiveMissileTarget.mdl)
Spezialeffekt - Destroy (Last created special effect)
Einheitengruppe - Pick every unit in EnduranceDamaged_2 and do (Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\GlaiveMissile\GlaiveMissileTarget.mdl)
Spezialeffekt - Destroy (Last created special effect)
Custom script: call DestroyGroup (udg_EnduranceDamaged)
Custom script: call DestroyGroup (udg_EnduranceDamaged_2)
The marked 4 lines don't work somehow... please tell me what I'm doing wrong there^^